LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 10-10-2011, 04:13 PM   #1
Promo_Sam
LQ Newbie
 
Registered: Oct 2011
Location: Orlando
Distribution: RHEL
Posts: 6

Rep: Reputation: Disabled
Won't mount /dev/root on /sysroot during boot...


Hey Guys,

First time posting here so be gentle. I'm very very new when it comes to linux but I'm handy with google so normally I can weasel my way out of any issue I run into. I've been working on this problem all day and I haven't been able to come up with a solution, so I figured I'd leave it to the professionals to solve. Here's my problem:

Quote:
Reading all physical volumes. This may take a while...0
Found volume group "VolGroup_ID_1176" using metadata type lvm2
3 logical volume(s) in volume group "VolGroup_ID_1176" now active
mount: error mounting/dev/root on /sysroot as ext3: Device or resource busy
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: Attempted to kill init!
Let me know which other files you need to see in order to get a better grasp on the configuration of my system. Like I said before, super noob here.

Thanks!

-Sam
 
Old 10-10-2011, 07:38 PM   #2
AuroraZero
Member
 
Registered: Oct 2009
Location: memphis, TN
Distribution: SlackWare 14.2, Android, Slax, Centos 5.9 Final, Centos 6
Posts: 188

Rep: Reputation: 32
What distro? What's the setup? Did you setup the drives before the install or let the setup program do it for you?
 
Old 10-11-2011, 08:35 AM   #3
Promo_Sam
LQ Newbie
 
Registered: Oct 2011
Location: Orlando
Distribution: RHEL
Posts: 6

Original Poster
Rep: Reputation: Disabled
I'm using RHEL 5.2 (64 bit) and I just converted the physical machine to a vmware server (ESXi 5.0) using the standalone converter (5.0).

Edit:
And my kernel is 2.6.18-274.

Last edited by Promo_Sam; 10-11-2011 at 08:41 AM.
 
Old 10-11-2011, 11:56 AM   #4
AuroraZero
Member
 
Registered: Oct 2009
Location: memphis, TN
Distribution: SlackWare 14.2, Android, Slax, Centos 5.9 Final, Centos 6
Posts: 188

Rep: Reputation: 32
Something is definitely wrong when the conversion happened. Almost like the hard drive have gotten corrupted some how.Can you look at your fstab?
 
Old 10-11-2011, 12:29 PM   #5
Promo_Sam
LQ Newbie
 
Registered: Oct 2011
Location: Orlando
Distribution: RHEL
Posts: 6

Original Poster
Rep: Reputation: Disabled
I most certainly can. In linux rescue, here is the fstab:

Quote:
/dev/VolGroup_ID_1176/LogVol1 / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
devpts /dev/pts devpts gid=5,mode=620 0 0
tmpfs /dev/shm tmpfs defaults 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs defaults 0 0
/dev/VolGroup_ID_1176/LogVol0 swap swap defaults 0 0
/dev/VolGroup_ID_1176/tmp /tmp ext3 defaults 1 2
Thank you for your help, I really am utterly lost.
 
Old 10-11-2011, 02:06 PM   #6
AuroraZero
Member
 
Registered: Oct 2009
Location: memphis, TN
Distribution: SlackWare 14.2, Android, Slax, Centos 5.9 Final, Centos 6
Posts: 188

Rep: Reputation: 32
Did you happen to change the boot volume name? Try booting with the cd and select boot from hard drive. See if it boots then. If it does you need to recompile and new kernel and install it. What kernel is it using?
 
Old 10-11-2011, 02:42 PM   #7
Promo_Sam
LQ Newbie
 
Registered: Oct 2011
Location: Orlando
Distribution: RHEL
Posts: 6

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by AuroraZero View Post
Did you happen to change the boot volume name?
I didn't change the boot volume name, but the converter changed the configuration automatically so /boot is located on sda1 and / is on sdb1. On the old physical machine the configuration was one device (sda) with /boot on sda3. Willing to bet this is where the problem lies, either this or the LVM config.

Quote:
Originally Posted by AuroraZero View Post
Try booting with the cd and select boot from hard drive. See if it boots then.
You'll have to be a bit more specific, how do I boot from the hard drive after booting from the cd?

Quote:
Originally Posted by AuroraZero View Post
If it does you need to recompile and new kernel and install it. What kernel is it using?
Kernel 2.6.18-274.3.1.el5

Thanks again!
 
Old 10-11-2011, 03:26 PM   #8
AuroraZero
Member
 
Registered: Oct 2009
Location: memphis, TN
Distribution: SlackWare 14.2, Android, Slax, Centos 5.9 Final, Centos 6
Posts: 188

Rep: Reputation: 32
Should be an option when the disc runs to boot from HD instead of the Disc. If the program did not change the boot volume correctly there is the problem. The machine is using the /boot on /dev/sda3 to boot the machine and when it tries to mount on that drive it can't because you are using it to boot off. That is why you are getting the error device or resource busy because it is using it to boot from.

I am not the most familiar with the LVM config but I would assume you could change the mount point for /sysroot from someplace within its config options. I would change the mount point to /dev/sdb and see if it will mount the volume there and continue to boot or create a new partition to mount /sysroot only into.
 
Old 10-12-2011, 05:07 PM   #9
Promo_Sam
LQ Newbie
 
Registered: Oct 2011
Location: Orlando
Distribution: RHEL
Posts: 6

Original Poster
Rep: Reputation: Disabled
FIXED!

For those of you who were in the same situation as I was.... I'll post my solution.

The BIGGEST thing to pay attention to, in the VMware standalone converter (v5.0) make sure you convert the / hard drive as a BASIC DRIVE, not an LVM.

After that I followed the instructions here to reset grub.conf and redo the initrd.

I hope this helps anyone who was in my situation, I would have LOVED to find this thread during my search for answers.

-Sam
 
Old 10-12-2011, 05:55 PM   #10
AuroraZero
Member
 
Registered: Oct 2009
Location: memphis, TN
Distribution: SlackWare 14.2, Android, Slax, Centos 5.9 Final, Centos 6
Posts: 188

Rep: Reputation: 32
Awesome man glad you got it fixed.
 
Old 10-12-2011, 06:38 PM   #11
Promo_Sam
LQ Newbie
 
Registered: Oct 2011
Location: Orlando
Distribution: RHEL
Posts: 6

Original Poster
Rep: Reputation: Disabled
Thank you for your help sir, it is much appreciated.
 
Old 10-12-2011, 06:39 PM   #12
AuroraZero
Member
 
Registered: Oct 2009
Location: memphis, TN
Distribution: SlackWare 14.2, Android, Slax, Centos 5.9 Final, Centos 6
Posts: 188

Rep: Reputation: 32
You are most welcome
 
  


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
[SOLVED] How to mount by-uuid if the device won't show in /dev/disk/by-uuid untill after blkid /dev/sd* ? masmddr Linux - General 4 01-10-2011 07:38 PM
mount : mount error 2 mounting ext 3 Pivotroot: pivot_root(/sysroot,/sy TONYSUCCAR Linux - Enterprise 3 09-07-2009 05:08 AM
LVM2 (non-root) lv's won't mount at boot time jbanafato Linux - General 3 03-06-2005 11:29 PM
pivotroot: pivot_root(/sysroot,/sysroot/initrd) failed: 2 5150 Red Hat 2 04-17-2004 02:41 PM
Kernel Panic: pivot_root (/sysroot, /sysroot/initrd) Faild: 2 Help Needed KingofBLASH Linux - General 8 12-20-2003 09:43 AM

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

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