Operating System - Linux
1825659 Members
3465 Online
109686 Solutions
New Discussion

Re: fstab recovery on zx2000

 
filippo ignozza
Occasional Contributor

fstab recovery on zx2000

Dear sirs,
We have a problem on an HP zx2000 machine with redhat Linux64 on board.
During the setup of the network i removed the
fstab file by mistake.
Of course now the machine do not boot correctly and mount the filesystem in read-only mode.
Is there a way to recover the original fstab for the machine?
A second choise could be create a new fstab but as the machine is mounting the Filesystem in read-only mode we do not have any idea how to do it.
The last chance could be installing again the OS but we do not have ANY installation neither recovery CDs.
Thanks in advance for your help.
Filippo Ignozza
3 REPLIES 3
Chakravarthi
Trusted Contributor

Re: fstab recovery on zx2000

Hi,

If you have a linux bootable floppy, should be fine, or else, if you know the partition tabel and have the similar machine, then create a bootable floppy from that machine and try booting, and copy the fstab of the other machine to this,,,

all the best

chakri
filippo ignozza
Occasional Contributor

Re: fstab recovery on zx2000

The problem is that the machine just arrived here with linux already installed and i have no idea the way the system have been partitioned.
I wish to have a place to find ALL the installation CDs so to install everything back again... it seems to me the easiest way as i have no idea how to check the way the system had been partitioned before :(.
Stuart Browne
Honored Contributor

Re: fstab recovery on zx2000

If you removed the file, that'll make recovery hard.

If you can gather the appropriate information together to recreate it however, that's do-able.

To get around the read-only problem. Just issue a remount:

mount -o remount,rw /dev/whatever /

To get the 'whatever', issue 'mount' on it's own.

After that, you might want to look at doing things like:

sfdisk -l /dev/sda

to find out what partitions you've got, and look at:

e2label /dev/sdaX

(where X is the partition number) to find out what's mounted where.

Using entries like:

LABEL=/ / ext2 defaults 1 1
LABEL=/boot /boot ext2 defaults 1 2
LABEL=/bin /bin ext2 defaults 1 1
none /proc proc defaults 0 0
none /dev/pts devpts gid=5,mode=620 0 0
none /dev/shm tmpfs defaults 0 0

etc. etc. should allow you to re-create it.

if you have any issues, you'll need to show us the output of the commands I listed above.
One long-haired git at your service...