Re: CLI filesystem format tool



On Sun, Apr 29, 2007 at 06:16:39PM -0400, Kris Kennaway wrote:

On Sun, Apr 29, 2007 at 03:53:19PM -0600, Chad Perrin wrote:
Is there a simple command line tool in FreeBSD for creating a filesystem
on an already extant slice?

I'm working on a system with three main slices -- ad0s1, ad0s2, and
ad0s3. The ad0s2 slice is further split up into the default parts of a
FreeBSD install. The ad0s1 slice is in use by another OS. The ad0s3
slice has nothing of value on it, and I want to make it a FreeBSD-native
filesystem then mount it at /usr/home.

I've been hoping to find something akin to the Linux tool mkfs for this
purpose, but so far have come up empty. Isn't there something that
works similarly to that? Example:

I would suggest that you first use bsdlabel to create a single partition
on that slice. You can use the a: partition, or if you feel squimish
about using that one that is traditionally used for root, then use
the d: partition. Do this:

bsdlabel -w ad0s3 To initialize a partition label, then
bsdlabel -e ad0s3

You enter an edit more. Just duplicate the c: line
--Do NOT change the c: line--
edit that duplicate line and make it a: or d: or whatever.
Change the tuype to BSD4.2
You can add values for [fsize bsize bps/cpg], maybe to:
2048 16384 28552
But I think you can just leave them blank.
write/quit the edit session and the label is written.

Then you need to run newfs on that new partition.

newfs /dev/ad0s3a or newfs /dev/ad0s3d if you named it d:

Then, just edit /etc/fstab to make it mount at boot time
and mount it up. If you already have stuff in /home, then you will
need to make one of them a temporary mount somewhere to move stuff over.

////jerry


command /dev/ad0s3 fstype

newfs

Kris
_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"
_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: CLI filesystem format tool
    ... on an already extant slice? ... The ad0s2 slice is further split up into the default parts of a ... The ad0s1 slice is in use by another OS. ... The ad0s3 ...
    (freebsd-questions)
  • Re: CLI filesystem format tool
    ... on an already extant slice? ... The ad0s2 slice is further split up into the default parts of a ... The ad0s1 slice is in use by another OS. ... The ad0s3 ...
    (freebsd-questions)
  • Re: I dont see anything to answer my q
    ... The ones that come with FreeBSD will handle fat and fat32 ... successfully a number of times is Partition Magic. ... What the BSD UNIX world calls a disk slice, ... clear while using the terms slice and primary partition. ...
    (freebsd-questions)
  • Re: Downloads
    ... There was one unused partition. ... (used unconsistently with the rest of FreeBSD). ... division of the disk is called a slice. ...
    (freebsd-questions)
  • RE: problem while installing FreeBSD
    ... You will actually need "volume magic" instead of partition magic I believe. ... > disk, it boots to dos and when I reboot without removing ... >> I thought FreeBSD may take care of this file system or it ... It will not resize the NTFS slice for you. ...
    (freebsd-questions)