Operating System - Linux
1822158 Members
3417 Online
109640 Solutions
New Discussion юеВ

How can I create a boot floppy with LVM tools?

 
Runar J├╕rgensen
Frequent Advisor

How can I create a boot floppy with LVM tools?

Greetings!

Of course I'm using LVM on my Linux. It's the greatest thing. :-) However, I'm in trouble now.
I need to mount a /dev/vg00/lvolx (/usr) running of a rescue floppy, but all I get is
6 REPLIES 6
Runar J├╕rgensen
Frequent Advisor

Re: How can I create a boot floppy with LVM tools?

Greetings!

Of course I'm using LVM on my Linux. It's the greatest thing. :-) However, I'm in trouble now.
I need to mount a /dev/vg00/lvolx running of a rescue floppy, but all I get is complaint about a not recognized file system. I know for sure that LVM and the file system is good.

I guess I need to get the LVM tools, pvdisplay, vgdisplay, vgchange etc. and the lvm module loaded, but how do I get the lvm module on a rescue floppy?
My kernel is 2.4.19. All LV and the VG is contained on one single PV (hard disk).

Anyone?

Regards,
Runar J├Г┬╕rgense
Stuart Browne
Honored Contributor

Re: How can I create a boot floppy with LVM tools?

You're saying floppy.. I take it the machine doesn't have a bootable CD-ROM?

The rescume mode of the first CD of most distributions have all such tools available already.

If you really want to get it on to a floppy, try copying the /sbin/vgchange.static binary. The display stuff you probably won't fit on a floppy due to the required libraries.
One long-haired git at your service...
Runar J├╕rgensen
Frequent Advisor

Re: How can I create a boot floppy with LVM tools?

Thanks you for answer Stuart.
I can boot from CD-rom. However, the distros I've looked at doesn't seem to have a compiled lvm module that I can easily load. I need that to use the LVM tools. Don't I?
Steven E. Protter
Exalted Contributor

Re: How can I create a boot floppy with LVM tools?


I can boot from CD-rom. However, the distros I've looked at doesn't seem to have a compiled lvm module that I can easily load. I need that to use the LVM tools. Don't I?

If you can boot with a floppy, a similar process will allow you to create a boot cd.

I recommend you do that.

Yes, it would appear you may need LVM tools.

If its just a corrupt filesystem then fsck or e2fsck will allow you to fix it.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Runar J├╕rgensen
Frequent Advisor

Re: How can I create a boot floppy with LVM tools?

Hi
Unfortunately, there is no CD-burner on this box.I have to install new harware for that. The filesystem is ok.

Yesterday I ran from the Knoppix 3.8.2 LiveCD to see if there where any lvmtools I could use. Although I couldn't get X to work (XFree86/agpgart trouble) there where no lvm module I could load to fix my problem.

Is there no way I can work around this and mount the /dev/vg00/lvol3 (/usr).

Regards,
Runar
Stuart Browne
Honored Contributor

Re: How can I create a boot floppy with LVM tools?

The first CD of any of the RH or Fedora distributions have a rescue mode. Use one of those.
One long-haired git at your service...