Sun 29 Apr 2007
Finally mounted my UFS partitition into Ubuntu 7.04
Posted by NZEYIMANA Emery Fabrice under FreeBSD , Linux , OS , Software1 Comment
After 48 sleepless hours, I finally managed to mount a partition formatted using UFS (the native FreeBSD filesystem).
My configuration is:
HDA: 6 GB (This is where I installed Ubuntu: has partitions hda1, hda2, hda5)
HDC: 80 GB (This is my second hard disk: has one partition hdc1 with UFS)
[code]root@server:/# cat /proc/partitions
major | minor | #blocks | name |
3 | 0 | 3924648 | hda |
3 | 1 | 3694918 | hda1 |
3 | 2 | 1 | hda2 |
3 | 5 | 224878 | hda5 |
22 | 0 | 78150744 | hdc |
22 | 1 | 78150710 | hdc1 |
[/code]
Here is how I did it:
1. I created a mount point /home/myfiles
[code]root@server:/#mkdir /home/myfiles[/code]
2. I run the command [code]root@server:/#mount -r -t ufs -o ufstype=ufs2 /dev/hdc1 /home/myfiles[/code]
I can now read my files by going to /home/myfiles !
In case you want the drive to be remounted at reboot time, then you will have to edit the /etc/fstab file to add the mount information at the end of the file
[code]/dev/hdc1 /home/myfiles ufs auto,ro,ufstype=ufs2 0 0[/code]
Until now, it seems impossible to mount the drive in write mode. Some articles talk of re-compiling the kernel for write support.
July 4th, 2008 at 03:33
Thanks! I googled around and yours was the first helpful hint at solving this problem. Ubuntu was giving me the same error message as when I tried to mount my nfs files systems, so I was thinking I had to load another module.
Arrrgh! I just read the rest of your post and yes the FS is mounted ro! It look like I will be doing more googling for this one.