Hi Dears,
I am having trouble mounting a partition with UFS file system (FreeBSD), I am trying to build with the following commands:
mount-r-t-o ufs ufstype = ufs2 / dev/hdb1 / part mount-r-t-o ufs ufstype = 44bsd / dev/hdb1 / part
But appears the following error message:
mount: wrong fs type, bad option, bad superblock on / dev/hdb1, missing codepage or other error In some cases useful info is found in syslog - try dmesg
anybody have any idea?
Thanks,
Daniel Bruno wrote:
Hi Dears,
I am having trouble mounting a partition with UFS file system (FreeBSD), I am trying to build with the following commands:
Does the driver exist?
grep -i ufs /boot/config-`uname -r`
also grep -i ufs /proc/filesystems
It seems on CentOS 4.6 and 5.1 at least UFS support is not compiled into the kernel. Red Hat typically is pretty conservative with the options they use I can't imagine UFS being all that well tested under linux but I certainly could be wrong. You may be able to find a 3rd party kernel that has it or build the module(s) yourself.
I recall last time I tried UFS(on a debian system) it only supported read-only access, which was of limited help(was trying to modify the config of a OpenBSD system that was installed on a CF card which was hanging on boot).
nate
On Tue, 2008-09-30 at 17:05 -0400, Daniel Bruno wrote:
Hi Dears,
I am having trouble mounting a partition with UFS file system (FreeBSD), I am trying to build with the following commands:
mount-r-t-o ufs ufstype = ufs2 / dev/hdb1 / part mount-r-t-o ufs ufstype = 44bsd / dev/hdb1 / part
But appears the following error message:
mount: wrong fs type, bad option, bad superblock on / dev/hdb1, missing codepage or other error In some cases useful info is found in syslog - try dmesg
anybody have any idea?
We need more information. However, presuming you are running 5.2, stock kernel, check config-2.6.18-92.1.13.el5 in the grub directory. UFS is not enabled. Maybe a plus kernel has it enabled or you can build a custom kernel.
<snip sig stuff>
HTH
On Tue, Sep 30, 2008 at 05:12:59PM -0400, William L. Maltby wrote:
We need more information. However, presuming you are running 5.2, stock kernel, check config-2.6.18-92.1.13.el5 in the grub directory. UFS is not enabled. Maybe a plus kernel has it enabled or you can build a custom kernel.
http://people.centos.org/tru/dkms/RPMS/ has the ufs driver but you need to install RPMforge's dkms package to rebuild the module for your kernel version. see http://wiki.centos.org/AdditionalResources/Repositories
the mount command would be somehting like mount -t ufs -o ro,ufstype=44bsd /dev/hdb1 /mnt/bsd
Cheers,
Tru
Hi Tru,
I installed rpmforge, dkms and dmks-ufs, how you can see below:
[root@fw ~]# rpm -qva |grep dkms dkms-2.0.20.4-1.el5.rf dkms-ufs-2.6.18_8.1.8.el5-3.c5
[root@fw ~]# lsmod |grep ufs ufs 64644 0
but I still can't mount the partition:
# mount -t ufs -o ro,ufstype=44bsd /dev/hdb1 /part mount: wrong fs type, bad option, bad superblock on /dev/hdb1, missing codepage or other error In some cases useful info is found in syslog - try dmesg | tail or so
in the dmes, show this error:
ufs_read_super: bad magic number
On Tue, Sep 30, 2008 at 6:01 PM, Tru Huynh tru@centos.org wrote:
On Tue, Sep 30, 2008 at 05:12:59PM -0400, William L. Maltby wrote:
We need more information. However, presuming you are running 5.2, stock kernel, check config-2.6.18-92.1.13.el5 in the grub directory. UFS is not enabled. Maybe a plus kernel has it enabled or you can build a custom kernel.
http://people.centos.org/tru/dkms/RPMS/ has the ufs driver but you need to install RPMforge's dkms package to rebuild the module for your kernel version. see http://wiki.centos.org/AdditionalResources/Repositories
the mount command would be somehting like mount -t ufs -o ro,ufstype=44bsd /dev/hdb1 /mnt/bsd
Cheers,
Tru
Tru Huynh (mirrors, CentOS-3 i386/x86_64 Package Maintenance) http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xBEFA581B
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Daniel Bruno schrieb:
Hi Tru,
I installed rpmforge, dkms and dmks-ufs, how you can see below:
[root@fw ~]# rpm -qva |grep dkms dkms-2.0.20.4-1.el5.rf dkms-ufs-2.6.18_8.1.8.el5-3.c5
[root@fw ~]# lsmod |grep ufs ufs 64644 0
but I still can't mount the partition:
# mount -t ufs -o ro,ufstype=44bsd /dev/hdb1 /part mount: wrong fs type, bad option, bad superblock on /dev/hdb1, missing codepage or other error In some cases useful info is found in syslog - try dmesg | tail or so
in the dmes, show this error:
ufs_read_super: bad magic number
Can anyone comment on wether it is actually possible to mount an UFS2 (FreeBSD 5+) vs. an UFS1 (FreeBSD upto 4.x) partition. I tried that yesterday (mounting a pfSense CF-card) and it would more or less crash OpenSuSE 11...
Try a "real" BSD to mount it....
Rainer
On Tue, Sep 30, 2008 at 08:25:09PM -0400, Daniel Bruno wrote:
Hi Tru,
Hi Daniel,
please don't top post and trimm your replies in this mailing list (even if you use gmail ;) )
I installed rpmforge, dkms and dmks-ufs, how you can see below:
...
but I still can't mount the partition:
# mount -t ufs -o ro,ufstype=44bsd /dev/hdb1 /part mount: wrong fs type, bad option, bad superblock on /dev/hdb1, missing codepage or other error In some cases useful info is found in syslog - try dmesg | tail or so
in the dmes, show this error:
ufs_read_super: bad magic number
That probably means that your are targetting the wrong partition/slice of your BSD partition.
I can't guess your setup but you have probably a primary partition on the slave IDE drive and some BSD slices inside (a/b/c/...) hdb1 is the whole partition and probably not your BSD slice you want to mount... Depending on the other primary/extended partitions on hdb, you might need to try hdb{2...15}.
-> sfdisk -d /dev/hdb -> fdisk -l /dev/hdb -> grep hdb /var/log/messages
Cheers
Tru
On Tue, Sep 30, 2008 at 2:05 PM, Daniel Bruno danielbrunos@gmail.com wrote:
Hi Dears,
Hiya, sweetie.
I am having trouble mounting a partition with UFS file system (FreeBSD), I am trying to build with the following commands:
mount-r-t-o ufs ufstype = ufs2 / dev/hdb1 / part mount-r-t-o ufs ufstype = 44bsd / dev/hdb1 / part
Is that actually how you typed in the command? Doesn't look right at all. Normally you put '-t type' together, /then/ -o options. Check man mount to see if that might be some of it....
mhr