LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 09-15-2012, 09:45 PM   #1
flebber
Member
 
Registered: Jan 2005
Location: Newcastle, Australia
Distribution: Slackware 14.1
Posts: 393

Rep: Reputation: 30
Cannot mount Volume Group


I am in ubuntu trying to mount a Sabayon lvm so grub2 can see it. This is what I have done but cannot mount can someone help please.

so I did fdisk -l
Code:
sayth@sayth-TravelMate-5740G:~$ fdisk -l

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x104abfd7

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048    27265023    13631488   27  Hidden NTFS WinRE
/dev/sda2        27265024    27469823      102400    7  HPFS/NTFS/exFAT
/dev/sda3        27469824   786911894   379721035+   7  HPFS/NTFS/exFAT
/dev/sda4       786913218   976773119    94929951    5  Extended
/dev/sda5       786913280   812302335    12694528   83  Linux
/dev/sda6       812304384   816254975     1975296   82  Linux swap / Solaris
/dev/sda7       816257024   909033471    46388224   83  Linux
/dev/sda8       909035520   910059519      512000   83  Linux
/dev/sda9       910061568   976773119    33355776   8e  Linux LVM
Then used pvs to view the groups.
Code:
sayth@sayth-TravelMate-5740G:~$ sudo pvs
  PV         VG              Fmt  Attr PSize  PFree
  /dev/sda9  vg_sabayonx8664 lvm2 a-   31.78g    0
Then I displayed the volume groups.
Code:
sayth@sayth-TravelMate-5740G:~$ sudo lvdisplay vg_sabayonx8664
  --- Logical volume ---
  LV Name                /dev/vg_sabayonx8664/lv_root
  VG Name                vg_sabayonx8664
  LV UUID                EZEswp-zXb4-3cGd-d5oC-n9En-JdBB-Pul3ua
  LV Write Access        read/write
  LV Status              NOT available
  LV Size                28.00 GiB
  Current LE             896
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
   
  --- Logical volume ---
  LV Name                /dev/vg_sabayonx8664/lv_swap
  VG Name                vg_sabayonx8664
  LV UUID                eEgzEH-rrRS-fKle-98iu-cAFR-L7su-yK9hXC
  LV Write Access        read/write
  LV Status              NOT available
  LV Size                3.78 GiB
  Current LE             121
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
here is where it errors I am trying to mount the root volume group so I can detect it in the update-grub2 command.
But it fails. Tried a couple of variations
Code:
sayth@sayth-TravelMate-5740G:~$ sudo mount /dev/vg_sabayonx8664/lv_root /mnt
mount: special device /dev/vg_sabayonx8664/lv_root does not exist
sayth@sayth-TravelMate-5740G:~$ sudo mount vg_sabayonx8664 /mnt
mount: special device vg_sabayonx8664 does not exist
sayth@sayth-TravelMate-5740G:~$ sudo mount /dev/vg_sabayonx8664 /mnt
mount: special device /dev/vg_sabayonx8664 does not exist
 
Old 09-15-2012, 10:09 PM   #2
sackboy
LQ Newbie
 
Registered: Sep 2012
Posts: 20

Rep: Reputation: Disabled
Have you tried activating the inactive volumes first?

# vgchange -a y

What's the output of `ls /dev/vg_sabayonx8664/` ?
 
Old 09-15-2012, 10:31 PM   #3
flebber
Member
 
Registered: Jan 2005
Location: Newcastle, Australia
Distribution: Slackware 14.1
Posts: 393

Original Poster
Rep: Reputation: 30
Actually sudo vgchange -a y did the job all by itself. Don't think the other stuff I was doing was necessary.
 
Old 09-15-2012, 10:40 PM   #4
flebber
Member
 
Registered: Jan 2005
Location: Newcastle, Australia
Distribution: Slackware 14.1
Posts: 393

Original Poster
Rep: Reputation: 30
Code:
sayth@sayth-TravelMate-5740G:~$ sudo ls /dev/vg_sabayonx8664/
[sudo] password for sayth: 
lv_root  lv_swap
 
  


Reply

Tags
lvm, lvm2, sabayon, ubuntu 12.04


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 07:02 AM
[SOLVED] Redhat volume group,logical volume group dhairysheel Red Hat 3 08-02-2011 05:07 AM
Corrupted Volume: fsck shows thousands of group descriptor errors on ext4 volume. abejarano Linux - General 2 04-21-2011 06:49 AM
Fedora LVM volume group & Physical Volume resize problem gabeyg Fedora 1 05-14-2008 11:26 AM
Partitions under LVM Volume Group won't mount after install jimisola Mandriva 4 11-16-2005 04:17 PM


All times are GMT -5. The time now is 03:20 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration