Operating System - Linux
1753746 Members
4891 Online
108799 Solutions
New Discussion юеВ

RedHat 5 unable to boot after vgremove

 
SOLVED
Go to solution
DaJo
Occasional Advisor

RedHat 5 unable to boot after vgremove

Hi,

I was able to successfully (I think) remove a volume group by:
1. lvremove (had only one logical volume)
2. vgremove
3. pvremove
4. fdisk ... (removed all partitions)

After rebooting, and I get the following error:

fsck.ext3: no such file or directory while trying to open /dev/VolGroup01/LogVol01

It takes me to the repair screen (or CTRL+D)
root password:

There's a line in /etc/fstab:

/dev/VolGroup01/LogVol01 /odata

So, I tried to edit the "/etc/fstab" file, but I get the message that it's read only.

Please help.

THanks.
3 REPLIES 3
Patrick Wallek
Honored Contributor

Re: RedHat 5 unable to boot after vgremove

When you edit the file, assuming you are using vi, save with the command:

:w!

The '!' tells the system to save the file even though it is read only. Since you are root, this should work.

Then exit with

:q

Alzhy
Honored Contributor
Solution

Re: RedHat 5 unable to boot after vgremove

Ahhh... you are in the maintenance mode.

Good thing with Linux - you can remount in rw mode:

# mount -o remount /

And you shiuld now be able to edit your fstab file.
Hakuna Matata.
DaJo
Occasional Advisor

Re: RedHat 5 unable to boot after vgremove

Patrick,

I should have mentioned this earlier, but I did try "w!" and "wq!", but it didn't work.

Alzhy,

Worked like a charm, thank you so much. I'll assign points.