Operating System - Linux
1829829 Members
1976 Online
109993 Solutions
New Discussion

how to mount ufs partition under redhat AS 4 -- plz help ASAP

 
SOLVED
Go to solution
Maaz
Valued Contributor

how to mount ufs partition under redhat AS 4 -- plz help ASAP

I have some data on a FreeBSD OS partition(ufs), and I cant mount it under AS 4.
is there any patch/rpm available to mount ufs under redhat AS 4.

Regards
Maaz
10 REPLIES 10
Sergejs Svitnevs
Honored Contributor
Solution

Re: how to mount ufs partition under redhat AS 4 -- plz help ASAP

if your kernel support ufs filesystem (or "lsmod" shows the ufs module), then you can mount FreeBSD partitions by executing the following command:

mount -t ufs -o ufstype=44bsd /dev/hdaX /mnt/freebsdpartition

Regards
Maaz
Valued Contributor

Re: how to mount ufs partition under redhat AS 4 -- plz help ASAP

No the kernel doesnt support ufs. lsmod doesnt show the ufs module.
Is there any rpm/.gz available to support the UFS under redhat AS 4 ?
Sergejs Svitnevs
Honored Contributor

Re: how to mount ufs partition under redhat AS 4 -- plz help ASAP

Seems you have to include both UFS filesystem support (read only) and BSD disklabel (FreeBSD partition tables) support to the kernel or install generic 2.6.9 kernel.
Vitaly Karasik_1
Honored Contributor

Re: how to mount ufs partition under redhat AS 4 -- plz help ASAP

Maaz,
did you try to run mount command?
as far as I remember, you don't need to see ufs module in "lsmod", mount command should load it automatically.
Subramaniyan.S
Advisor

Re: how to mount ufs partition under redhat AS 4 -- plz help ASAP

Hi,

The following link may be usefull, Please go through.

http://www.tldp.org/HOWTO/Linux+FreeBSD-5.html

rgds,

Subbu
The sole advantage of power is that you can do more good
Vipulinux
Respected Contributor

Re: how to mount ufs partition under redhat AS 4 -- plz help ASAP

Hi

You wont be able to write to a UFS partition.
In order to mount it readonly use the command given by Sergies.

Cheers

Maaz
Valued Contributor

Re: how to mount ufs partition under redhat AS 4 -- plz help ASAP

mount command doesnt mount the ufs filesystem, following is the message produce by mount command when i try mount the ufs filesystem:
mount: fs type ufs doesnt support by the kernel

After download u2fs-0.4.3.tar.gz from ftp://metalab.unc.edu/pub/Linux/ALPHA/ufs/
#cd /usr/src
#tar zxvf u2fs-0.4.3.tar.gz
now instead of a Directory, i found 3 files
u2fs-0.4.3.patch, u2fs-0.4.3.lsm and u2fs-0.4.3.readme.
#cat u2fs-0.4.3.readme
.
.
Apply it with the following commands,
cd /usr/src
tar xvfz u2fs-0.4.3.tar.gz
patch -p0 < u2fs-0.4.3.patch

Now prblm is that when I ran the "patch -p0 < u2fs-0.4.3.patch" i got the "File to patch:" prompt. When I press just "enter" it says Skipping File[y]: y

# patch -p0 < u2fs-0.4.3.patch
File to patch:
Skipping[y]:y

but when I provide a parameter/input to File prompt, here is the output
# patch -p0 < u2fs-0.4.3.patch
File to patch: u2fs-0.4.3.patch
patching file u2fs-0.4.3.patch
Hunk #1 FAILED at 3076.
1 out of 1 hunk FAILED -- saving rejects to file u2fs-0.4.3.patch.rej
can't find file to patch at input line 58
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -r -c3 v2.0.17/linux/arch/i386/defconfig linux/arch/i386/defconfig
|*** v2.0.17/linux/arch/i386/defconfig Mon Aug 5 05:41:50 1996
|--- linux/arch/i386/defconfig Wed Oct 30 04:21:34 1996

File to patch:


Regards
Maaz
Sergejs Svitnevs
Honored Contributor

Re: how to mount ufs partition under redhat AS 4 -- plz help ASAP

ufs read-only support is already included into 2.6 kernel. You only need to install rpm package and try to mount your share agin.

Packages for 32-bit x86:

kernel-2.6.9-34.EL.i686.rpm
or
kernel-smp-2.6.9-34.EL.i686.rpm (for SMP version)
Maaz
Valued Contributor

Re: how to mount ufs partition under redhat AS 4 -- plz help ASAP

Current kernel version is 2.6.9-5.EL-i686. Should I have to upgrade it ?
from where I can have kernel-2.6.9-34.EL.i686.rpm
Regards
Maaz
Maaz
Valued Contributor

Re: how to mount ufs partition under redhat AS 4 -- plz help ASAP

Installed FC4 and then
#mount -t ufs -o ro -o ufstype=44bsd /dev/hdaX /mnt/freebsdpartition

Regards
Maaz