I want to change my grub menu Ist file to change the boot order and default timeout and kate wont let me save the file how to I get permission to save the file?
Announcement
Collapse
No announcement yet.
want to change menu 1st
Collapse
This topic is closed.
X
X
-
Re: want to change menu 1st
OK the mistake I have made has turned out to be more complex than I thought. I installed XP first no probs. then I put 9.04 on no probs. This hardcore freak I have been dealing with said that *ubuntu was too friendly and that If I wanted to learn anything I should use debian. Ok no probs I put in a final 80 gb partition into my drive and I install debian. My probs now begin, Kubuntu wont reset and locks in the boot when asked to restart, XP and debian are rebooting ok. I tried to alter menu.1st in kubuntu. I figure out how to save the file and it still doesn't change the bootloader. I figure the relevant file is in debian so i look for it there, and it wont let me in and as an O/S is very unfriendly. I like 9.04. SO now I have a 5 second default into debian and windows and ubuntu at the other end. When I boot xp it asks wether i want to use the debian installer or load into windows a now unwanted step. I want to end up with XP first Kubuntu second and Debian third with a 20 second timeout. Also the unwanted step asking about the installer or xp is messy i just want it to clean boot into xp by default so my wife and kids ends up with xp and can use the pute
- Top
- Bottom
Comment
-
Re: want to change menu 1st
When you install more than one OS, and allow them to write their loader to the MBR, the last one wins.
1. Windows only - boots windows.
2. You add Kubuntu - Kubuntu writes GRUB to the MBR and allows you to boot either Kubuntu or Windows.
3. You add Debian or another distro - ask it to write GRUB to the / partition and not the MBR.
However, if Debian has taken over the MBR, there is an easy solution.
Set you bios to boot from optiocal drive, insert Kubuntu live CD or alternate CD, boot from it but choose RESCUE rather than INSTALL. It will ask you for language, keyboard then ask which partition to mount as /. Give it your Kubuntu / partition such as /dev/sda5, then go to a root console in Kubuntu. If your /boot partition is on a separate partition, mount it - as it will only be mounted if it is on your / partition (usual). Then type in a terminal
Code:grub-install [install-device]
Code:sudo nano /boot/grub/menu.lst
save and reboot - then you should have a new boot menu with all of the OS's listed.HP Compaq nc6400, 2Gi, 100Gi, ATI x1300 with 512M
- Top
- Bottom
Comment
-
Re: want to change menu 1st
The menu.lst you must change is the one in /boot/grub/ of the last OS you installed, as you installed XP, then Kubuntu, then Debian, you need to change the menu.lst of the Debian installation in the 80Gb partition you added, not the Kubuntu installation.
You will also need to alter the Kubuntu /etc/fstab to reflect the new partition and its UUID.
Edited to add:
I always was a sloow typist.
- Top
- Bottom
Comment
-
Re: want to change menu 1st
# /etc/fstab: static file system information.
#
# Use 'vol_id --uuid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# / was on /dev/sda5 during installation
UUID=4be56fe3-7cfc-49de-a3ec-7ea949b909a8 / ext3 relatime,errors=remount-ro 0 1
# swap was on /dev/sda6 during installation
UUID=6182436f-0a03-4c02-9171-b45e02da6a64 none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0
- Top
- Bottom
Comment
-
Re: want to change menu 1st
I take it that's your fstab from the Kubuntu installation.
What you need to do is to open a terminal, and type
Code:sudo blkid
Code:sudo mount -a
- Top
- Bottom
Comment
-
Re: want to change menu 1st
thanks for your help aged hippy i have put in the new uuid but its not working is there any format I should be using to enter the UUID, I just wacked in blkid and got
/dev/sda1: UUID="840C78330C7821FA" TYPE="ntfs"
/dev/sda5: UUID="4be56fe3-7cfc-49de-a3ec-7ea949b909a8" TYPE="ext3"
/dev/sda6: TYPE="swap"
/dev/sda7: UUID="e6f55a5d-cc41-4da6-8ac3-c6d5e4d4565a" SEC_TYPE="ext2" TYPE="ext3"
/dev/sda8: TYPE="swap"
oracle1@oracle1-desktop:~$
so I modified fstab from
# /etc/fstab: static file system information.
#
# Use 'vol_id --uuid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# / was on /dev/sda5 during installation
UUID=4be56fe3-7cfc-49de-a3ec-7ea949b909a8 / ext3 relatime,errors=remount-ro 0 1
# swap was on /dev/sda6 during installation
UUID=6182436f-0a03-4c02-9171-b45e02da6a64 none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0
to
# /etc/fstab: static file system information.
#
# Use 'vol_id --uuid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# / was on /dev/sda5 during installation
UUID=4be56fe3-7cfc-49de-a3ec-7ea949b909a8 / ext3 relatime,errors=remount-ro 0 1
# swap was on /dev/sda6 during installation
UUID=6182436f-0a03-4c02-9171-b45e02da6a64 none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0
#debian partition
UUID=e6f55a5d-cc41-4da6-8ac3-c6d5e4d4565aUUID ext3
and I am getting a mount point does not exist error
- Top
- Bottom
Comment
-
Re: want to change menu 1st
Try this.
instaed of:
#debian partition
UUID=e6f55a5d-cc41-4da6-8ac3-c6d5e4d4565aUUID ext3
#debian partition
UUID=e6f55a5d-cc41-4da6-8ac3-c6d5e4d4565a /media/sda8 ext3 relatime,errors=remount-ro 0 1
Now you can do:
Code:sudo mount -a
HP Pavilion dv6 core i7 (Main)
4 GB Ram
Kubuntu 18.10
- Top
- Bottom
Comment
Comment