View previous topic :: View next topic |
Author |
Message |
certem Tux's lil' helper
Joined: 14 Feb 2013 Posts: 145
|
Posted: Thu Oct 10, 2013 1:22 pm Post subject: Editing grub 2 |
|
|
I have 2 hdd's in my box one of them is removable. Gentoo is installed on 2nd hdd (/sdb) so the removable is /sda.
When I removed the removable hdd and tried to boot from 2nd hdd (which gentoo is installed on) I got a kernel panic which had a line something like Quote: | can not mount root to hdd(0 0) |
So I can boot when the removable is placed but can't when it's out. I don't need and don't want anything mounted to the removable hdd when I boot from 2nd hdd (I have gentoo in 2nd hdd) |
|
Back to top |
|
|
nemectic Apprentice
Joined: 20 Aug 2004 Posts: 182
|
Posted: Thu Oct 10, 2013 1:36 pm Post subject: |
|
|
If you're talking about a desktop, wouldn't it be easiest just to rewire the SATA cables so the permanent disk is the first primary drive, meaning it would be /dev/sda ?? Then you'll just need to make a new grub.cfg so it knows where it is, and removing the second drive will have no effect. If you use the second drive to boot windows, you can still select to boot from that in BIOS with no impact. |
|
Back to top |
|
|
mrbassie l33t
Joined: 31 May 2013 Posts: 771 Location: over here
|
Posted: Thu Oct 10, 2013 1:47 pm Post subject: |
|
|
shoulodn't it be hd1,0 if it's /dev/sdb? |
|
Back to top |
|
|
certem Tux's lil' helper
Joined: 14 Feb 2013 Posts: 145
|
Posted: Thu Oct 10, 2013 2:21 pm Post subject: |
|
|
Thank you for the reply.
It's a desktop. When I was installing gentoo I had these 2 hdds and a usb flash drive were attached to the box. I booted from systemrescuecd on the flash drive. It named the removable hdd as sda, the one that's gentoo is installed as sdb and it's ownself as sdc. I suggest even if I rewire grub2 will seek somethimg to mount to.
You're right the error should be somethig other than (0 0) but it is (0 0)
I think the problem is because grub2 is unnecesarrily automated. If I can't edit grub2 I will try grub. |
|
Back to top |
|
|
frostschutz Advocate
Joined: 22 Feb 2005 Posts: 2977 Location: Germany
|
Posted: Thu Oct 10, 2013 2:31 pm Post subject: |
|
|
grub2 starts counting partitions from 1, so there never should be a (hd0,0)
My grub2 config looks like this: http://bpaste.net/show/139330/
I write it manually, same way I did for Grub 1. The generated ones just don't appeal for me. |
|
Back to top |
|
|
certem Tux's lil' helper
Joined: 14 Feb 2013 Posts: 145
|
Posted: Thu Oct 10, 2013 9:03 pm Post subject: |
|
|
This is the /boot/grub/grub.cfg file:
http://bpaste.net/show/139447/
I guess I wont be able to solve my problem by editing or manually writing the file because I think each time I remove or insert the other hdd my gentoo hdd's # will change. |
|
Back to top |
|
|
|