Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
grub command line ops
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
gsfgf
Veteran
Veteran


Joined: 08 May 2002
Posts: 1266

PostPosted: Sat Nov 30, 2002 8:19 pm    Post subject: grub command line ops Reply with quote

i'm writing a scripted gentoo isntal, and neet to set up grub

does
Code:

grub --boot-drive=0x0
grub-install /dev/hda

do the same thing as
Code:

grub> root (hd0,0)
grub> setup (hd0)

?
_________________
Aim:gsfgf0
Back to top
View user's profile Send private message
lx
Veteran
Veteran


Joined: 28 May 2002
Posts: 1012
Location: Netherlands

PostPosted: Sun Dec 01, 2002 12:00 am    Post subject: Reply with quote

I don't think that works, but well INAE.

This probably will:
Code:

#!/bin/bash
grub << EOF
root (hd0,0)
setup (hd0)
EOF


Cya lX.
_________________
"Remember there's a big difference between kneeling down and bending over.", Frank Zappa
Back to top
View user's profile Send private message
gsfgf
Veteran
Veteran


Joined: 08 May 2002
Posts: 1266

PostPosted: Sun Dec 01, 2002 12:04 am    Post subject: Reply with quote

i'll try that.
do i need to put quit at the end.
also how would i pass that with the system() functio in C?
_________________
Aim:gsfgf0
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