[ilugd] big grub problem .

2007-10-01 Thread devesh
hi all,

I had install fc6 on my desktop on a sata hard disk. And then attached this
hard disk to another machine.

This 80GB hard disk contains dual boot fedora as well as windows.

On my pc it worked fine booted both partitions.

But , as i attached it to another pc Windows Partition  normally boots up  ,
while fedora shows the following error :

   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: Attempted to kill init!

My grub's menu/lst looks like :

title Fedora Core (2.6.18.1)
root (hd0,6)
kernel /boot/vmlinuz-2.6.18.1 ro root=LABEL=/ rhgb quiet
initrd /boot/initrd-2.6.18.1.img

here i changed root=LABEL=/new_label  as possible as i could.

also i reinstalled grub using grub-install /dev/sda --recheck

I also used the process given on page.
http://www.linuxquestions.org/questions/showthread.php?t=433048

the good thing is that if i attach this hard disk to my pc again it works
fine ..


any solution to prob...

Regards,
Devesh...
___
ilugd mailinglist -- ilugd@lists.linux-delhi.org
http://frodo.hserus.net/mailman/listinfo/ilugd
Next Event: http://freed.in - September 28-29, 2007
Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi 
http://www.mail-archive.com/ilugd@lists.linux-delhi.org/


Re: [ilugd] big grub problem .

2007-10-01 Thread Kazim Zaidi
On 02/10/2007, devesh [EMAIL PROTECTED] wrote:

 hi all,

 I had install fc6 on my desktop on a sata hard disk. And then attached
 this
 hard disk to another machine.

 This 80GB hard disk contains dual boot fedora as well as windows.

 On my pc it worked fine booted both partitions.

 But , as i attached it to another pc Windows Partition  normally boots
 up  ,
 while fedora shows the following error :

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: Attempted to kill init!

 My grub's menu/lst looks like :

 title Fedora Core (2.6.18.1)
 root (hd0,6)
 kernel /boot/vmlinuz-2.6.18.1 ro root=LABEL=/ rhgb quiet
 initrd /boot/initrd-2.6.18.1.img

 here i changed root=LABEL=/new_label  as possible as i could.


Are you sure your harddisk remains (hd0) on the new computer too?
Replace it with root=LABEL=new-label (not prefixing /)


- Kazim Zaidi
___
ilugd mailinglist -- ilugd@lists.linux-delhi.org
http://frodo.hserus.net/mailman/listinfo/ilugd
Next Event: http://freed.in - September 28-29, 2007
Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi 
http://www.mail-archive.com/ilugd@lists.linux-delhi.org/


Re: [ilugd] big grub problem .

2007-10-01 Thread आशीष Ashish
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

,--[ On Tuesday 02 Oct 2007, devesh wrote:
| hi all,

Hi,

|
| I had install fc6 on my desktop on a sata hard disk. And then attached this
| hard disk to another machine.
|
| This 80GB hard disk contains dual boot fedora as well as windows.
|
| On my pc it worked fine booted both partitions.
|
| But , as i attached it to another pc Windows Partition  normally boots up 
| , while fedora shows the following error :
|
|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: Attempted to kill init!

What're the difference between your machine and this other machine in terms of 
SATA controller ? To me it looks like, drivers of SATA controller are missing 
from the initrd.

|
| My grub's menu/lst looks like :
|
| title Fedora Core (2.6.18.1)
| root (hd0,6)
| kernel /boot/vmlinuz-2.6.18.1 ro root=LABEL=/ rhgb quiet
| initrd /boot/initrd-2.6.18.1.img
|
| here i changed root=LABEL=/new_label  as possible as i could.

No need to change LABEL. Fedora uses LABEL and Ubuntu uses UUID to generically 
identify disks irrespective of their order in the system.

|
| also i reinstalled grub using grub-install /dev/sda --recheck
|
| I also used the process given on page.
| http://www.linuxquestions.org/questions/showthread.php?t=433048
|
| the good thing is that if i attach this hard disk to my pc again it works
| fine ..
|
|
| any solution to prob...

The solution would be to package all SATA controller drivers in your initrd. 
So that your Fedora installation will boot on all possible configurations. 
Checkout man page of mkinitrd(8).

HTH
Ashish Shukla
- -- 
Ashish Shukla Wah Java !!
आशीष शुक्ल

weblog: http://wahjava.wordpress.com/

  ,= ,-_-. =.  | The  desire  to  be  rewarded  for one's  creativity  does |
 ((_/)o o(\_)) | not  justify depriving  the world  in  general of  all  or |
  `-'(. .)`-'  | part  of that  creativity. |
  \_/  |- Richard M. Stallman   |

We've so many people in India, that we're able to route each network packet
manually.
 - nobotz to wahjava

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (GNU/Linux)

iD8DBQFHAcnbHy+EEHYuXnQRAm07AKC5bEmstdAlKGZCycFzn/TSRqJvLQCgm0J9
X5qA5SDBZNLQrpfTCsbZQnU=
=JTcJ
-END PGP SIGNATURE-

___
ilugd mailinglist -- ilugd@lists.linux-delhi.org
http://frodo.hserus.net/mailman/listinfo/ilugd
Next Event: http://freed.in - September 28-29, 2007
Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi 
http://www.mail-archive.com/ilugd@lists.linux-delhi.org/