LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 05-28-2006, 02:31 PM   #1
cemzafer
Member
 
Registered: Apr 2006
Distribution: Debian
Posts: 34

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, 07: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, 10:13 AM   #3
cemzafer
Member
 
Registered: Apr 2006
Distribution: Debian
Posts: 34

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:

>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.
 
Old 05-29-2006, 11:43 AM   #4
cemzafer
Member
 
Registered: Apr 2006
Distribution: Debian
Posts: 34

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, 08:37 PM   #5
OmegaBlac
Member
 
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 08:38 PM.
 
Old 05-30-2006, 12:27 AM   #6
WhatsHisName
Senior Member
 
Registered: Oct 2003
Location: /earth/usa/nj (UTC-5)
Distribution: RHEL, AltimaLinux, Rocky
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:
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

Last edited by WhatsHisName; 05-30-2006 at 12:28 AM.
 
Old 05-30-2006, 03:16 PM   #7
cemzafer
Member
 
Registered: Apr 2006
Distribution: Debian
Posts: 34

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


Reply



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 11:17 AM
mount a LVM partition pavi Linux - General 1 10-29-2005 10:56 AM
mount refusing to mount lvm volumes linuxmandrake Fedora 2 07-20-2005 06:06 PM
existing LVM partition won't mount anymore dehuszar Linux - Software 1 09-10-2004 01:26 PM
LVM - displaying mount point pfunk Linux - Software 0 07-10-2003 11:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

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

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