UFS Partitions

Mark Szlaga (mszlaga@engin.umd.umich.edu)
Sun, 8 Nov 1998 13:07:06 -0500 (EST)


Greetings,
I have read the mini-howto about Linux+FreeBSD, but this does not go into
detail as to why I am having this problem. My problem is thus. Whenever I
boot into Linux it changes the partition ID of the BSD/386 partition to "b5"
which disables the use of this partition under linux. I am currently in a
one drive system right now, but this was also problematic when I had a two
drive system configured like the howto says (Linux then FreeBSD).

My current partition map:

[root@borg /root]# fdisk /dev/hda
The number of cylinders for this disk is set to 1025.
This is larger than 1024, and may cause problems with:
1) software that runs at boot time (e.g., LILO)
2) booting and partitioning software form other OSs
(e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): p

Disk /dev/hda: 255 heads, 63 sectors, 1025 cylinders
Units = cylinders of 16065 * 512 bytes

Device Boot Begin Start End Blocks Id System
/dev/hda1 1 1 66 530113+ 6 DOS 16-bit >=32M
/dev/hda2 67 67 197 1052257+ b5 Unknown
/dev/hda3 * 198 198 1023 6634845 5 Extended
/dev/hda5 198 198 328 1052226 b Win95 FAT32
/dev/hda6 329 329 459 1052226 7 OS/2 HPFS
/dev/hda7 * 460 460 590 1052226 83 Linux native
/dev/hda8 591 591 607 136521 82 Linux swap
/dev/hda9 608 608 738 1052226 83 Linux native
/dev/hda10 739 739 869 1052226 b Win95 FAT32

Command (m for help):

This is an IBM 8.4GB hdd. so I have a few partitions. The math became
easier if I put FreeBSD in the second partition, and as you can see it is "b5".

And here's my fstab incase anyone is wondering

/dev/hda1 /dos msdos default 0 0
#/dev/hda2 /freebsd ufs noauto 0 0
#/dev/hda3 - extended
/dev/hda5 /win98d vfat default 0 0
/dev/hda6 /winnt ntfs noauto 0 0
/dev/hda7 / ext2 defaults 1 1
/dev/hda8 swap swap defaults 0 0
/dev/hda9 /usr/local ext2 defaults 1 2
/dev/hda10 /win98e vfat default 0 0
/dev/fd0 /mnt/floppy ext2 noauto 0 0
/dev/hdc /cdrom iso9660 noauto,ro 0 0
none /proc proc defaults 0 0

Note: /dev/hda2 was just in there as a reminder for me. I know the "a" slice
actually would reside on /dev/hda5 if it actually could see the FreeBSD
disklabel.

System Stats:
Distro: RH5.1
Libc: Glibc2.0.7
Kernel: 2.1.127 (from pre-patch-2.1.127-3)
Note: this has occurred across ALL kernels I have tried. later 2.0 series and
2.1 from about .75 or so.

The long and short of it is that I would like to get my FreeBSD partitions
mountable under linux so that I can actually read and write to them. And I
am wondering why I am having the problems that I have.

Thanks in advance,
Mark

-- 
Mark Szlaga    mszlaga@umd.umich.edu    http://www.umd.umich.edu/~mszlaga/
/dev/hdb5 - 0.5Gb of spinning metal, all alone in the night...
- unknown - alt.sysadmin.recovery
/dev/hdb5 - our last best hope for free space...
- Chip Salzenberg - <chip@pobox.com>

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/