*BSD News Article 85204


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!nntp.coast.net!oleane!plug.news.pipex.net!pipex!multicast.news.pipex.net!tank.news.pipex.net!pipex!feed1.news.innet.be!INbe.net!news.nl.innet.net!INnl.net!hunter.premier.net!worldnet.att.net!ix.netcom.com!bireme!espel
From: espel@bireme.ens.fr (Roger Espel Llima)
Newsgroups: comp.os.linux.development.system,comp.unix.bsd.freebsd.misc
Subject: Linux UFS support and FreeBSD
Date: 19 Dec 1996 03:16:13 GMT
Organization: Ecole Normale Superieure, Paris
Lines: 46
Distribution: inet
Message-ID: <59ac1t$hq1@news6.noc.netcom.net>
NNTP-Posting-Host: bireme.ens.fr
X-NETCOM-Date: Wed Dec 18  9:16:13 PM CST 1996
Keywords: Linux, UFS, FreeBSD
Xref: euryale.cc.adfa.oz.au comp.os.linux.development.system:37404 comp.unix.bsd.freebsd.misc:32774

I've been trying to setup a system with both Linux and FreeBSD, and
to get them to read each other's partitions.  I had FreeBSD create
three BSD-partitions inside a slice (aka a real mbr partition) and
install itself in two of them with its native UFS filesystem... 

When booting Linux, the kernel finds the partitions correctly:

nostromo:~ $ dmesg | grep hda
hda: QUANTUM FIREBALL_TM3200A, 3067MB w/76kB Cache, LBA, CHS=779/128/63
 hda: hda1 hda2 < hda5 hda6 hda7 > hda3 < hda8 hda9 hda10 >
      ^^^^	^^^^^^^^^^^^^^^^^^	  ^^^^^^^^^^^^^^^
      DOS	FreeBSD partitions        linux partitions
		in one primary slice	  in an extended slice

but when I try to mount them, I get this:

nostromo:~ $ sudo mount -t ufs /dev/hda7 /mnt2

Dec 19 04:52:41 nostromo kernel: ufs_read_super: fs_nindir 2048 != 3
Dec 19 04:52:41 nostromo kernel: ufs_read_super: fucking Sun blows me
Dec 19 04:52:41 nostromo kernel: ufs_read_super: fs last mounted on "/mnt/usr"
Dec 19 04:52:41 nostromo kernel: ufs_read_super: fs needs fsck
Dec 19 04:52:41 nostromo kernel: ufs_read_inode: file too big ino 2 dev 3/7, faking size
Dec 19 04:52:41 nostromo kernel: ufs_read_super: inopb 64
Dec 19 04:52:47 nostromo kernel: ufs_statfs
Dec 19 04:52:47 nostromo kernel: ufs_statfs

then cd'ing into /mnt2 doesn't find anything (not even . and ..), df
gives completely insane sizes, and once you've been in the directory and
tried an ls, it won't even let you umount the thing ("/dev/hda7 is busy"
even tho it's not the current dir of anything).

Any clues?  The kernel is:

nostromo:/proc $ cat version 
Linux version 2.0.26 (root@nostromo.ens.fr) (gcc version 2.7.2.1) #1 Wed Nov 27 23:37:48 MET 1996
nostromo:/proc $ cat filesystems 
        ext2
	nodev   proc
        ufs


	-Roger
--
e-mail: roger.espel.llima@ens.fr
WWW page & PGP key: http://www.eleves.ens.fr:8080/home/espel/index.html