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 22nd July 2009
knasbas knasbas is offline
Port Guard
 
Join Date: May 2008
Posts: 25
Thanked 0 Times in 0 Posts
Default ffs2

Ive read the faq 14.7 about large drives but im not quite sure i understand howto.
I got this 1.5tb seagatedisk and it has to be ffs2 aparently since ffs1 cant handle more then little less then 1tb. Its not meant for /, /var,/usr but more like /storage.

how do i format the disk?
doing man newfs give me this:
Quote:
-t fstype Set the file system type of which file system you wish to
create. newfs will be smart enough to run the alternate
newfs_XXX program instead.
Will it be smart enough so i just write newfs -t ffs2 wd4 ?

At the bottom of faq14.7
Quote:
The boot/installation kernels only support FFS
Do i need to add ffs2 to my system somehow or do i misunderstand the context?
Reply With Quote
  #2   (View Single Post)  
Old 22nd July 2009
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Old man from scene 24
 
Join Date: Apr 2008
Location: Eindhoven, Netherlands
Posts: 2,088
Thanked 198 Times in 156 Posts
Default

You need to use -O 2 to create a FFS2 filesystem, from newfs(8):

Code:
     -O filesystem-format
                 Select the filesystem format:

                       0    4.3BSD format file system.  This option is primar-
                            ily used to build root file systems that can be
                            understood by older boot ROMs.
                       1    Fast File System (the default).
                       2    Enhanced Fast File System (FFS2).
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
Reply With Quote
  #3   (View Single Post)  
Old 24th July 2009
knasbas knasbas is offline
Port Guard
 
Join Date: May 2008
Posts: 25
Thanked 0 Times in 0 Posts
Default

Thanks, onto the next problem:
How do I mount it?
After checking man fstab and mount I cant see any ffs2 options?
quote from 'man fstab'
Quote:
cd9660 An ISO 9660 CD-ROM filesystem.
ext2fs A local Linux compatible ext2fs filesystem.
ffs A local UNIX filesystem.
mfs A local memory-based UNIX filesystem.
msdos An MS-DOS FAT filesystem.
nfs A Sun Microsystems compatible Network File System.
ntfs An NTFS filesystem.
procfs A local filesystem containing process information.
swap A disk partition to be used for swapping.
udf A UDF filesystem.
vnd A VND image file.
Reply With Quote
  #4   (View Single Post)  
Old 24th July 2009
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,894
Thanked 214 Times in 189 Posts
Default

mount(8) or mount_ffs(8) should mount it without trouble. e.g.:
Code:
# newfs -O 2 sd1a
# mount /dev/sd1a /mnt
# umount /mnt
# mount_ffs /dev/sd1a /mnt
So treat it like any other FFS file system.

Last edited by jggimi; 29th September 2012 at 01:07 PM. Reason: corrected typo in newfs(8) command
Reply With Quote
  #5   (View Single Post)  
Old 29th September 2012
comet--berkeley comet--berkeley is offline
Shell Scout
 
Join Date: Apr 2009
Posts: 92
Thanked 1 Time in 1 Post
Default

Quote:
Originally Posted by jggimi View Post
mount(8) or mount_ffs(8) should mount it without trouble. e.g.:
Code:
# newfs -O 2 /dev/sd1a
# mount /dev/sd1a /mnt
# umount /mnt
# mount_ffs /dev/sd1a /mnt
So treat it like any other FFS file system.
I know I know...posting to a 3 year old thread...

But newfs -O 2 /dev/sd1a does not work for me.

I need to specify the "raw" device name:

newfs -O 2 /dev/rsd1a
Reply With Quote
  #6   (View Single Post)  
Old 29th September 2012
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,894
Thanked 214 Times in 189 Posts
Default

Hey, thanks for catching my typo. You're right, raw or the short form are required for newfs. I'll correct it now.
Reply With Quote
Reply

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
FFS2 in OpenBSD, what do you need? Sunnz OpenBSD General 0 5th May 2008 08:05 AM


All times are GMT. The time now is 08:41 PM.


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