DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 24th September 2018
bsd007's Avatar
bsd007 bsd007 is offline
Always learning
 
Join Date: Sep 2014
Posts: 219
Default Which filesystem should I use for USB flash drive ?

Hi,

Which filesystem should I use for USB flash drive ?

Presently it is formatted to Ext4 but as you know under OpenBSD ext4 can mounted only as read only.

Also what is the command to format ?

Right now I am mounting the flash drive by doing

Code:
mount -r /dev/sd1i /mnt
__________________
OpenBSD 6.4
Intel(R) Core(TM) i3-6100 CPU
Ram 4GB
Intel HD Graphics
Reply With Quote
  #2   (View Single Post)  
Old 24th September 2018
bsd007's Avatar
bsd007 bsd007 is offline
Always learning
 
Join Date: Sep 2014
Posts: 219
Default

Any ideas ?
__________________
OpenBSD 6.4
Intel(R) Core(TM) i3-6100 CPU
Ram 4GB
Intel HD Graphics
Reply With Quote
  #3   (View Single Post)  
Old 24th September 2018
sacerdos_daemonis's Avatar
sacerdos_daemonis sacerdos_daemonis is offline
Real Name: Will forever be a secret.
Package Pilot
 
Join Date: Sep 2014
Posts: 214
Default

This guide is very useful.
http://daemonforums.org/showthread.php?t=2232#post16505
__________________
OpenBSD 6.3
Reply With Quote
  #4   (View Single Post)  
Old 24th September 2018
bsd007's Avatar
bsd007 bsd007 is offline
Always learning
 
Join Date: Sep 2014
Posts: 219
Default

Quote:
Originally Posted by sacerdos_daemonis View Post
I am getting 404 Not Found.
__________________
OpenBSD 6.4
Intel(R) Core(TM) i3-6100 CPU
Ram 4GB
Intel HD Graphics
Reply With Quote
  #5   (View Single Post)  
Old 24th September 2018
sacerdos_daemonis's Avatar
sacerdos_daemonis sacerdos_daemonis is offline
Real Name: Will forever be a secret.
Package Pilot
 
Join Date: Sep 2014
Posts: 214
Default

The thread is in Miscellaneous/Guides


HOWTO: mounting an USB device as normal non-root user in OpenBSD


by J65nko
__________________
OpenBSD 6.3
Reply With Quote
  #6   (View Single Post)  
Old 24th September 2018
Lazar Lazar is offline
New User
 
Join Date: Jul 2015
Posts: 1
Default

The most portable filesystem (in my opinion) is FAT32. It has limitations but all (or almost all) operating systems support it.

I have found your thread from last year. Check it again http://daemonforums.org/showthread.php?t=10473
Reply With Quote
  #7   (View Single Post)  
Old 24th September 2018
bsd007's Avatar
bsd007 bsd007 is offline
Always learning
 
Join Date: Sep 2014
Posts: 219
Default

Quote:
Originally Posted by Lazar View Post
The most portable filesystem (in my opinion) is FAT32. It has limitations but all (or almost all) operating systems support it.

I have found your thread from last year. Check it again http://daemonforums.org/showthread.php?t=10473
I plan to store Clonezilla (full disk) backups on the flash drive. Do you think FAT32 is a wise choice in this situation ?
__________________
OpenBSD 6.4
Intel(R) Core(TM) i3-6100 CPU
Ram 4GB
Intel HD Graphics
Reply With Quote
  #8   (View Single Post)  
Old 24th September 2018
bsd007's Avatar
bsd007 bsd007 is offline
Always learning
 
Join Date: Sep 2014
Posts: 219
Default

Quote:
Originally Posted by sacerdos_daemonis View Post
The thread is in Miscellaneous/Guides


HOWTO: mounting an USB device as normal non-root user in OpenBSD


by J65nko
Thats not what I am trying to do. I dont want to modify the default security policy of OpenBSD.
__________________
OpenBSD 6.4
Intel(R) Core(TM) i3-6100 CPU
Ram 4GB
Intel HD Graphics
Reply With Quote
  #9   (View Single Post)  
Old 24th September 2018
bsd007's Avatar
bsd007 bsd007 is offline
Always learning
 
Join Date: Sep 2014
Posts: 219
Default

I just read on the web that in FAT32 you cant store files larger than 4GB so its of no use to me.

I want a filesystem that is based on OpenBSD and something that Clonezilla can write to.
__________________
OpenBSD 6.4
Intel(R) Core(TM) i3-6100 CPU
Ram 4GB
Intel HD Graphics
Reply With Quote
Old 24th September 2018
bsd007's Avatar
bsd007 bsd007 is offline
Always learning
 
Join Date: Sep 2014
Posts: 219
Default

Okay I found a solution.

Did

Code:
newfs -t ext2fs sd1i
Code:
# mkdir /mnt/pen
Code:
# mount /dev/sd1i /mnt/pen/
Code:
# chown myusername:users /mnt/pen/
Now its working.
__________________
OpenBSD 6.4
Intel(R) Core(TM) i3-6100 CPU
Ram 4GB
Intel HD Graphics
Reply With Quote
Old 26th September 2018
new2BSDlol new2BSDlol is offline
Port Guard
 
Join Date: Jun 2018
Posts: 15
Default

Yes, I use ext2 to go between Linux and OpenBSD, FAT32 between those and Windows.
Reply With Quote
Old 26th September 2018
fvgit's Avatar
fvgit fvgit is offline
Real Name: Tempvs fvgit
Package Pilot
 
Join Date: May 2016
Location: perl -MMIME::Base64 -le 'print decode_base64("SGVyZSBiZSBkcmFnb25zC")'
Posts: 149
Default

The downside of using anything other than FAT is when you forget that your stick is formatted differently (it'll happen unless you mark it somehow) and then scratch your head why it doesn't work on the scanner in the library for instance. Happened to me.
Reply With Quote
Old 26th September 2018
IdOp's Avatar
IdOp IdOp is offline
Too dumb for a smartphone
 
Join Date: May 2008
Location: twisting on the daemon's fork(2)
Posts: 825
Default

Quote:
Originally Posted by fvgit View Post
The downside of using anything other than FAT is when you forget that your stick is formatted differently (it'll happen unless you mark it somehow) and then scratch your head why it doesn't work on the scanner in the library for instance. Happened to me.
Yup, exactly. That's why I'll often make 2 (or more partitions), one FAT, one ext2fs, on the stick.
Reply With Quote
Old 27th September 2018
new2BSDlol new2BSDlol is offline
Port Guard
 
Join Date: Jun 2018
Posts: 15
Default

Quote:
Originally Posted by fvgit View Post
The downside of using anything other than FAT is when you forget that your stick is formatted differently (it'll happen unless you mark it somehow) ...
These are my Apacer AH352 drives, with their plastic covers pried off and the bare PCB coated with two layers of epoxy and with different pieces of coloured card on each one. Some of them form tails when I'm hanging them up to set...
Attached Images
File Type: jpg 100_1659.JPG (590.2 KB, 38 views)

Last edited by new2BSDlol; 28th September 2018 at 01:37 AM.
Reply With Quote
Old 27th September 2018
fvgit's Avatar
fvgit fvgit is offline
Real Name: Tempvs fvgit
Package Pilot
 
Join Date: May 2016
Location: perl -MMIME::Base64 -le 'print decode_base64("SGVyZSBiZSBkcmFnb25zC")'
Posts: 149
Default

Those look nerdy and scary at the same time. Like something out of the Alien movie franchise.

That being said it'll probably make it easier to spot any tampering if you memorise every undulation of the epoxy.
Reply With Quote
Old 28th September 2018
IdOp's Avatar
IdOp IdOp is offline
Too dumb for a smartphone
 
Join Date: May 2008
Location: twisting on the daemon's fork(2)
Posts: 825
Default

Lol. Maybe you could set your finger thumb-print into the epoxy before it's fully dry.

Last edited by IdOp; 28th September 2018 at 12:46 AM.
Reply With Quote
Old 15th October 2018
hermano hermano is offline
New User
 
Join Date: Mar 2017
Posts: 9
Default

As mentioned above, if you want to store a very large amount of data on a disk, then you do not need to use any file system at all. You can just write sequentially to the device and fill it up.

A file system is only useful if you want to store multiple files. If you only want to store one file on a device, then you need not bother!
Reply With Quote
Reply

Tags
format, usb flash

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to transfer .fs image to USD flash drive ? bsd007 OpenBSD Installation and Upgrading 7 9th October 2017 09:34 PM
formatting USB Flash Drive amphibious OpenBSD Installation and Upgrading 4 20th April 2017 01:49 AM
Creating USB flash drive drive image from FreeBSD disc1.iso FBSD Guides 1 10th February 2010 04:42 PM
Backup to USB flash drive giga FreeBSD General 5 8th December 2008 11:06 PM
USB flash drive criglerj NetBSD General 1 26th July 2008 01:25 AM


All times are GMT. The time now is 09:46 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick