LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices


Reply
  Search this Thread
Old 06-18-2020, 07:02 AM   #1
00x
LQ Newbie
 
Registered: Aug 2018
Distribution: OpenBSD
Posts: 18

Rep: Reputation: 0
formatting an external hdd for both BSD and Linux


Is there a way to format an external HDD (usb) on NetBSD so that it can also be read by Linux?

here is a snippet from NetBSD `man newfs'
Code:
     -O filesystem-format
                 Select the filesystem-format.
                       0    4.3BSD; This option is primarily used to build
                            root file systems that can be understood by older
                            boot ROMs.  This generates an FFSv1 file system
                            with level 1 format.
                       1    FFSv1; normal Fast File System, level 4 format.
                            Also known as `FFS', `UFS', or `UFS1'.  This is
                            the default.
                       2    FFSv2; enhanced Fast File System, suited for more
                            than 1 Terabyte capacity.  This is also known as
                            `UFS2'.
I have tried:
Code:
$ newfs -O0 /dev/sd0'
Code:
$ newfs -O1 /dev/sd0'
Code:
$ newfs -O2 /dev/sd0'
Each format lets my other BSD computers read/write to it but when I plug it into Ubuntu, it is detected and shows that its there, but the contents inside are not shown and I cannot write to it.

Is there a way to format this HDD so it can be read by both BSD and Linux without making it MSDOS/NTFS? I don't want to have to download/install special mounting programs every time I want to use it on a BSD/Linux computer.

Edit:
Sorry. found the solution.
Code:
 $ newfs -O0 /dev/sd0
did work.

Last edited by 00x; 06-18-2020 at 07:33 AM. Reason: solution: newfs -O0
 
Old 06-18-2020, 07:08 AM   #2
fatmac
Senior Member
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Posts: 3,669

Rep: Reputation: Disabled
Check to see if you have read/write to an ext2 file system.

(I use OpenBSD & ext2 or DOS are the only others supported).

Just checked online....

https://www.netbsd.org/docs/internal...ml#fs_overview

Last edited by fatmac; 06-18-2020 at 07:13 AM.
 
Old 06-18-2020, 10:25 AM   #3
teckk
Senior Member
 
Registered: Oct 2004
Distribution: FreeBSD Arch
Posts: 2,937

Rep: Reputation: 804Reputation: 804Reputation: 804Reputation: 804Reputation: 804Reputation: 804Reputation: 804
https://en.wikipedia.org/wiki/Compar...f_file_systems

full exfat, fat, ntfs, ext2, udf, zfs
partial ufs, ext3, ext4, hpfs

I don't see anything wrong with an external ntfs drive. Then everything can read/write to it, even microsoft of course. By it's very nature you may want to plug it in anywhere, at some point in the future.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Time taken to copy data from PC to External USB HDD and External USB HDD to PC will same? jegadezz Linux - Newbie 3 11-14-2017 09:22 AM
Run customised HDD driver for external HDD while generic HDD driver for bootable purpose sonia49 Linux - Newbie 1 09-28-2016 08:52 PM
PC BSD, Open BSD, or Free BSD ? Alexvader *BSD 5 02-08-2010 12:40 AM
[SOLVED] Using both SSD/HDD for partitioning or is it better to just get external HDD? Switch7 Linux - Hardware 16 10-26-2009 12:23 PM
Formatting external hdd as backup to 2 hdd's balch4 Linux - Desktop 2 12-04-2006 11:49 PM

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 10:12 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration