Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Debian This forum is for the discussion of Debian Linux.


  Search this Thread
Old 05-28-2006, 03:31 PM   #1
LQ Newbie
Registered: Apr 2006
Distribution: Debian
Posts: 25

Rep: Reputation: 15
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?
Old 05-29-2006, 08:26 AM   #2
Dutch Master
Senior Member
Registered: Dec 2005
Posts: 1,686

Rep: Reputation: 124Reputation: 124
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.
Old 05-29-2006, 11:13 AM   #3
LQ Newbie
Registered: Apr 2006
Distribution: Debian
Posts: 25

Original Poster
Rep: Reputation: 15
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:

>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:

>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.
Old 05-29-2006, 12:43 PM   #4
LQ Newbie
Registered: Apr 2006
Distribution: Debian
Posts: 25

Original Poster
Rep: Reputation: 15
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?
Old 05-29-2006, 09:37 PM   #5
Registered: Aug 2003
Location: California
Distribution: Ubuntu
Posts: 172

Rep: Reputation: 31
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.

Last edited by OmegaBlac; 05-29-2006 at 09:38 PM.
Old 05-30-2006, 01:27 AM   #6
Senior Member
Registered: Oct 2003
Location: /earth/usa/nj (UTC-5)
Distribution: RHL9;F1-10; CentOS4-5; DebianSarge-Squeeze
Posts: 1,151

Rep: Reputation: 46
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:
# 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:

Last edited by WhatsHisName; 05-30-2006 at 01:28 AM.
Old 05-30-2006, 04:16 PM   #7
LQ Newbie
Registered: Apr 2006
Distribution: Debian
Posts: 25

Original Poster
Rep: Reputation: 15
Thanks, for the replies.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to mount LVM Volume twice Phil.Johnson Linux - Software 0 03-14-2006 12:17 PM
mount a LVM partition pavi Linux - General 1 10-29-2005 11:56 AM
mount refusing to mount lvm volumes linuxmandrake Fedora 2 07-20-2005 07:06 PM
existing LVM partition won't mount anymore dehuszar Linux - Software 1 09-10-2004 02:26 PM
LVM - displaying mount point pfunk Linux - Software 0 07-10-2003 12:51 PM > Forums > Linux Forums > Linux - Distributions > Debian

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration