 |
 |
 |
 |
| Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum. |

9th June 2005, 06:31 AM
|
|
Registered User
|
|
Join Date: Jun 2005
Location: Ventura, California
Posts: 34

|
|
|
editing the /boot/grub/grub.conf file
I recently updated the kernel to my FC3 OS and now it defaults to the new kernel. I would prefer the grub loader to default back to Windows XP. Before I edit this file I have read in the book that the line:
boot = /dev/hda
default = 0
The default = 0 indicates that first linux partition is booted by default. Do I delete that line and move it to were the Windows partition line is? How do I correctly edit this file so my system defaults to Windows?
|

9th June 2005, 08:59 AM
|
 |
Registered User
|
|
Join Date: Jun 2005
Location: belgium brussels
Posts: 27

|
|
nope the default indicates the boot option line
with default on 1 it takes the 2e title and default is put to windooz
(hd0,0) =partition1
(hd0,1)= partition2
...
default=0 =title1
default=1 = titl"2
...
Code:
default=1
title Fedora Core (2.6.11-1.27_FC3)
root (hd0,1)
kernel /boot/vmlinuz-2.6.11-1.27_FC3 ro root=/dev/hda2
initrd /boot/initrd-2.6.11-1.27_FC3.img
title windooz
rootnoverify (hd0,0)
chainloader +1
title Fedora Core (2.6.11-1.14_FC3)
root (hd0,1)
kernel /boot/vmlinuz-2.6.11-1.14_FC3 ro root=/dev/hda2
initrd /boot/initrd-2.6.11-1.14_FC3.img
|

10th June 2005, 12:41 AM
|
|
Registered User
|
|
Join Date: Jun 2005
Location: Ventura, California
Posts: 34

|
|
|
I tried editing the grub.conf file and grub still boots to FC3. Here's what my grub.conf file looks like. Can somebody tell how to edit this file correctly so grub can default to Windows?
#boot=/dev/hda
default=0 = Windows XP Pro
default=1 = Fedora Core (2.6.11-1.27_FC3)s
timeout=10
splashimage=(hd0,1)/grub/splash.xpm.gz
hiddenmenu
title Fedora Core (2.6.11-1.27_FC3)
root (hd0,1)
kernel /vmlinuz-2.6.11-1.27_FC3 ro root=LABEL=/ rhgb quiet
initrd /initrd-2.6.11-1.27_FC3.img
title Fedora Core (2.6.9-1.667)
root (hd0,1)
kernel /vmlinuz-2.6.9-1.667 ro root=LABEL=/ rhgb quiet
initrd /initrd-2.6.9-1.667.img
title Windows XP Pro
rootnoverify (hd0,0)
chainloader +1
|

10th June 2005, 12:48 AM
|
|
Retired Community Manager
|
|
Join Date: May 2004
Posts: 1,149

|
|
Try only 1 default line, like this: 0= the first entry, Fedora Core (2.6.11-1.27_FC3)
1= the second entry, Fedora Core (2.6.9-1.667)
2= the third entry, Windows XP Pro
Code:
#boot=/dev/hda
default=2
timeout=10
splashimage=(hd0,1)/grub/splash.xpm.gz
hiddenmenu
title Fedora Core (2.6.11-1.27_FC3)
root (hd0,1)
kernel /vmlinuz-2.6.11-1.27_FC3 ro root=LABEL=/ rhgb quiet
initrd /initrd-2.6.11-1.27_FC3.img
title Fedora Core (2.6.9-1.667)
root (hd0,1)
kernel /vmlinuz-2.6.9-1.667 ro root=LABEL=/ rhgb quiet
initrd /initrd-2.6.9-1.667.img
title Windows XP Pro
rootnoverify (hd0,0)
chainloader +1
Tashiro
Last edited by Tashiro; 10th June 2005 at 12:53 AM.
|

10th June 2005, 01:20 AM
|
|
Registered User
|
|
Join Date: Jun 2005
Location: Ventura, California
Posts: 34

|
|
|
Thanks Tashiro, it worked. Having re-edited the grub.conf file now I understand mverbele's reply. Now all I need to figure out is how to get my /media/cdrecorder to recognize a disk, and I'll be one happy FC3 user!!!
|

10th June 2005, 01:37 AM
|
 |
Administrator
|
|
Join Date: Dec 2004
Location: Canada
Age: 22
Posts: 9,224

|
|
|
You have to put an entry in /etc/fstab... Here's mine for an example:
/dev/drive /media/cdrecorder auto pamconsole,exec,noauto,managed 0 0
the /dev/drive is the correct drive device corresponding to the cdrecorder. For me, it's /dev/hdc, but for you it might be different...
A nice way to fond out is to type this in a prompt:
nautilus /dev --no-desktop &
A nautilus window should pop up in the /dev/ directory. Look for a file called cdrecorder and right-click > Properties
It should show something like the photo I attached... Under the Link target section, whatever drive it lists is the correct one that you can replace with /dev/drive.
Firewing1
|

10th June 2005, 05:34 AM
|
|
Registered User
|
|
Join Date: Feb 2005
Age: 34
Posts: 1,281

|
|
|
for future, when you install a kernel from say up2date, or yum it defaults the top of your grub.conf, to make the windows the top option in grub, and boot to it if you don't make a choice (after the time out) then move the windows info to the top, that is what I do with my laptop so that my lady can use it:
default=0
timeout=20
splashimage=(hd0,1)/grub/splash.xpm.gz
hiddenmenu
title Windows (<------- Llike this)
rootnoverify (hd0,0)
chainloader +1
title Fedora Core (2.6.11-1.27_FC3)
root (hd0,1)
kernel /vmlinuz-2.6.11-1.27_FC3 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.11-1.27_FC3.img
|

10th June 2005, 06:23 AM
|
|
Registered User
|
|
Join Date: Jun 2005
Location: Ventura, California
Posts: 34

|
|
|
Thanks for the info. This is definately good to know for the future. It's funny you mention your lady. That's exactly why I have to have my machine default to Windows.
Thanks again!!!
|

10th June 2005, 07:02 AM
|
|
Registered User
|
|
Join Date: Jun 2005
Location: Ventura, California
Posts: 34

|
|
|
I followed your steps and I did get the same cdrom properties box. Here's what my fstab file looks like.
# This file is edited by fstab-sync - see 'man fstab-sync' for details
LABEL=/ / ext3 defaults 1 1
LABEL=/boot1 /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /dev/shm tmpfs defaults 0 0
none /proc proc defaults 0 0
none /sys sysfs defaults 0 0
LABEL=SWAP-hda3 swap swap defaults 0 0
/dev/hdc /media/cdrecorder auto pamconsole,fscontext=system_u:object_r:removable_t ,ro,exec,noauto,managed 0 0
/dev/fd0 /media/floppy auto pamconsole,fscontext=system_u:object_r:removable_t ,exec,noauto,managed 0 0
Do I need to add /dev/drive before the /media cdrecorder to get my DVDburner to recognize when a disk is loaded?
|

10th June 2005, 05:00 PM
|
 |
Administrator
|
|
Join Date: Dec 2004
Location: Canada
Age: 22
Posts: 9,224

|
|
Quote:
|
Originally Posted by Debaser13
Do I need to add /dev/drive before the /media cdrecorder to get my DVDburner to recognize when a disk is loaded?
|
Don't know what you mean there... As for your fstab, is it OK if you attach it to a post so I can edit it for you? (To attach click "Go Advanced" when writing a post, and then scroll down the page. Click on "Manage atachments". Select /etc/fstab to upload, and then I'll post you back what I think is the correct version. Worst comes to worst, you can always restore it because your original /etc/fstab will be saved in this thread...
Thanks!
Firewing1
|

10th June 2005, 05:40 PM
|
|
Registered User
|
|
Join Date: Jun 2005
Location: Ventura, California
Posts: 34

|
|
|
Thanks for responding.
I just noticed that the attachment came back with a response invalid file type when I tried to upload fstab. I have to try this later.
Last edited by Debaser13; 10th June 2005 at 05:45 PM.
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Current GMT-time: 08:14 (Sunday, 19-05-2013)
|
|
 |
 |
 |
 |
|
|