LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 10-18-2010, 02:43 PM   #1
lefty.crupps
Member
 
Registered: Apr 2005
Location: Minneap USA
Distribution: Debian, Mepis, Sidux
Posts: 470

Rep: Reputation: 32
Question Debian: installed from USB, now Grub has incorrect devices


Created a USB installer of the Debian 5.0.x netinstall disk using UNetBootin on XP.

The Debian 5.0 install went fine, but at bootup Grub failed to find my devices. I had to manually edit the Grub boot line to change the hd1,0 and /dev/sdb1 to hd0,0 and /dev/sda1:

Code:
title           Debian GNU/Linux, kernel 2.6.26-2-amd64
root            (hd0,0)
kernel          /boot/vmlinuz-2.6.26-2-amd64 root=/dev/sda1 ro 
initrd          /boot/initrd.img-2.6.26-2-amd64
After the recent 64bit kernel vulnerability we upgraded the kernel, and this issue happened again, where the hd1,0 and sdb1 are set in the Grub menu.lst file, when they should be hd0,0 and sda1 (as they are above)

What is causing the system to set the devices incorrectly? Where can I change this so that future upgrades etc don't mess up the boot process?
 
Old 10-18-2010, 03:10 PM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
One thing you can do is change the grub menu.lst file to use the UUID or label of the device. See this part way down for use of UUID.
 
Old 01-11-2011, 01:03 PM   #3
lefty.crupps
Member
 
Registered: Apr 2005
Location: Minneap USA
Distribution: Debian, Mepis, Sidux
Posts: 470

Original Poster
Rep: Reputation: 32
> One thing you can do is change the grub menu.lst file to use the UUID

With Grub2 won't this just get overwritten with future updates?
 
Old 01-11-2011, 04:28 PM   #4
j1alu
Member
 
Registered: Apr 2009
Distribution: debian gnu/linux
Posts: 798

Rep: Reputation: Disabled
With grub2 yes, but with Debian5 you have got grub-legacy, not grub2.
(grub2 uses /boot/grub/grub.cfg, btw).

Have a look at /boot/grub/device.map
 
  


Reply

Tags
grub boot wrong devices



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Debian doesn't read USB devices, need troubleshooting ideas....PLEASE?! tmick Debian 8 03-18-2010 01:39 PM
move grub to usb + mount encrypted devices from usb question Lancelot1 Linux - Security 1 02-26-2009 09:51 AM
Installed Debian, with Lilo instead of Grub now I can't load Windoze ocajublinky Linux - Newbie 2 01-19-2009 03:22 PM
Using two identical USB devices on an Embedded ARM running debian JeffLangille83 Debian 6 08-13-2008 05:25 PM
Dual boot Debian Etch and XP with GRUB - Debian installed First - one HDD bence8810 Debian 11 01-07-2007 10:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 02:42 PM.

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