Hi Muli,
I doubt it (did you try it?).
Now I tried it, on Fedora Core 4 (on x86). It works like a charm! feel free to try it ... Aftrer applying the patch and "modprbe ufs" I ran that series of commands, but mkfus like this : /mkufs -O 1 /test/disk-image Rhere was no error in mount , and running now "mount | grep ufs shows it is OK: /test/disk-image on /loopDir type ufs (ro,loop=/dev/loop0) BTW, I tried also mount -r -o loop -t ufs /test/disk-image /loopDir and it did perform mount OK, only the kernel log says Sep 26 20:43:29 localhost kernel: You didn't specify the type of your ufs filesystem Sep 26 20:43:29 localhost kernel: Sep 26 20:43:29 localhost kernel: mount -t ufs -o ufstype=sun|sunx86|44bsd|ufs2|5xbsd|old|hp|nextstep|netxstep-cd|openstep .. Sep 26 20:43:29 localhost kernel: Sep 26 20:43:29 localhost kernel: >>>WARNING<<< Wrong ufstype may corrupt your filesystem, default is ufstype=old When trying the same but with /mkufs -O 2 /test/disk-image I get that error in mount: mount: wrong fs type, bad option, bad superblock on /dev/loop0, missing codepage or other error In some cases useful info is found in syslog - try dmesg | tail or so and in the kernel log : kernel: ufs_read_super: bad magic number As for the reason why UFS1 works and UFS2 not, I will try to hack the code a bit and post my thoughts tomorrow or in two days. I think we should remeber that ufs support in the linux kenel is a bit problematic. We can mount ufs only as a read only filesystem in linux ; this was once the case with NTFS , now it is a bit better , but also when you mount an ntfs from linux , it might not succeed. In their own words: "Note: That doesn't mean it always succeeds, it is still experimental and might just as well refuse to complete an operation in order to prevent corruption. " see : http://www.linux-ntfs.org/ And looking from the opposite dircetion (namely , an operating system which comes with ufs like solaris/*BSD) : There is a solaris package to mount ext3 and ntfs from solaris ufs; see: http://www.genunix.org/distributions/belenix_site/ It mounts EXT2FS and NTFS partitions, but as read-only partitions. Regards, Rami Rosen On 9/26/06, Muli Ben-Yehuda <[EMAIL PROTECTED]> wrote:
On Tue, Sep 26, 2006 at 04:32:08PM +0300, Rami Rosen wrote: > Hi, > > Try ./mkufs -O 1 /test/disk-image instead of > /mkufs /test/disk-image > > there are 2 > file system formats for mkufs : 1 => UFS1, 2 => UFS2 > > see also : mkufs -help. > > This should work. I doubt it (did you try it?). It's obvious from the kernel log that fs/ufs gets super block magic number 0, which is wrong any way you look at it. Cheers, Muli
================================================================= To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]