PDA

View Full Version : XP as default boot How?



nebtem
10-22-2005, 02:20 PM
I want to set the grub to XP defalt. I see many topics on the edit to savedefault or 0 or1 or3 but how do I do this? where do I find the Grub program and how do I edit it? Do I use Konsole? Do I use Root Shell?

tdjokic
10-22-2005, 02:44 PM
/boot/grub/menu.lst You can do it in File managaer, Super user mode, with mouse

ckyip
10-22-2005, 02:56 PM
I used wingrub from http://grub4dos.sourceforge.net/ to boot into dvdrom image.

after installed wingrub, select Tools->Install Grub->Boot From BOOT.INI->Install

The PC boot up would be XP boot menu. XP default boot option.
Their will be a line 'The Grub', select it will boot into Grub boot menu. Then boot your knoppix cd/dvd image file.
The configuration is C:\Grub\menu.lst

ckyip
10-22-2005, 03:03 PM
The menu.lst I use included the following line:
title Knoppix 4.0.2 DVD Official Release from ISO (KDE)
kernel (hd0,1)/knx402/linux ramdisk_size=100000 init=/etc/init lang=us nomce quiet noprompt dma myconf=scan
initrd (hd0,1)/knx402/minirt.gz
boot

title Knoppix 4.0.2 DVD Official Release from ISO (Gnome)
kernel (hd0,1)/knx402/linux ramdisk_size=100000 init=/etc/init lang=us nomce quiet noprompt dma desktop=gnome myconf=scan
initrd (hd0,1)/knx402/minirt.gz
boot

title boot back to Windows XP menu
rootnoverify (hd0,1)
chainloader +1
boot

nebtem
10-22-2005, 03:04 PM
/boot/grub/menu.lst You can do it in File managaer, Super user mode, with mouse

File Manager? where is that? How do I start File Manager?

nebtem
10-22-2005, 03:08 PM
The menu.lst I use included the following line:
title Knoppix 4.0.2 DVD Official Release from ISO (KDE)
kernel (hd0,1)/knx402/linux ramdisk_size=100000 init=/etc/init lang=us nomce quiet noprompt dma myconf=scan
initrd (hd0,1)/knx402/minirt.gz
boot

title Knoppix 4.0.2 DVD Official Release from ISO (Gnome)
kernel (hd0,1)/knx402/linux ramdisk_size=100000 init=/etc/init lang=us nomce quiet noprompt dma desktop=gnome myconf=scan
initrd (hd0,1)/knx402/minirt.gz
boot

title boot back to Windows XP menu
rootnoverify (hd0,1)
chainloader +1
boot

Where do you type all this ? I have no idea where this stuff is. Where do I start? What program do I start? Where is the program to edit located?

ckyip
10-22-2005, 03:15 PM
I think he said sudo or su
The root user
I think enter 'sudo vim /boot/grub/menu.lst' in command prompt will be easier.
press i for editing.
Then press 'Esc' key then ':wq' to exit.

ckyip
10-22-2005, 03:18 PM
The menu.lst I use included the following line:
title Knoppix 4.0.2 DVD Official Release from ISO (KDE)
kernel (hd0,1)/knx402/linux ramdisk_size=100000 init=/etc/init lang=us nomce quiet noprompt dma myconf=scan
initrd (hd0,1)/knx402/minirt.gz
boot

title Knoppix 4.0.2 DVD Official Release from ISO (Gnome)
kernel (hd0,1)/knx402/linux ramdisk_size=100000 init=/etc/init lang=us nomce quiet noprompt dma desktop=gnome myconf=scan
initrd (hd0,1)/knx402/minirt.gz
boot

title boot back to Windows XP menu
rootnoverify (hd0,1)
chainloader +1
boot

Where do you type all this ? I have no idea where this stuff is. Where do I start? What program do I start? Where is the program to edit located?

sudo vim /boot/grub/menu.lst

nebtem
10-22-2005, 03:25 PM
The menu.lst I use included the following line:
title Knoppix 4.0.2 DVD Official Release from ISO (KDE)
kernel (hd0,1)/knx402/linux ramdisk_size=100000 init=/etc/init lang=us nomce quiet noprompt dma myconf=scan
initrd (hd0,1)/knx402/minirt.gz
boot

title Knoppix 4.0.2 DVD Official Release from ISO (Gnome)
kernel (hd0,1)/knx402/linux ramdisk_size=100000 init=/etc/init lang=us nomce quiet noprompt dma desktop=gnome myconf=scan
initrd (hd0,1)/knx402/minirt.gz
boot

title boot back to Windows XP menu
rootnoverify (hd0,1)
chainloader +1
boot

Where do you type all this ? I have no idea where this stuff is. Where do I start? What program do I start? Where is the program to edit located?

sudo vim /boot/grub/menu.lst

Were do I enter this sudo vim? I have tried blue fish, terminal root etc nothing works I can not save any changes they system will not let me. [/i]

ckyip
10-22-2005, 03:30 PM
If you in root shell, just enter:
vim /boot/grub/menu.lst
or
nvi /boot/grub/menu.lst

vim or nvi is editor on command prompt

nebtem
10-22-2005, 03:55 PM
If you in root shell, just enter:
vim /boot/grub/menu.lst
or
nvi /boot/grub/menu.lst

vim or nvi is editor on command prompt

I did this and I get nothing. I now know why I use XP. This is very difficult. All I weant to do is to change the default to saved (last system loaded) or the XP as default system Me and my family use XP all the time but I want to try linux and work with it so I only want it to load when directed not as default. There must be a way to do this. I can see what I have to do but I can not get it done
what my system has:

# menu.lst - See: grub(8), info grub, update-grub(8)
# grub-install(8), grub-floppy(8),
# grub-md5-crypt, /usr/share/doc/grub
# and /usr/share/doc/grub-doc/.

## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
default 0

## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout 5


What I want:

# menu.lst - See: grub(8), info grub, update-grub(8)
# grub-install(8), grub-floppy(8),
# grub-md5-crypt, /usr/share/doc/grub
# and /usr/share/doc/grub-doc/.

## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
default saved

## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout 10

But my system will not allow me to save any changes to the file

Markus
10-22-2005, 04:27 PM
Quick way: sudo sed -i '/default\t/s/0/saved/' /boot/grub/menu.lst
Or if you are root (prompt ends with # instead of $): sed -i '/default\t/s/0/saved/' /boot/grub/menu.lst
The above assumes you have a tab after default, but quoting it here removed it.
If still doesn't work, post the output of the following commands:
ls -l /boot/grub/menu.lst
mount
whoami

ckyip
10-22-2005, 04:31 PM
Linux (GNU Linux) is some how different from window XP system.
I guess you want something like window XP control panel.
But linux something like control panel in graphical mode may not include low level setting.
For example the boot loader.
Your have to edit low level setting not in window XP control panel editing way.

I guess you cannot edit the menu.lst because of some reason:
1. file read only permission?
chmod 777 /boot/grub/menu.lst

2. not save your changes after editing because your don't know how to use editor in command prompt?
after editing, to save changes:
press 'Esc', ':wq'

etc...

nebtem
10-22-2005, 05:21 PM
Thanks all. I appreciate your help but I have no idea how to do this. I'll try a few more times then I will have to re install XP if I can not get it to work. I would have liked working with Linux but I guess its not a program for nontech people like myself.