Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Shuttle SN95G5, SATA and grub
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
fudge
Tux's lil' helper
Tux's lil' helper


Joined: 25 Jul 2002
Posts: 117

PostPosted: Sun Oct 31, 2004 5:13 am    Post subject: Shuttle SN95G5, SATA and grub Reply with quote

Hi All,

I'm having difficulty busting through this part of the installation process, that is, getting grub to work!!!

I have a single SATA 160GB drive which when booting off the amd64 2004.2 live CD becomes /dev/hde (once ide-disk is loaded).

My disk partitioning is as follows (dual boot):
Code:
primary 1      /            20GB
primary 2      swap        2GB
primary 3      WinXP


Note that I do not have /boot as a separate partition!

My /boot/grub/grub.conf is:
Code:
default 0
timeout 30
# splashimage=(hd0,0)/boot/grub/splash.xpm.gz

# For booting GNU/Linux
title  caracal
root (hd0,0)
kernel /vmlinuz root=/dev/sda1

# For booting Windows NT or Windows95
title WinXP
rootnoverify (hd0,2)
makeactive
chainloader  +1


I try run and get:
Code:
# grub-install --root-directory=/boot /dev/hde
Could not find device for /boot/boot: Not found or not a block device.

or
Code:
grub-install --root-directory=/ /dev/hde
Could not find device for //boot: Not found or not a block device.


If I run the grub shell, I can confirm that it sees my hard drive as hd0, but as this is the IDE, not SATA, way of looking at things, how valid is this view? I think my final setup, using libata in SCSI low leverl drivers is that I will have /dev/sda*

I've been a lilo man for many, many years so trying to nut this out is taking far longer than I'd like, Even searching the forums has been a case of trying lots of things but none work.

I'd very much appreciate guidance in the right direction.

Fudge
Back to top
View user's profile Send private message
YD
Guru
Guru


Joined: 30 Oct 2004
Posts: 466
Location: Riga, Latvia

PostPosted: Sun Oct 31, 2004 5:41 am    Post subject: Reply with quote

hd0 = Bios Boot drive.
It doesn't matter where the drive is plugged. I've got /dev/sda & /dev/hda, /dev/sda is hd0, and /dev/hda is hd1.
[edit]
I've got SATA as an IDE drive in BIOS, but I use SCSI drivers in Linux.
Back to top
View user's profile Send private message
fudge
Tux's lil' helper
Tux's lil' helper


Joined: 25 Jul 2002
Posts: 117

PostPosted: Sun Oct 31, 2004 6:00 am    Post subject: Reply with quote

Played some more and managed to get things happening!!!

In my grub.conf, I changed an incorrect line to the following:
Code:
kernel /boot/vmlinuz root=/dev/sda1


grub-install still didn't work for me so I went straight into the grub shell as documented
Code:
grub> root (hd0,0)
grub> setup (hd0)
grub> quit


Rebooted and my two options for booting either into Gentoo or Windows both work. I'm still hankering for an amd64 version of lilo though ;-)

Fudge
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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