View previous topic :: View next topic |
Author |
Message |
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54300 Location: 56N 3W
|
Posted: Sat Oct 10, 2009 5:06 pm Post subject: |
|
|
DONAHUE,
Do you use the UUID in grub.conf too ? _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Sat Oct 10, 2009 5:13 pm Post subject: |
|
|
Neddy:
to duplicate yes
if grub uses root=/dev/sda2 it will run until / is mounted rw and then crash with the ctrl-d message.
experimental cases:
grub fstab result
dev dev boots
uuid dev boots
uuid uuid kernel panic
dev uuid crash while loading system files
BTW i gave him a drive controller config based on your guide earlier in the thread; what did I miss? |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54300 Location: 56N 3W
|
Posted: Sat Oct 10, 2009 6:55 pm Post subject: |
|
|
DONAHUE,
Both grub and mount need patches for UUID to work, which is a shame as UUIDs are good for universal USB sticks
I don't think you missed anything. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
ericv373 n00b
Joined: 06 Oct 2009 Posts: 19
|
Posted: Sat Oct 10, 2009 8:01 pm Post subject: |
|
|
DONAHUE,
UUID=005ab0ca-f1f8-445c-bced-6a3f3717ebf3 was /dev/sda17 when I started this post. If you recall, I started over from scratch. That meant deleting the partition and creating a new one. A new partition is given a new UUID. That is why they didn't match. The UUID changed. I updated grub and fstab with the new UUID before posting that the results were the same. Sorry for the confusion.
Eric |
|
Back to top |
|
|
ericv373 n00b
Joined: 06 Oct 2009 Posts: 19
|
Posted: Sat Oct 10, 2009 9:03 pm Post subject: |
|
|
Question related to grub. I am setting grub to point to a config file (grub.conf on /dev/sda16). Should it look like this?
Code: |
title Gentoo 10.0, kernel 2.6.30.r6
configfile (hd0,15)/grub/grub.conf
|
When the partitions start getting into the double-digits, I'm not sure if (hd0,#) works correctly. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54300 Location: 56N 3W
|
Posted: Sat Oct 10, 2009 10:51 pm Post subject: |
|
|
ericv373
/dev/sda17 is a very trendy partition.
The kernel can only addess as far as sda15. See /usr/src/linux/Documentation/devices.txt _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
ericv373 n00b
Joined: 06 Oct 2009 Posts: 19
|
Posted: Sat Oct 10, 2009 11:16 pm Post subject: |
|
|
Oh wow! It's working! I'm not sure exactly what fixed it, but I think it was changing to configfile. (hd0,15) worked. Thanks to everyone! You are awesome! |
|
Back to top |
|
|
ericv373 n00b
Joined: 06 Oct 2009 Posts: 19
|
Posted: Sat Oct 10, 2009 11:39 pm Post subject: |
|
|
I guess I should explain what I did. My default boot partition is /dev/sda3. This is where the default menu list is. When installing new distros, I've had a lot of trouble with setup overriding my menu list. So what I started doing was running setup to use a new boot partition. In this case, /dev/sda16. After installation completes, I would copy the necessary files over to /dev/sda3 and everything was working beautifully until Gentoo.
I've run into problems before when installing Fedora, and I remembered how someone suggested to let Fedora use its own menu.lst and to tell the default menu list to point to Fedora's menu list by using the configfile command. I figured this would be a good idea for Gentoo as well. Given that Gentoo was setup to believe that /dev/sda16 was the boot menu, there must have been something in the kernel that needed to use /dev/sda16 and not /dev/sda3.
For the most part Jaglover was right. It was just a little more complicated than making sure root=/dev/sda17. Thank you for pointing it out.
I also want to personally thank Neddy and DONAHUE for giving me advice on how to configure my kernel correctly. It was my first time, and I was definitely lost. Thanks a million. |
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Sun Oct 11, 2009 2:07 am Post subject: |
|
|
Pictures of crash and panic from using UUID in /etc/fstab:
Case 1:
grub.conf: Quote: | title Gentoo
root (hd0,1)
kernel /boot/bzImage.old root=/dev/sda2 | fstab: Quote: | UUID=558a9dff-27c5-4946-be86-47a2b3e59af5 / reiserfs noatime,notail 0 1 | Result:
http://i36.tinypic.com/23r0gab.jpg
Case 2:
grub.conf: Quote: | title Gentoo.UUID
root (hd0,1)
kernel /boot/bzImage.old root=UUID=558a9dff-27c5-4946-be86-47a2b3e59af5 |
fstab: Quote: | UUID=558a9dff-27c5-4946-be86-47a2b3e59af5 / reiserfs noatime,notail 0 1 | Result:
http://i34.tinypic.com/e84nq1.jpg
Result after enter in response to previous result:
http://i36.tinypic.com/21mupls.jpg
eric-- what was/is the root= in the configfile kernel line
/dev/sda16 is still greater than /dev/sda15 (Amazing find Neddy)
I'm fighting the urge t0 build 17 partitions. |
|
Back to top |
|
|
ericv373 n00b
Joined: 06 Oct 2009 Posts: 19
|
Posted: Sun Oct 11, 2009 2:52 am Post subject: |
|
|
This is the Gentoo entry from menu.lst on /dev/sda3
Code: |
title Gentoo 10.0, kernel 2.6.30.r6
configfile (hd0,15)/grub/menu.lst
|
This is /grub/menu.lst on /dev/sda16, which specifies root=/dev/sda17.
Code: |
# This is a sample grub.conf for use with Genkernel, per the Gentoo handbook
# http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=10#doc_chap2
# If you are not using Genkernel and you need help creating this file, you
# should consult the handbook. Alternatively, consult the grub.conf.sample that
# is included with the Grub documentation.
default 0
timeout 0
#splashimage=(hd0,0)/boot/grub/splash.xpm.gz
title Gentoo Linux 2.6.30-r6
root (hd0,15)
kernel /boot/kernel-2.6.30.r6-101009 root=/dev/sda17
# vim:ft=conf:
|
|
|
Back to top |
|
|
|