I have a dual-boot Ubuntu/Windows machine and I wanted to create a script to change the menu.lst file so it will change the default boot partition (this is so I can reload the machine remotely and allow it to boot to the Windows partition).
Today I have to sudo cp a template file I created changing the default boot, but wanted to have something simpler.
Also I wanted to change only the default line of the actual menu.lst instead of relying on a template so if there are any changes to the running menu.lst I do not overwrite them.
Any thoughts?
---------- Post updated at 04:02 PM ---------- Previous update was at 04:00 PM ----------
for simplicity's sake...
I want to look into the menu.lst file for a line containing:
and change it to:
considering that menu.lst is a protected file and you need root to change it...
The quick & dirty question I have is... What app/script actually loads the Grub 2 menu system? And where is it located?
The longer question is I understand the core.img is loaded onto the first 63 sectors (stage 1.5) and after it loads I starts the stage 2 Grub bootloader which loads the Menu... (0 Replies)
I am not able to find menu.lst in /boot.
During the Linux Kernel Compilation I installed the kernel using make install.
Next I created an initrd image.
I had to modify the Grub configuration file - /boot/grub/menu.lst which I am not able to find.
Any resolution for the issue? (3 Replies)
I am trying to install three OS (Windows VISTA, OpenSUSE 11.3 & Solaris 11 Express) on a single drive of a laptop. However when I go to edit the /rpool/boot/grub/menu.lst to put the entry so it can boot the OpenSUSE 11.3 I get errors some of which result into starting all over again. I have also... (3 Replies)
Hi there,
I had a double boot of Windows 7 and Ubuntu 10.04. After messing up with UBUNTU I reinstalled it. But then Grub did not noticed the existence of my windows and it just boot into linux. I booted with windows 7 installation CD which noticed a problem with my booting and suggest to repair... (2 Replies)
Hi guys.
I have installed Acronis disk director in windows XP and allocate some free space to install Debian beside fedora.
after completion i rebooted and now grub is in command line mode and does not show the menu list.
(I didn't remove the fedora partition. I just allocate some space from... (1 Reply)
I am trying to write a small backup application for Linux systems file by file if partitions are created by the user using fdisk. I am facing a problem when I am done with restoring the files. The problem is with UUID mismatch in restored fstab and menu.lst.
Using C I could create a partlist.txt... (6 Replies)
I have partitioned and installed Windows Vista, OpenSUSE and Solaris 11 Express on a LapTop hardDrive. However I am not able to boot OpenSUSE 11.3 although I have it in menu.lst which I put in a Solaris partition directory /rpool/boot/grub. Could someone tell me how to go about it. See what I did... (2 Replies)
I am trying to install three OS (Windows VISTA, OpenSUSE 11.3 & Solaris 11 Express) on a single drive of a laptop. However when I go to edit the /rpool/boot/grub/menu.lst to put the entry so it can boot the OpenSUSE 11.3 I get errors some of which result into starting all over again. I have also... (0 Replies)
Hi all,
I would like to have some details on menu.lst!!
the reason is ,if i am trying to add my own boot option where do i need to add it?
is it in menu.lst only or elsewere(am referring to unix os)
because i tried adding a unique boot option and it was not reflected when the system booted?... (8 Replies)