Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Hardware
User Name
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?


  Search this Thread
Old 07-24-2007, 09:27 AM   #1
LQ Newbie
Registered: Mar 2006
Location: Norway
Distribution: Fedora
Posts: 14

Rep: Reputation: 0
Boot failure after installing a new HDD


I've just added a new HDD to my FC5 system.

The mechanics went fine and the system rebooted without problems.

After boot I checked my graphical LVM and managed to initialice my HDB into the excisting volume (VolGroup01). When doing a df -h I could se no change so i reasoned that I had to partition the disk and do a format on it.

I therefore did fdisk /dev/hdb -> n -> p1 and finalized with a w for write. everythink ok so far.

Then I mkfs.ext3 -L /home2 /dev/hdb1, everythink went smooth.

Finally I did what I think was the error:
I added LABEL=/home2 ext3 defaults 1 2 to my fstab file.

When I rebooted after that all I got was a lot of crap that goes:
Couldn't find all physical volumes for volume group VolGroup01.
Couldn't find device with uuid '1nTtF0-12p2-wsxD-Ow4G-Nw10-b3TX-ukfLrQ'.
VolumeGroup01 not found
These lines are repeated a few times then:
Unable to find voulme group "VolGroup01"
Unable to access resume device (/dev/VolGroup01//LogVol01)
mount: could not find filesystem '/dev/root'
setuproot: moving /dev failed: no such file or directory
setuproot: error mounting /proc: no such file or directory
setuproot: error mounting /sys: no such file or directory
switchroot: mount failed: no such file or directory
Kernel panic - not syncing: Attempt to kill init!

So here I am, scratching my head.
Is there a simple way of booting the system to access my fstab file to undo these changes? And will it help?

Any help will be highly appreciated.
Old 07-24-2007, 10:58 AM   #2
Senior Member
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,186

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
I think that when you formatted (using mkfs.ext3 /dev/hdb1 as an ext3 fs, you probably destroyed the LV information on hdb. (LVs can only be accessed (and formatted) from /dev/mapper/<VG Name>_<LV Name>, not /dev/hd<anything>.)

To do what you seem to want to do, I believe you have to create and format the physical volume before you add the physical device to the volume group. I don't see why you're bothering to add the new drive to your existing volume group, since (from what you put into your /etc/fstab) you're planning to use the new device as a separate entry in the root file system, not as free space in your existing VG. Although your LABEL=/home2 line fails to specify any mount-point between the home2 and ext3, so it is, I think, an invalid entry as you presented it. (Perhaps just a typo, eh?)

You could try booting linux rescue and using LVM to remove the (probably bad) PV from the VG, which should get you a bootable system again, and then add the PV back into the VG. (Note that adding the PV to the VG will change the partition type of the PV to the LVM partition type, so accessing that PV as a device will cause errors because the partition type is no longer compatible with that expected by the direct access tools. That's why you'll need to go through the device mapper.)
Old 07-26-2007, 02:02 AM   #3
LQ Newbie
Registered: Mar 2006
Location: Norway
Distribution: Fedora
Posts: 14

Original Poster
Rep: Reputation: 0
I managed to rescue the system

I booted with a rescue CD, and removed hdb1 from the system. I then managed to boot into my system as far as I could edit my fstab and remove the line concerning hdb.
After that everything was back to normal.

Thanks for you help, I really appreciated your effort.


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
GRUB error 21 when trying to boot XP after installing Ubuntu 7.04 on seperate hdd neilksos Linux - Newbie 16 05-05-2008 08:07 AM
Windows xp boot failure after installing mandrale 9.1: hal.dll missing ilbecha Mandriva 3 01-06-2006 10:59 AM
Boot failure after installing Slackware gbl0330 Linux - Newbie 3 12-23-2005 11:33 PM
Disk boot failure after installing FC4 DR.V Fedora 20 09-05-2005 02:42 PM
Dual boot XP(internal IDE HDD) Debian(external USB-IDE HDD) using boot.ini PolarDog Linux - Laptop and Netbook 2 07-01-2005 09:50 PM > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 05:25 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