Grub being annoying
hello,
in my file server i have linux installed on a IDE hard drive. I also have about 9 SATA hard drives in raid configs and a single SATA on its own. I have sda->sdk and also hdi. For some reason the IDE hard drive is hdi and not hda, dunno why lol. The issue i have is that grub is installed on sda (the single non-raid hard drive) so sometimes when i try to start the server it decides to try and boot off sda and not hdi. I have put the UUID of the IDE hard drive (OS drive) in the menu.lst and that works, but for some reason after a few days or so i notice the UUID entry missing from the menu.lst. How can i fix this? Its really annoying to have to try and fix grub once its trying to boot from sda (gotta find liveCD etc, very annoying). Thanks |
Can you install another grub on sata hard drive? just a try
|
Cant see how this would keep chaning unless its after a grub update. On my debian box in file:
/etc/default/grub there is: # Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux GRUB_DISABLE_LINUX_UUID=true As you can see I had the exact opposite problem to you, in that I hate the UUID and prefer old fashioned /dev/??? so I took my UUID out and then had to set this to true to make sure GRUB never used UUID again. So check this is still commented out for your purpose. |
Did you install from a live cd ?
|
No i didnt install from a liveCD.
Im running Debian btw lol. I cant install grub to another hard drive. When i do grub, then setup (hd im given hd0 through to hd7) it throws this error: setup (hd1,0) Checking if "/boot/grub/stage1" exists... no Checking if "/grub/stage1" exists... no Error 15: File not found Gives the same error from hd0 to hd7. None of the hd's are the linux IDE hard drive as none of them have more than 1 partition (linux, swap, etc). |
anyone?
|
Clearly you have an unusual setup, else your IDE drive wouldn't show up as hdi instead of hda, and, in fact, in newer distros, even IDEs show up as sdX instead of hdX. So whatever's going on with that is one possibility.
wikapuki made a good suggestion in that the situation shouldn't change unless either you have flaky hardware (eg a drive that isn't always ready at boot time), or the software update is changing the situation and your setup is not what is expected by it. It might help diagnose the situation if you say which version of Debian you're using, and provide some more detailed information about your drives, ie fdisk -l, mount, and so forth. In so far as grub is concerned, where do you think the grub files are? If you can find them, so can grub. Try "find /boot/grub/stage1" and see if different variations on the path help. Hope that gets the ball rolling again. |
fdisk -l
Quote:
Quote:
Quote:
Quote:
Quote:
|
find /boot/grub/stage1 gave me
Quote:
/dev/md0 -> /dev/lvm-md0/Files-Other RAID5 4x1TB /dev/sdb1 | /dev/sdd1 | /dev/sdf1 | /dev/sdc1 mount: /media/raid1 dev/md1 -> /dev/lvm-md1/Files-Movies RAID5 4x1.5TB /dev/sde1 | /dev/sdj1 | /dev/sdk1 | /dev/sdi1 mount: /media/raid2 /dev/md5 -> ext3 (no lvm) RAID0 2x500gb /dev/sdg1 | /dev/sdh1 mount: /media/tmp dev/sda Single Drive mount: /media/hdd1 |
Grub 1. Use Grub 1. Grub 2 was not well thought out. Uninstall your grub, install grub legacy. I take grub 2 off as soon as possible. Its the Vista of bootloaders. Grub 1 is XP. Ask anyone still running Ubuntu 8.
|
Strange that "find" found the file but "setup" said it wasn't there. Or did I misunderstand? If the stage1 isn't on the OS disk, well then, you'd better put it somewhere accessible at boot time, like the OS disk. If I did misunderstand, then you might want to look at the more complicated "install" command, if they still have that for grub2...
|
Just to clarify: when you typed "find /boot/grub/stage1", what did it show? For example on my machine it says "(hd0, 1)" in response to "find /grub/stage1", but "File not found" to "find /boot/grub/stage1". It also makes a difference if I use grub from the command line or if I boot from a rescue/native install disk.
|
Quote:
/boot/grub/stage1 "find /grub/stage1" gives: find: `/grub/stage1': No such file or directory This is from ssh logged in as root |
sigh, just restarted the server and GRUB defaulted back to hda :/
|
hda? not sda or hdi? Was that a typo or is your hardware configuration not the same on every boot up? I noticed you had a /dev/hda5 for swap, but no hda listed by fdisk. And... I'm not sure why "grub> find" didn't give the locations of stage1 and just echoed it back.
Are you using grub2 or grub1? What version of Debian are you on? Heck I'm totally confused at this point as to what's going on. If my machine was behaving in this manner, it'd be time to backup my data and reinstall/update the OS. Sorry. |
All times are GMT -5. The time now is 10:52 PM. |