Chris Phillips wrote: -
> Hi,
> I have read man mount & googled lots but I am at a loss as how to 
> mount the 2 partitions on my 2nd hard disk.
> I've created 2 new partitions on it: /dev/ad1s1b (swap) and 
> /dev/ad1s1e /data (ufs)
> Ideally, I'd like to mount both the swap & the /data partition, then 
> use "mount -p" to give me the correct format of the required 
> /etc/fstab entries...  I am stumbling at the first step unfortunately 
> :-(
> aphrodite# uname -a

> Thu Feb 20 23:27:51 GMT 2003 
> [EMAIL PROTECTED]:/usr/obj/usr/src/sys/APHRODITE  i386
> aphrodite# dmesg (somewhat snipped)
> ad0: 19092MB <WDC WD200EB-00BHF0> [38792/16/63] at ata0-master UDMA66
> ad1: 114473MB <WDC WD1200BB-00CAA1> [232581/16/63] at ata0-slave 
> UDMA66 Mounting root from ufs:/dev/ad0s1a
> aphrodite# mount /dev/ad1s1e /data
> mount: /dev/ad1s1e on /data: incorrect super block

Matthew said: -
Right.  First of all, swap partitions aren't "mounted" as such.  You
just have to tell the system to start swapping onto the partition:

    # swapon /dev/ad1s1b

To make that happen automatically on reboots, add a line like so to

    /dev/ad1s1b  none  swap  sw  0  0

In order to mount your /data partition, either you need to tell the
mount command all the parameters it needs:

    # mount -t ufs -o rw /dev/ad1s1e /data

or you need to enter the equivalent data into /fstab so that mount can
look up what it needs to know there.  There are some other fields in
fstab that 'mount -p' will give default values, but that you'll probably
want to set to something useful.  Try something like this in fstab:

    /dev/ad1s1e  /data  ufs  rw  2  2

Oh, and do make sure you've created a filesystem on the partition before
you try and mount it..

    # newfs /dev/ad1s1e

> Josh also mentioned "newfs"...

Chris Phillips thanks all as this is now SOLVED!

I was experiencing some difficulty, as if I added the said lines into
/etc/fstab, I would be unable to boot completely.  This was possibly due
to the fact that when I used /stand/sysinstall to fdisk the drive &
label the partitions, it would seem to have not done anything...  Oh
dear!  I tried again (omitting the swap space as already have a big'un
on the 1st drive (ad0).  I used the "W" option in the label editor which
seemed to do the trick & now with the fstab file looking like the one
below, things are wonderful again ;-)

aphrodite# more /etc/fstab 
# Device                Mountpoint      FStype  Options         Dump
/dev/ad0s1b             none            swap    sw              0
/dev/ad0s1a             /                  ufs     rw              1
/dev/ad0s1f             /tmp             ufs     rw              2
/dev/ad0s1g             /usr             ufs     rw              2
/dev/ad0s1e             /var             ufs     rw              2
/dev/ad1s1e             /data           ufs     rw              2
/dev/acd0c              /cdrom         cd9660  ro,noauto       0       0
proc                    /proc           procfs  rw              0

I can now get the system back to normal, (having copied the contents of
the /data disk all over the place, while I reformatted it)...  /usr
being somewhat crowded at the moment!  That's not to mention me XP box
that's completely maxed out with copied data ;-)

aphrodite# df -k
Filesystem       1K-blocks      Used            Avail
Capacity   Mounted on
/dev/ad0s1a    128990         30598         88074            26%
/dev/ad0s1f     257998         428             236932          0%
/dev/ad0s1g    17586670     15102178   1077560        93%        /usr
/dev/ad0s1e    257998         6188           231172          3%
/dev/ad1s1e    115394404   225978       105936874    0%          /data
procfs              4                   4                 0
100%      /proc

Thanks again all  xx


intY has scanned this email for all known viruses (

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message

Reply via email to