Operating System - HP-UX
1821985 Members
3339 Online
109638 Solutions
New Discussion юеВ

How can I mount a corrupt File System?

 
Francisco Soler
Occasional Contributor

How can I mount a corrupt File System?

In HP-UX version 9.x, I can mount a corrupt file system with the option -f in
the mount command, then i can perform backups or retrive some important
information.

How can i mount this file systems without LVM inside in HP-UX 10.20? In HP-UX
10.20 there are not -f option.

If not possible, How can I retrieve information from this file system without
mounting it?

Thanks in advance.
Frank.
4 REPLIES 4
Neil Gast_1
Frequent Advisor

Re: How can I mount a corrupt File System?

I don't think you'll be able to mount the corrupt filesystem under HP-UX 10.x
or later, and for good reason: You can cause further filesystem damage.

Is there a specific reason you don't want to fsck the filesystem and remount
it? There is, of course, a chance that you'll lose some files to the lost+found
directory, especially if the filesystem is really corrupted, but it's by far
your safest bet.

I can't think of any useful way to recover files from a corrupt filesystem,
other than using dd. But dd dumps in raw mode, and I'm not sure how you could
handle the data on the receiving end (of=).

MrNeil
Francisco Soler
Occasional Contributor

Re: How can I mount a corrupt File System?

The reason to mount a corrupt file system is that fsck is not able to repair
the file system and i need some information in it.
I was try fsck with -y and -b16 but no success.
Kevin Sharpley
New Member

Re: How can I mount a corrupt File System?

If the filesystem is a hfs filesystem there is a force option.

Look at the -f option in: man mount_hfs
Francisco Soler
Occasional Contributor

Re: How can I mount a corrupt File System?

Thank you very much, this is the command I was looking for.

I found it in /sbin/fs/hfs/mount, this mount command has the -f option and I
was able to recover the information I needed

Once more time, many thanks!!!

Frank.