From owner-freebsd-questions Mon Jun 10 23:12:50 2002 Delivered-To: freebsd-questions@freebsd.org Received: from stargate.sse-erfurt.de (stargate.sse-erfurt.de [62.132.15.253]) by hub.freebsd.org (Postfix) with SMTP id 1AC8337B403; Mon, 10 Jun 2002 23:12:44 -0700 (PDT) Received: (3157 bytes) by stargate.sse-erfurt.de via sendmail with P:stdio/R:inet_hosts/T:smtp (sender: ) id for ; Tue, 11 Jun 2002 08:13:26 +0200 (MET DST) (Smail-3.2.0.101 1997-Dec-17 #7 built DST-Jul-30) Received: from (master [192.105.75.4]) by stargate.sse-erfurt.de via smap (V2.1) id xma031123; Tue, 11 Jun 02 08:13:17 +0200 Received: (from kittler@localhost) by master.sse-erfurt.de (8.9.3/8.9.3/SuSE Linux 8.9.3-0.1) id IAA19442; Tue, 11 Jun 2002 08:12:33 +0200 From: Lutz Kittler MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15621.38097.104455.412473@master.sse-erfurt.de> Date: Tue, 11 Jun 2002 08:12:33 +0200 (MEST) To: "Greg 'groggy' Lehey" Cc: Akthar Hussain , questions@freebsd.org Subject: Re: Mounting Freebsd part in Linux In-Reply-To: <20020611051421.GD3644@wantadilla.lemis.com> References: <20020611051421.GD3644@wantadilla.lemis.com> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Greg 'groggy' Lehey writes: > > On Tuesday, 11 June 2002 at 10:29:03 +0530, Akthar Hussain wrote: > > Hi, > > > > > > I had compiled new kernel in Linux to mount NTFS and UFS.Also able > > to read BSD disk label. > > > > in kernel >>fileSYSTEM options I had selected ,create modules for > > NTFS ,UFS,and read BSD disk label. > > > > if I boot my system with new kennel I can able to mount only ntfs > > partitions.but if I try to mount my FreeBSD partitions it gives error > > "unable to mount or invalid superbalck" > > > > also ufs and ntfs modules are available in > > /lib/modules/..8.-cus/kernel/fs/. > > > my partitions are > > > > hda1 = /boot (Linux) > > hda2 or ad0s2 = freebsd > > hda3 = / for Linux > > > > hdb1 = ntfs > > hdb2 = ntfs > > > > they way i tried to mount freebsd is > > > > mount -t ufs /dev/hda2 /mnt > > > > or > > > > mount -t ufs -o ufstype=44bsd /dev/hda2 /mnt > > > > also some time it gives your kernel support only read only > > options.but i tried with -r , no improvement. > > > > if any one can help me ? > > > > do i have to do any extra changes in my kernet to mount ufs (freebsd > > partitions) > > > > is it my way of mounting is right ?? > > > > my linux kernel is 2.4.18. redhat 7.3. > > This appears to be a Linux problem. It's possible that the Linux ufs > implementation doesn't correctly recognize modern FreeBSD file > systems. > > Greg Hi, I had the same problem and found the following : Disklabel on FreeBSD uses bsize of 16384 for partitions from 1GB man disklabel : bsize For 4.2BSD and LFS file systems only, the block size. Defaults to 8192 for partitions smaller than 1 GB, 16384 for partitions 1GB or larger. But linux-kernel 2.4 will not use it: /usr/src/linux/fs/ufs/super.c: if (uspi->s_bsize != 4096 && uspi->s_bsize != 8192 && uspi->s_bsize != 32768) { printk("ufs_read_super: fs_bsize %u != {4096, 8192, 32768}\n", uspi->s_bsize); goto failed; } If you got this error you can set bsize when creating slices by disklabel -e. lutz To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message