LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 04-24-2010, 10:09 PM   #1
umarzuki
Member
 
Registered: Aug 2008
Distribution: Debian
Posts: 61

Rep: Reputation: 15
cannot mount root fs


I cloned a RHEL 3 system with clonezilla and restored the image to a vmware player 3.0.1 guest. when it boot, I got kernel panic message and it says it cannot mount root fs (see attachment)

Does this means that the guest do not have vmware player's scsi controller module? How do i get this to work?
Attached Thumbnails
Click image for larger version

Name:	vmware-rhel3.jpg
Views:	51
Size:	66.5 KB
ID:	3431  

Last edited by umarzuki; 04-24-2010 at 10:10 PM.
 
Old 04-25-2010, 05:21 AM   #2
Mr-Bisquit
Member
 
Registered: Feb 2009
Distribution: FreeBSD, OpenBSD, NetBSD, Debian, Fedora
Posts: 770
Blog Entries: 52

Rep: Reputation: 68
What are the kernel load arguments? There's no BIOS detected at all, not even virtual.
You need to mount the image and fix the boot loader.
 
Old 04-25-2010, 06:09 AM   #3
umarzuki
Member
 
Registered: Aug 2008
Distribution: Debian
Posts: 61

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Mr-Bisquit View Post
What are the kernel load arguments? There's no BIOS detected at all, not even virtual.
You need to mount the image and fix the boot loader.
the boot parameter (as attached):
kernel /vmlinux-2.4.21-53.ELsmp ro root=LABEL=/

i also tried changing the scsi controller to ide controller and do the restoration again from the image which resulted in it cannot found /dev/sda5 (another attachment)

How do i mount the image and fix the boot loader? I already tried reinstalling GRUB but it did not work
Attached Thumbnails
Click image for larger version

Name:	param.png
Views:	17
Size:	2.5 KB
ID:	3437   Click image for larger version

Name:	sda5.png
Views:	38
Size:	13.0 KB
ID:	3438  

Last edited by umarzuki; 04-25-2010 at 06:11 AM.
 
Old 04-25-2010, 07:07 AM   #4
Mr-Bisquit
Member
 
Registered: Feb 2009
Distribution: FreeBSD, OpenBSD, NetBSD, Debian, Fedora
Posts: 770
Blog Entries: 52

Rep: Reputation: 68
Use a live cd image and do the boot order such that the vm boots from the iso and mounts the hd image.
Once that is setup, you will need to run the following commands.
Code:
$sudo -s <or> sudo su<This will get you to root>
# ls /dev <Look for hdX or sdX>
#fdisk /dev/(s or h)dX
:p
<look at the filesystem types and partitions>
:q
# mkdir /home/disk 
#mount -t <fstype> -o rw /dev/mount /home/disk
<If succesful you will see another root prompt. If not try another fstype.>
#cd /home/disk/boot/grub
<Fix menu.lst and other configuration files here.>
<When finished exit out.>
 
1 members found this post helpful.
Old 04-25-2010, 07:51 AM   #5
umarzuki
Member
 
Registered: Aug 2008
Distribution: Debian
Posts: 61

Original Poster
Rep: Reputation: 15
the hard disk informations as follows:
Code:
Disk /dev/hda: 300.6 GB, 300647710720 bytes
255 heads, 63 sectors/track, 36551 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1          13      104391   83  Linux
/dev/hda2              14         138     1004062+  82  Linux swap / Solaris
/dev/hda4             139       36453   291700237+   5  Extended
/dev/hda5             139       24454   195318238+  83  Linux
/dev/hda6           24455       36453    96381936   83  Linux

/dev/hda1: LABEL="/boot" UUID="6223abfd-b9b8-4ec4-9410-cd0ca1d4286e" TYPE="ext3" 
/dev/hda5: LABEL="/" UUID="6d4164af-1fe9-4369-8f19-0e3708494775" SEC_TYPE="ext2" TYPE="ext3" 
/dev/hda6: LABEL="/mnt/data" UUID="9701d93e-00df-47aa-9537-a727216e80dc" SEC_TYPE="ext2" TYPE="ext3"
i believe you had seen the attachment sda5.png, from that message, it tries to find /dev/sda5 instead of /dev/hda5. How do i make it otherwise? Any special grub configuration? From what i can see, it boots from /dev/hda1 alright, but when it tried to fsck /dev/sda5, bootup failed because it is not there.

Here's the menu.lst

Code:
#boot=/dev/hda
default=0
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
title Red Hat Enterprise Linux ES (2.4.21-53.ELsmp)
	root (hd0,0)
	kernel /vmlinuz-2.4.21-53.ELsmp ro root=LABEL=/
	initrd /initrd-2.4.21-53.ELsmp.img
title Red Hat Enterprise Linux ES (2.4.21-53.EL)
	root (hd0,0)
	kernel /vmlinuz-2.4.21-53.EL ro root=LABEL=/
	initrd /initrd-2.4.21-53.EL.img
title Red Hat Enterprise Linux ES (2.4.21-4.ELsmp)
	root (hd0,0)
	kernel /vmlinuz-2.4.21-4.ELsmp ro root=LABEL=/
	initrd /initrd-2.4.21-4.ELsmp.img
title Red Hat Enterprise Linux ES-up (2.4.21-4.EL)
	root (hd0,0)
	kernel /vmlinuz-2.4.21-4.EL ro root=LABEL=/
	initrd /initrd-2.4.21-4.EL.img

Last edited by umarzuki; 04-25-2010 at 07:52 AM.
 
Old 04-25-2010, 08:03 AM   #6
umarzuki
Member
 
Registered: Aug 2008
Distribution: Debian
Posts: 61

Original Poster
Rep: Reputation: 15
finally. I edited /etc/fstab and changed all that starts with sda to hda and that works.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to give not-root user ability to mount devices to any mount point??? jdupre Linux - General 8 02-04-2012 10:03 AM
fs errors root mount RO, how to mount RW without rebooting? DaveQB Linux - General 6 05-11-2008 03:36 PM
help please: mount -t smbfs -a fails as normal user, as root, doesn't mount anything thevic Linux - Networking 11 04-09-2007 03:09 AM
patched mount source. works but i must be root to mount !!!??? qwijibow Linux - Software 2 01-29-2004 06:59 AM
vfat mount - all files are 'root' owned, but even root can't -WX d33pdream Linux - General 5 02-28-2003 02:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 06:35 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
Open Source Consulting | Domain Registration