LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-08-2014, 02:15 AM   #1
PasBern
Member
 
Registered: Dec 2009
Location: Berlin, Germany
Distribution: Ubuntu 16.10, Fedora 24
Posts: 79

Rep: Reputation: 1
Cannot Mount Logical Volume After Name Change


Hi all,

yesterday I changed the name of my ROOT-partition, a logical volume, as I had omitted the last "t" in its name from von 'LV-ROO' to 'LV-ROOT', but didn't think of updating GRUB. Now GRUB refuses to mount my ROOT-partition, as it can't find one with the old name.

How best to proceed? It won't suffice just to manually change the entry in /boot/grub.cfg via a live system I suppose. This is GRUB2, so if I remember correctly, it works by calling 'external' scripts to build its grub.cfg. Adjusting the initramfs will probably also be needed.

My system (Sabayon Linux) is set up as follows

BOOT-Partition

Encrypted LVM:

ROOT-Partition (Logical Volume)
SWAP-Partition (Logical Volume)
HOME-Partition (Logical Volume)

Thanks a lot for your kind help, I'm sure this can be fixed.
 
Old 06-08-2014, 10:28 AM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Jessie 8.4
Posts: 5,873

Rep: Reputation: 348Reputation: 348Reputation: 348Reputation: 348
Try booting a livecd. Then mount the root partition and edit /etc/fstab to change the name of the root partition there (it still has the old name). Then try to reboot.

For further reading on changing the name of a logical volume:
http://unix.stackexchange.com/questi...n-volume-group
http://wiki-ux.info/wiki/How_to_chan...logical_volume
 
Old 06-09-2014, 03:37 AM   #3
PasBern
Member
 
Registered: Dec 2009
Location: Berlin, Germany
Distribution: Ubuntu 16.10, Fedora 24
Posts: 79

Original Poster
Rep: Reputation: 1
Wouldn't it be necessary to update GRUB settings, too?
 
Old 06-09-2014, 06:04 AM   #4
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,604

Rep: Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241
For a quickie fix, edit the boot command line and replace the "root=LV-ROO" with "root=LV-ROOT"

It is also possible that the UUID changed and the boot command line has "root=UUID=....". but the edit to replace the "root=" above should work.

Last edited by jpollard; 06-09-2014 at 06:06 AM.
 
  


Reply

Tags
lvm2


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
LVM Mount Physical Volume/Logical Volume without a working Volume Group mpivintis Linux - Newbie 10 01-11-2014 08:02 AM
Persistent mount of a Logical Volume on a iscsi disk hup Red Hat 2 12-19-2012 04:46 PM
mount point of logical volume bilux Linux - Virtualization and Cloud 4 08-11-2011 11:46 AM
How to change the LVM logical volume owner in RHEL 5.3 srithi Linux - Newbie 3 12-31-2009 01:34 PM
external mount of a logical volume cygnus-x1 Linux - General 5 07-27-2006 11:56 AM


All times are GMT -5. The time now is 06:32 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration