LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices

Reply
 
LinkBack Search this Thread
Old 01-21-2010, 05:28 AM   #1
mdlinuxwolf
Member
 
Registered: Dec 2006
Distribution: Mepis and Fedora, also Mandrake and SuSE PC-BSD Mint Solaris 11 express
Posts: 256

Rep: Reputation: 29
Question How do you read UNIX files with Fedora 11??


Sadly my desktop which has been running PC-BSD 7 has basically died. I have downloaded a live BSD CD which might or might not repair it from frenzy.

Still, I have decided not to keep using this desktop anymore.

The hard drive has so many errors on it that the installation media can't even find the partition anymore. I'm pretty sure that the data is there and could be recovered.

It has had problems with file corruption before that were getting worse. The hard drive itself is a new SATA 2 from Western Digital that is in good shape. I installed that along with a promise SATA 2 card so that my motherboard could read it. The computer itself is an extremely old Dell that only has 768 MB of RAM and only a 1.2 GB CPU.

It came with Windows 98 originally installed. That is how old it was.

I plan on putting the hard drive into a cage and then seeing if Fedora 11 can read and write stuff from it. This hard drive stores most of my data because my fedora partition on my laptop isn't that large in size.

So, how well does Fedora 11 read and write the BSD file system? If help is needed, what utility is best for it?
 
Old 01-21-2010, 05:53 AM   #2
jschiwal
Moderator
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,262

Rep: Reputation: 561Reputation: 561Reputation: 561Reputation: 561Reputation: 561Reputation: 561
Code:
grep -i ufs /boot/config-2.6.31.8-0.1-desktop
CONFIG_UFS_FS=m
CONFIG_UFS_FS_WRITE=y
Did it use the UFS filesystem? You could try modprobing the "ufs" kernel module.

This person needed to rebuild his RHEL kernel first:
http://marc-abramowitz.com/archives/...ions-in-linux/

Last edited by jschiwal; 01-21-2010 at 05:55 AM.
 
Old 01-28-2010, 07:13 AM   #3
mdlinuxwolf
Member
 
Registered: Dec 2006
Distribution: Mepis and Fedora, also Mandrake and SuSE PC-BSD Mint Solaris 11 express
Posts: 256

Original Poster
Rep: Reputation: 29
Unhappy UFS

Yes, it does use UFS. In Dolphin, the volume even shows up as UFS but then simply doesn't open. I get an error message saying that it has bad blocks or is ufs and so will not open.

modprobe ufs shows nothing.

[root@RSC-Fedora etc]# modprobe ufs
WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/.
[root@RSC-Fedora etc]# cd /
[root@RSC-Fedora /]# grep -i ufs /boot/config-2.6.31.8-0.1-desktop
grep: /boot/config-2.6.31.8-0.1-desktop: No such file or directory
[root@RSC-Fedora /]# grep -i ufs /boot/
[root@RSC-Fedora /]# mount /dev/sdb1
mount: can't find /dev/sdb1 in /etc/fstab or /etc/mtab
[root@RSC-Fedora /]# mount /mnt/sdb1
mount: can't find /mnt/sdb1 in /etc/fstab or /etc/mtab
[root@RSC-Fedora /]# mount /media/sdb1
mount: can't find /media/sdb1 in /etc/fstab or /etc/mtab
[root@RSC-Fedora /]# modprobe ufs
WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/.
[root@RSC-Fedora /]#

It reads and writes NTFS no problem after the root password is entered. Is there some rpm script somewhere that will enable this type of file system to be handled fully?
 
Old 01-28-2010, 08:08 AM   #4
rn_
Member
 
Registered: Jun 2009
Location: Orlando, FL, USA
Distribution: Suse, Redhat
Posts: 127
Blog Entries: 1

Rep: Reputation: 25
the module probably got loaded since there were no error messages. you can check the loaded modules by typing: lsmod | grep ufs

If the ufs module shows up, you should be good to go.

To see if a module is available on the system (instead of doing a grep or find in the /boot directory), use: modprobe -l "*ufs*"

To mount the directory:

mount -t ufs /dev/sdb1 /some_existing_mount_point

your mount command is only complaining that it cannot automatically mount it because it has no knowledge of it; ie. no entry in /etc/fstab
 
Old 01-28-2010, 10:24 AM   #5
mdlinuxwolf
Member
 
Registered: Dec 2006
Distribution: Mepis and Fedora, also Mandrake and SuSE PC-BSD Mint Solaris 11 express
Posts: 256

Original Poster
Rep: Reputation: 29
Question Its a phantom

If the partition wasn't in fstab, how does dolphin see it? It says Volume (ufs). Before removing the UNIX drive, I did get PC-BSD to boot and shutdown normally one last time.

The frenzy live BSD CD-Rom was also able to read the data without incident.

Then I get the weird warning message.

An error occurred while accessing 'Volume (ufs)', the system responded:
org.freedesktop.Hal.Device.Volume.UnknownFailure: mount: wrong fs type, bad option, bad superblock on /dev/sdb1, missing codepage, or helper program, or other error.

In some cases useful info is found in syslog - try dmesg | tail or so

It also works for the reiser partition which is also on the same physical SATA II drive and the NTFS Vista partition on the computer's native hard drive. The reiser volume reads flawlessly. The NTFS Vista partition wants you to be root to mount it & then doesn't complain.
 
Old 01-28-2010, 03:09 PM   #6
rn_
Member
 
Registered: Jun 2009
Location: Orlando, FL, USA
Distribution: Suse, Redhat
Posts: 127
Blog Entries: 1

Rep: Reputation: 25
some file managers will probe for all available media even those not listed in /etc/fstab, and dolphin must have read the partition table to figure out that that partition was ufs. If it were a compatible partition, it may automatically mount it for you if you double-clicked it. This is pretty much a guess since I don't use dolphin.

But, if you're mounting it manually, then you need to either make an entry in /etc/fstab, or provide all the information to mount it.
 
Old 01-29-2010, 05:56 AM   #7
mdlinuxwolf
Member
 
Registered: Dec 2006
Distribution: Mepis and Fedora, also Mandrake and SuSE PC-BSD Mint Solaris 11 express
Posts: 256

Original Poster
Rep: Reputation: 29
The files get even weirder

I tried to use the PC-BSD DVD to repair any mistakes in the partition by running upgrade/repair. It actually booted up after I figured out that the mountroot wasn't quite right and it had to manually be told where to go. ufs:da0s1a.journala not ufs:da0s1a

This means that the UFS filesystem can actually boot like it is the world's biggest flash drive and run UNIX.

The reiser partition which looked like it could work can only be read, not written to. I may have to go in as root and see if I can do something with that. Linux not reading UNIX makes sense, but Linux should be able to read and write to other types of Linux, especially those with an older filesystem.
 
Old 01-29-2010, 07:48 AM   #8
rn_
Member
 
Registered: Jun 2009
Location: Orlando, FL, USA
Distribution: Suse, Redhat
Posts: 127
Blog Entries: 1

Rep: Reputation: 25
perhaps there were errors on the file-system and that's why it comes up as readonly. Did you try fsck?
 
Old 01-29-2010, 11:52 PM   #9
mdlinuxwolf
Member
 
Registered: Dec 2006
Distribution: Mepis and Fedora, also Mandrake and SuSE PC-BSD Mint Solaris 11 express
Posts: 256

Original Poster
Rep: Reputation: 29
Yes, I actually tried to fix the whole thing. I used the PC-BSD DVD to repair the partition. I actually got it to boot up and update off of the external drive. After verifying that it worked, Fedora 11 still couldn't access the partition. When it boots off of the external drive, you have to tell it to use ufs:<harddrive name>.journala not just ufs:<harddrive name> by itself.

You would think that if Fedora can read and write NTFS files, it should also be able to do UNIX files without a hitch. I just wish that there was some RPM application that would allow me to do this.

The reiser partition on the external drive reads and writes without a problem now. I logged in as root, used konqueror to get to the disk, joined it to the Everybody user and group, gave everyone read, write, and run rights and then told Fedora to apply all of those to all folders and subfolders. After close to an hour, it worked. My external drive in secure so its all safe.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to read/write files from windows in fedora ksr Fedora 4 02-26-2006 02:38 PM
Using linux to read unix ".plot" files jkey Linux - General 0 10-05-2005 02:30 PM
mozzla problems-can not read files online, can not read attachments sarajevo Linux - Software 1 09-20-2005 06:58 PM
How program to read files with extension .dat y .cfg files COMTRADE in fedora 1? ivonne Linux - Software 0 11-22-2004 11:42 AM
Fedora Core 1 RPM files - when I run them, I can't read them! [42]Sanf0rd Linux - Software 0 05-30-2004 05:00 PM


All times are GMT -5. The time now is 01:51 PM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration