Hi all.  I'm having trouble mounting FreeBSD slices.  I am able to mount The 
first slice with:

% mount -r -t ufs -o ufstype=ufs2 /dev/hdc1 /mnt/bsd

But I can't access anything else.  After googling around a bit, it looks
like I should see the partitions at boot, but I don't:

% dmesg | grep hdc1                                        [~]
 hdc: hdc1 hdc2 hdc3 hdc4 < hdc5 hdc6 hdc7 hdc8 hdc9 hdc10 hdc11 hdc12 >

hdc5-hdc12 are all ext2 partitions left over from an old slackware install.

Here's Debian's fstab:

/dev/hdc11     /           ext2     defaults    0       1
/dev/hdc12     /usr        ext2     defaults    0  2

/dev/hdc5      none        swap     sw          0       0
proc           /proc       proc     defaults    0       0

/dev/hdc2      /mnt/hdc2   ext2     ro,noauto,nosuid,noexec 0  2 # slack root
/dev/hdc9      /mnt/woody  ext2     rw,noauto               0  2 # woody inst.
/dev/hdc10     /mnt/hdc10  ext2     rw,nosuid               0  2 # big share

/dev/sda1      /mnt/usb    msdos   rw,nosuid,noexec,umask=022  0  0 # usb drive
/dev/cdrom              /mnt/cdrom  iso9660 noauto,ro,user,noexec       0  0

And Freebsd's fstab:

# Device                Mountpoint      FStype  Options         Dump    Pass#
/dev/ad2s1b             none            swap    sw              0       0
/dev/ad2s1a             /        ufs    rw              0       1
/dev/ad2s1g             /home           ufs     rw              0       2
/dev/ad2s1e             /tmp            ufs     rw              0       2
/dev/ad2s1f             /usr            ufs     rw              0       2
/dev/ad2s1d             /var            ufs     rw              0       2
/dev/ad2s10             /mnt/s10        ext2fs  rw              0       0
/dev/ad2s11             /mnt/debian     ext2fs  rw,noauto               0       0
/dev/ad2s12             /mnt/s12        ext2fs  rw              0       0
/dev/ad2s2      /mnt/linux/root     ext2fs  rw,noauto   0   0
/dev/ad2s3      /mnt/ntfs           ntfs    rw,noauto   0   0
/dev/ad2s9      /mnt/linux/home     ext2fs  rw,noauto   0   0
/dev/acd0               /cdrom          cd9660  ro,noauto       0       0
/dev/ad2s8      /xmule      ext2fs  rw,noauto   0   0


I think I CONFIG_BSD_DISKLABEL, but I can't find it anywhere.  Has it's
name changed in the 2.6 kernels?

I know this partition scheme totally sucks, but I'm stuck with it b/c
I can't boot from a cd/fd :(

Running Sarge.

Any help would be great.  Thanks.


% sudo fdisk /dev/hdc                                     [~]
Command (m for help): p
Disk /dev/hdc: 40.0 GB, 40007761920 bytes
255 heads, 63 sectors/track, 4864 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hdc1   *           1         638     5124703+  a5  FreeBSD
/dev/hdc2   *         639         704      530145   83  Linux
/dev/hdc3             705        1979    10241437+   7  HPFS/NTFS
/dev/hdc4            1980        4864    23173762+   5  Extended
/dev/hdc5            1980        2012      265041   82  Linux swap
/dev/hdc6            2013        2045      265041   83  Linux
/dev/hdc7            2046        2111      530113+  83  Linux
/dev/hdc8            2112        2373     2104483+  83  Linux
/dev/hdc9            2374        2504     1052226   83  Linux
/dev/hdc10           2505        3720     9767488+  83  Linux
/dev/hdc11           3721        4103     3076416   83  Linux
/dev/hdc12           4104        4864     6112701   83  Linux

Command (m for help): b
Reading disklabel of /dev/hdc1  at sector 64.

BSD disklabel command (m for help): p

8 partitions:
#       start       end      size     fstype   [fsize bsize   cpg]
  a:        1*       33*       32*    4.2BSD     2048 16384 32776 
  b:       33*       66*       32*      swap                      
  c:        1*      638       637*    unused        0     0       
  d:       66*       98*       32*    4.2BSD     2048 16384 32776 
  e:       98*      164*       65*    4.2BSD     2048 16384     8 
  f:      164*      368*      203*    4.2BSD     2048 16384 28552 
  g:      368*      382        14*    4.2BSD     2048 16384 14912 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to