LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 01-18-2008, 09:35 AM   #1
magplumber
LQ Newbie
 
Registered: Jan 2008
Posts: 11

Rep: Reputation: 0
Unhappy installed fedora 8 and get error message: No volume groups found.


I recently installed fedora 8 and have trouble completeing the boot sequence. I can run the livecd with no problems but as soon as I try to boot from the hard drive. I get the message "No volume groups found"

When I installed fedora, I used all the default configurations.

I have an Acer aspire 5520.

can anyone help me with this problem. I don't really know much about linux, so any responses should really have very detailed explanations.


thanks.
 
Old 01-18-2008, 10:45 AM   #2
mether
Member
 
Registered: Mar 2007
Distribution: RHEL, Fedora, Open Suse
Posts: 151

Rep: Reputation: 31
If you can boot the system in rescue mode then post the output of :

#pvdisplay

#fdisk -l

Also check your initrd that it contains also the modules of LVM ( dm ) in it.
 
Old 01-18-2008, 10:56 AM   #3
magplumber
LQ Newbie
 
Registered: Jan 2008
Posts: 11

Original Poster
Rep: Reputation: 0
Thanks, I'll give it a try and post any results.
 
Old 01-18-2008, 11:44 AM   #4
magplumber
LQ Newbie
 
Registered: Jan 2008
Posts: 11

Original Poster
Rep: Reputation: 0
pvdisplay

--Physical Volume--

PV Name /dev/sda2
VG Name VolGroup00
PV Name 148.86 GB / not usable 13.24 MB
Allocatable yes
PE size(kbyte) 32768
Total PE 1
Allocatable PE 4762
PV UUID nBRs1e-xoS5-SbaY-aziK-PjbU-4r8J-Tj1zX


Fdisk -l:

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
units=cylinders of 16065*512=8225280 bytes
Disk identifer:0x000c6b6

Device Boot Start End Blocks ID System

/dev/sda1 * 1 25 200781 83 Linux
/dev/sda2 26 194457 156087540 8e Linux LVM

Here's some of the requested info. I had to log back on with livecd to find out where the initrd is located.
 
Old 01-18-2008, 12:15 PM   #5
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,186

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
Is you drive a serial or IDE one?

I have a similar problem, but it's caused by the LVM module in the initial ram disk image not being able to find logical volumes on a USB drive, so there might be some problem processing serial drives.

I pulled an 80Gb drive from my laptop, replacing it with a 120Gb one, and put the drive I pulled into a USB drive enclosure. When I try to boot the USB drive, the initrd.img loads, but the pvscan reports "No logical drives found." When I boot from the new 120Gb drive, the drive in the USB enclosure is visible and the LV on it can be activated, mounted, and accessed with no problem.

When I get some time, I'll try replacing the LVM stuff in the initrd image with copies from the working versions on the HD, and post a note here if that fixes the problem.
 
Old 01-18-2008, 01:08 PM   #6
magplumber
LQ Newbie
 
Registered: Jan 2008
Posts: 11

Original Poster
Rep: Reputation: 0
You're right I do have a serial ata hard drive. I'm going to look around and see if I could find a sollution too. I would appreciate it if you let me know if you get it to work.
 
Old 01-18-2008, 02:18 PM   #7
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,186

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
Hum. I just checked, and the lvm command in both my running F8 and in the initrd image are links to lvm.static, and that file is identical on the two systems. (Well, they have the same byte count and creation date. I didn't bother to check the check sums.)
Code:
[root@tss-4 ~]# cd /MX6436/boot/Initial_RAM_Disk/bin
[root@tss-4 bin]# ls -l
total 1520
-rwxr-xr-x 1 root root    6816 2007-10-07 16:49 insmod
lrwxrwxrwx 1 root root      16 2008-01-17 08:49 lvm -> /sbin/lvm.static
-r-xr-xr-x 1 root root 1435984 2007-08-24 15:18 lvm.static
lrwxrwxrwx 1 root root      10 2008-01-17 08:49 modprobe -> /sbin/nash
-rwxr-xr-x 1 root root   86392 2007-10-30 12:05 nash
-rwxr-xr-x 1 root root   10500 2007-10-07 16:49 rmmod
[root@tss-4 bin]# ls -l /sbin/lvm*
lrwxrwxrwx 1 root root      10 2007-11-02 08:45 /sbin/lvm -> lvm.static
-r-xr-xr-x 1 root root 1435984 2007-08-24 15:18 /sbin/lvm.static
I also checked the contents of the initrd library files against the library files in /usr/lib and they, too, have the same creation dates and byte counts.

So I can't see any reason why lvm would work any differently when loaded from the initrd image file than it does when loaded from /sbin. In fact, I just tried it using the lvm.static file extracted from the image file, and it worked fine:
Code:
[root@tss-4 Initial_RAM_Disk]# bin/lvm pvscan
  PV /dev/sdd5   VG Old_MX6436   lvm2 [30.44 GB / 32.00 MB free]
  PV /dev/sdb2   VG FC7          lvm2 [189.81 GB / 32.00 MB free]
  PV /dev/sda6   VG F8           lvm2 [46.00 GB / 32.00 MB free]
  Total: 3 [266.25 GB] / in use: 3 [266.25 GB] / in no VG: 0 [0   ]
Does anyone know what this section of the nash boot script does?
Code:
echo Making device-mapper control node
mkdmnod
insmod /lib/scsi_wait_scan.ko
rmmod scsi_wait_scan
mkblkdevs
What's the point in inserting the scsi_wait_scan module and then immediately removing it?

<edit>
So, I commented out the rmmod, but that made no difference. (Anyhow, the problem is with ATA drives, not SCSI ones.)

I did notice one strange thing: I have the old laptop drive plugged into one of my desktop systems (running F8), and the pvscan during the boot of the desktop F8 system does not see the LV on the USB drive, and the pvscan when I boot from the USB drive fails to see any logical volumes, not just the one on the USB drive.

In any case, I think I'd better start my own thread. I don't need/want to hijack magplumber's thread, although his problem might be a "serial" drive one.
</edit>

Last edited by PTrenholme; 01-18-2008 at 02:50 PM.
 
Old 01-18-2008, 03:20 PM   #8
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,186

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
magplumber, I just realized that there may be a simple solution for your problem. Your F8 installation is a new one, so you could just re-install F8 and not use the default Logical Volume setup. Instead, when you're asked how you want to partition the disk, just select the "manual" option and create a small partition of type "swap" (there's a drop-down list of partition types), and a second partition using the rest of the disk as an ext3 partition with the label "/" (no quotes).

This should work since GRUB can find the /boot partition created by default outside the logical volume (which only contains the swap space and "/").

<edit>
In fact, I'm going to tar my old drive, re-partition it, and restore it to see if that will work for me.

Of course, fixing the real problem would be nice, but the only real reason to use LVs is so Red Hat can test them, and they are, essentially, unnecessary unless you've got a server with many disks in RAID configurations.
</edit>

Last edited by PTrenholme; 01-18-2008 at 09:05 PM.
 
Old 01-18-2008, 05:29 PM   #9
magplumber
LQ Newbie
 
Registered: Jan 2008
Posts: 11

Original Poster
Rep: Reputation: 0
PTrenHolme, I partitioned everything according to your suggestion, but sad to say it didn't work didn't work:

Waiting for driver initialization
Trying to resume from LABEL=swap-sda2
Creating root device
Mounting root filesystem
mount: could not find file system '/dev/root'
etc
etc..
kernel panic-not syncing: Attempted to kill init!

Grub:

#Notice you do not have a /boot partition
#This means that all kernel and initrd path
#are relative to /, eg. root(hd0,0)
#Kernel /boot/vmlinuz-version ro root=dev/sda1
#Initrd /boot/initrd-version.img
#boot=/dev/sda
default=0
timeout=5
spalshimage=(hd0,0)/boo/grub/spalsh.xpm.g2
hiddenmenu
title Fedora (2.6.23.1-42.fc8)
root (hd0,0)
kernel /boot/vmlinuz-2.6.23.1-42.fc8 ro root=LABEL=/ rhgb quiet
initrd /boot/initrd-2.6.23.1-42.fc8.img

fstab:

LABEL=/ / ext3 defaults 11
tmpfs /dev/shm tmpfs defaults 00
devpts /dev/pts devpts gid-5, mode=620 00
sysfs /sys sysfs defaults 00
proc /proc proc defaults 00
LABEL=swap-sda2 swap swap defaults 00

Fdisk -l:
device boot start end blocks id system
/dev/sda1 * 1 19202 154240033+ 18 Linux
/dev/sda2 19203 19457 2048287+ 82 Linux
swawp / solaris


I'm still open to any suggestions.
 
Old 01-18-2008, 09:02 PM   #10
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,186

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
Now that's really strange. Your GRUB entry seems fine, as does your /etc/fstab listing, except the partition type for your Linux filesystem should be 83, not 18 -- perhaps a typo if you enter that information by hand. (Although it's not customary to label swap space since the kernel will use any partitions on any drive of type 82 as swap space.)

For comparison, here's what the partition table on my problem drive looks like:
Code:
$ /sbin/fdisk -l /dev/sdd

Disk /dev/sdd: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x4b36bdea

   Device Boot      Start         End      Blocks   Id  System
/dev/sdd1   *         894        5730    38853202+   7  HPFS/NTFS
/dev/sdd2               1         893     7172991    b  W95 FAT32
/dev/sdd3            5731        5861     1052257+  82  Linux swap / Solaris
/dev/sdd4            5862        9729    31069710   83  Linux

Partition table entries are not in disk order
The last two entries are for the Fedora system.

And here's what my /etc/fstab looks like:
Code:
$ cat /MX6436/etc/fstab
UUID=c86cdec4-8862-408d-b1e1-601421817d82 /     ext3    defaults        1 1
tmpfs                   /dev/shm                tmpfs   defaults        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0
UUID=62a6c022-0e83-4992-a130-b5091116b0a2 swap  swap    defaults        0 0
I should note, though, that I'm still getting the same error message as you.

On another note, if you click on the "Go Advanced" button under the "Quick Reply" message box, you can format you message so it's somewhat more readable.

Last edited by PTrenholme; 01-18-2008 at 09:08 PM.
 
Old 01-18-2008, 11:06 PM   #11
okos
Member
 
Registered: May 2007
Location: California
Distribution: Slackware/Ubuntu
Posts: 609

Rep: Reputation: 38
Quote:
Originally Posted by PTrenholme View Post
Hum. I just checked, and the lvm command in both my running F8 and in the initrd image are links to lvm.static, and that file is identical on the two systems.
PTrenholme,
I want to apologize, I am not trying to hijack this thread. I just want to understand.

Could you explain lvm (logical volume management) and initrd (initial ram disk) I looked it up in wikipedia and just don't understand.

And if you could explain how this relates to your issue.

thanks
okos
 
Old 01-19-2008, 10:02 AM   #12
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,186

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
Hum. I thought those articles were fairly good.

Briefly, LVM defines a partition that can contain within it other partitions, and the partitions inside a LVM partition can be "expanded" to have parts of them in different LVM partitions. Thus LVM removes the connection between an actual, physical, partition on an individual disk drive and the "logical" partition that the operating system uses. So, for example, if you had, say, 4 500GB physical drives, and you wanted two 1TB drives for a RAID mirror configuration, you could use LVM to "logically" merge 2 pairs of the "real" drives into two "logical" 1TB drives, and then configure those two 1TB "logical" drives into a RAID mirror set.

The whole point of LVM is that it adds an abstraction layer between the real, physical, disk drives and the "logical" disk drives seen by the operating system.

That, of course, why I said that using LVM when you have only one real drive is probably unnecessary "overkill."

The initial ram disk is a small Linux OS designed to be loaded into RAM at boot time. It's used to load the operating system that you actually want to run. (It's often referred to as the "bootstrap loader" since it's a Linux system used to load a Linux system.)

All that relates to my problem because the nash script run by the bootstrap loader on Fedora systems reported that it could not find any logical volumes on my system while the same command, run on a working Fedora installation on the same hardware, found three different logical volume sets. However the same command, run in the nash script whist booting the previously mentioned working Fedora installation, reported only two LV groups, missing the one on the USB drive. So it seems that nash (or the bootstrap Linux system) may have some problem with USB (or serial) drives. (The possibility that the problem was related to serial drives is why I jumped into this thread in the first place.)

At this point, I'm adding busybox to the initrd image on my USB drive and modifying the nash script to use it to see if I can get more information from the "mini Linux" about what it's "seeing" during the boot. (The showlabels command mentioned in the nash manual page has, apparently, been removed since it produced no output when I tried it.)
 
Old 01-19-2008, 04:16 PM   #13
magplumber
LQ Newbie
 
Registered: Jan 2008
Posts: 11

Original Poster
Rep: Reputation: 0
Angry

Well I have installed mandriva, sabayon, and a few other linux operating systems and they all give me pretty much the same error.As I said before I can run the Livecd version of all of them but once I install to hard drive and boot I get the same error message on every OS. I'm sure I'm not the only one who has had this problem, but I've been on quite a few forums and no one seems to be talking about it.
 
Old 01-19-2008, 09:14 PM   #14
okos
Member
 
Registered: May 2007
Location: California
Distribution: Slackware/Ubuntu
Posts: 609

Rep: Reputation: 38
PTrenholme
Thanks for the explanation. Im learning soooo much!
okos
 
Old 01-20-2008, 01:27 AM   #15
magplumber
LQ Newbie
 
Registered: Jan 2008
Posts: 11

Original Poster
Rep: Reputation: 0
Well I finally found out what was wrong. It's definitely something built into the kernel itself. There's an incomapatability between the kernel(fedora 8, sabayon, mandriva,...) and the bios hard drive controller in the Acer Aspire 5520. I finally found an OS that works for me: OpenSuse 10.3
 
  


Reply


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
No Volume groups found in CentOS-5 boot-up but works in USB caddie but not in PC robrich Linux - Newbie 0 01-08-2008 08:51 AM
Error message when launching volume control - no volume rm_-rf_windows Mandriva 9 06-26-2007 12:17 PM
Fedora Core 6 boot No medium found No volume groups found awadhut Linux - Hardware 1 02-22-2007 01:15 AM
How to backup Fedora Volume Groups? taylorkh Fedora 6 11-09-2006 02:58 PM
Boot failure, No volume groups found (FC5) carrerasg Fedora - Installation 0 02-22-2006 01:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:33 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration