LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Mount LVM (https://www.linuxquestions.org/questions/debian-26/mount-lvm-449376/)

cemzafer 05-28-2006 02:31 PM

Mount LVM
 
I got this error message,

ALERT! /dev/mapper/Debian-root does not exist. Dropping to a shell!

So how can i mount a LVM partition system to mount and chroot to recover the system again?

Dutch Master 05-29-2006 07:26 AM

Did you try the TLPD Howto? Link
Dunno if it covers your particular problem, but it should give you some insights in why the error occured and therefor what you need to do to solve it.

cemzafer 05-29-2006 10:13 AM

Someone post this info before,

>I just had the same problem with ETCH, and what I did was this:
>booting live cd (knoppix)
>opened up a shell and issued the following commands:

>Code:
>su -
>mount -t ext3 -o rw /dev/hda1 /mnt
>chroot /mnt
>apt-get update
>apt-get upgrade


>Now, for me the problem was that udev was not updated, and that might not be the case for someone >else, but I fixed it simply with:

>Code:
>apt-get install udev


>rebooted the system, and everything is back to normal.
>I tried the suggested yiard thingie, but it didnt work (due to my stupidness of course hehe, >proc was not mounted), and I am happy I didnt succeed with that at the moment.

>Hope this helps someone

When i want to mount /dev/hda1 it gives error, because of LVM,
So I have to mount LVM to recover the error, I think.

Anyway, thanks for the link.

cemzafer 05-29-2006 11:43 AM

Is there any way to mount a LVM partition?

mount -t ext3 /dev/hda7 /mnt gives this error

mount: wrong fs type, bad option, bad superblock on /dev/hda7
missing codepage or other error

How can i learn the LVM filesystem?

OmegaBlac 05-29-2006 08:37 PM

You need to use the LVM tools to find the VGs and LVs. I think vgscan (to locate the volume group) is one of them, but Dutch Master posted the link to the LVM-HOWTO which contains this info above so it would be very wise to go read it and find the exact procedure on how to find & mount an LVM volumes. Also man lvm if possible.

WhatsHisName 05-30-2006 12:27 AM

cemzafer: You are attempting to mount the physical volume, which will not work.

Run lvscan to identify the logical volume you wish to mount and then mount it as you would a partition.

For example, where a volume group is not active:
Code:

# vgscan
  Found volume group "raid5" using metadata type lvm2

# lvscan
  inactive          '/dev/raid5/test' [10.00 GB] inherit

# vgchange -ay
  1 logical volume(s) in volume group "raid5" now active

# lvscan
  ACTIVE            '/dev/raid5/test' [10.00 GB] inherit

# mount -t ext3 /dev/raid5/test /mnt

Each of these lvm commands has an excellent man page and, as has been pointed out, the LVM HowTo is a must-read for anyone new to using LVMs: http://www.ibiblio.org/pub/Linux/doc...tml#commontask

cemzafer 05-30-2006 03:16 PM

Thanks, for the replies.


All times are GMT -5. The time now is 10:36 PM.