www.centos.org Forum Index CentOS 5 - General Support mount bsd/386 partition to recover data
|
Bottom Previous Topic Next Topic |
| |
|
|
|---|
| Poster | Thread |
|---|
|
mount bsd/386 partition to recover data | #1 |
|
|---|---|---|---|
|
Newbie
![]()
Joined: 2009/7/4
From
Posts: 3
|
I need to mount a bsd/386 partition on my hard drive to recover data. I am running the latest CentOS 5.3, downloaded and installed in the last week.
My searches have turned up a mount command, that does not work. [root@new-host-2 ~]# mount -t ufs -o fstype=444bsd /dev/sda3 /mnt/bsd mount: unknown filesystem type 'ufs' [root@new-host-2 ~]# mount /dev/sda3 /mnt/bsd mount: you must specify the filesystem type [root@new-host-2 ~]# mount -r -t auto /dev/sda3 /mnt/bsd mount: you must specify the filesystem type [root@new-host-2 ~]# uname -a Linux new-host-2 2.6.18-128.el5xen #1 SMP Wed Jan 21 11:55:02 EST 2009 i686 i686 i386 GNU/Linux So, is there a patch to get mount -t ufs working? Is there a patch to get bsd/386 filesystem type? have not build a kernel before, so I would like to avoid that, but I will attempt it if I have no other options. Thank you for your time and attention |
||
Posted on: 2009/7/4 18:15
|
|||
|
Re: mount bsd/386 partition to recover data | #3 |
|
|---|---|---|---|
|
Moderator
![]()
Joined: 2006/9/3
From California, US
Posts: 6918
|
The centosplus kernel does have support for the ufs fulesystem. However, there is now a better solution. The ELRepo project ( http://elrepo.org ) offers a kernel module package for this filesystem. Follow the instructions on the web site to set up this repository and install kmod-ufs by the yum command.
|
||
Posted on: 2009/7/5 4:25
|
|||
|
Re: mount bsd/386 partition to recover data | #4 |
|
|---|---|---|---|
|
Newbie
![]()
Joined: 2009/7/4
From
Posts: 3
|
Thanks for your help.
Yesterday I did a yum update, so I have all the latest in the CentOS yum repo. I updated the kernel to centosplus, and the partition did not mount. I installed elrepo's repo and #yum install kmod-ufs --enablerepo=elrepo , and the partition does not mount I a using the comand # mount -t ufs -o ro,ufstype-44bsd /dev/sda3 /mnt/bsd mount: wrong fs type, bad option, bad superblock on /dev/sda3 ... # dmesg | tail ufs_read_super: bad magic number Is it possible that installing CentOS corrupted my bsd partition? Any other suggestions to get data off this partition? I can re-partition when I get the data. I do not need this partition to stay a bsd partition. |
||
Posted on: 2009/7/6 13:26
|
|||
|
Re: mount bsd/386 partition to recover data | #5 |
|
|---|---|---|---|
|
Moderator
![]()
Joined: 2006/9/3
From California, US
Posts: 6918
|
Quote:
Was that a typo? It is ufstype=44bsd ( not a dash) Quote:
If you did not touch the bsd partition during the installation, it should be there intact. How does CentOS recognize the partition? What is the filesystem ID as seen in fdisk -l ? I think FreeBSD is ef. |
||
Posted on: 2009/7/6 14:46
|
|||
|
Re: mount bsd/386 partition to recover data | #6 |
|
|---|---|---|---|
|
Moderator
![]()
Joined: 2007/10/22
From ~/Earth/UK/England/Suffolk
Posts: 9132
|
Quote:
What is the filesystem ID as seen in fdisk -l ? I think FreeBSD is ef. It should be a5. |
||
Posted on: 2009/7/6 15:07
|
|||
|
Re: mount bsd/386 partition to recover data | #7 |
|
|---|---|---|---|
|
Moderator
![]()
Joined: 2006/9/3
From California, US
Posts: 6918
|
Argh, I was looking at the wrong column.
Thanks, Alan, for posting the whole thing. |
||
Posted on: 2009/7/6 15:20
|
|||
|
Re: mount bsd/386 partition to recover data | #8 |
|
|---|---|---|---|
|
Moderator
![]()
Joined: 2007/10/22
From ~/Earth/UK/England/Suffolk
Posts: 9132
|
Quote:
Argh, I was looking at the wrong column. It's quite a misleading output and potentially dangerous . . . Logically one expects to read the description of the disk (partition) type and then see the ID to the right of the description. The command I would use to mount the OP's disk is -- -- but there are, as we know, many ways to skin a donkey. ![]() |
||
Posted on: 2009/7/6 15:29
|
|||
|
Re: mount bsd/386 partition to recover data | #9 |
|
|---|---|---|---|
|
Newbie
![]()
Joined: 2009/7/4
From
Posts: 3
|
Yes it is a FreeBSD partition. Does that mean I should use a different mount command?
[root@new-host-2 ~]# fdisk -l Disk /dev/sda: 100.0 GB, 100030242816 bytes 255 heads, 63 sectors/track, 12161 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sda1 * 1 13 104391 83 Linux /dev/sda2 11439 12161 5807497+ 7 HPFS/NTFS /dev/sda3 5802 11438 45272064 a5 FreeBSD /dev/sda4 14 5801 46492110 5 Extended /dev/sda5 14 5801 46492078+ 83 Linux Partition table entries are not in disk order [root@new-host-2 ~]# [root@new-host-2 ~]# mount -r -t ufs /dev/sda3 /mnt/bsd mount: wrong fs type, bad option, bad superblock on /dev/sda3, missing codepage or other error In some cases useful info is found in syslog - try dmesg | tail or so [root@new-host-2 ~]# Thank you for your time and help |
||
Posted on: 2009/7/6 18:01
|
|||
|
Re: mount bsd/386 partition to recover data | #10 |
|
|---|---|---|---|
|
Newbie
![]()
Joined: 2009/8/10
From
Posts: 1
|
> Yes it is a FreeBSD partition.
Which version of FreeBSD was used to create the partition? Recent FreeBSD versions default to creating UFS2 filesystems and IIRC UFS2 file systems are not recognized by the Linux UFS module. > /dev/sda3 5802 11438 45272064 a5 FreeBSD /dev/sda3 would be the top-level partition ("slice" in FreeBSD terminology). FreeBSD further divides its top-level partition into file systems; these are usually visible as additional /dev/sdaN device nodes under Linux. If partition /dev/sda3 contains one or more UFS1 filesystems, then a command such as the following should work: # mount -t ufs -o ro,ufstype=44bsd /dev/sda8 /mnt Change "/dev/sda8" above to the appropriate device node name. |
||
Posted on: 2009/8/10 11:40
|
|||
Top Previous Topic Next Topic |
|



Topic options
Print Topic
Threaded
Newest First
severino42






You cannot start a new topic.
You can view topic.