Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Laptop has sata cdrom as sdb / hd1 and grub confused[solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
RayDude
Advocate
Advocate


Joined: 29 May 2004
Posts: 2094
Location: San Jose, CA

PostPosted: Fri Aug 28, 2020 5:04 pm    Post subject: Laptop has sata cdrom as sdb / hd1 and grub confused[solved] Reply with quote

I have an old ASUS laptop that has three sata devices. hd0 is my gentoo boot drive. hd1 is the cdrom. hd2 is a windows boot drive.

When I run grub mkconfig it detects windows on /dev/sdb and lists it in grub.cfg as hd1. This of course doesn't work.

Is there a way to make grub a bit smarter or am I going to have to hand edit grub.cfg from now on?

Thanks.

Edit: actually it's worse than this. If I run BIOS setup, save and let grub launch, then I can see all the drives. hd0 (gentoo), hd1 (cdrom), hd2 (windows).

Hand editing the grub.cfg file only works after I save BIOS.

When I reboot from gentoo, only hd0 shows up in grub.

I wonder why.

Update: I'm running the latest BIOS...
_________________
Some day there will only be free software.


Last edited by RayDude on Sun Aug 30, 2020 9:44 pm; edited 1 time in total
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9896
Location: almost Mile High in the USA

PostPosted: Fri Aug 28, 2020 5:43 pm    Post subject: Reply with quote

Normally a device.map file is made in ${BOOT}/grub/device.map but may need to edit it with something like
Code:
(hd2) /dev/sdb

can be used to map, but your bios problem may make this tougher.
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
RayDude
Advocate
Advocate


Joined: 29 May 2004
Posts: 2094
Location: San Jose, CA

PostPosted: Sun Aug 30, 2020 9:44 pm    Post subject: Reply with quote

eccerr0r wrote:
Normally a device.map file is made in ${BOOT}/grub/device.map but may need to edit it with something like
Code:
(hd2) /dev/sdb

can be used to map, but your bios problem may make this tougher.


Thank you. That fixed half the issue.

The other half was fixed by turning off fast boot in the BIOS.
_________________
Some day there will only be free software.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum