Sponsored Content
Top Forums Shell Programming and Scripting shell script to alter grub menu.lst Post 302329441 by TonyFullerMalv on Saturday 27th of June 2009 07:10:42 PM
Old 06-27-2009
This is an example of what you need:
Code:
sudo "sed -e 's/default 3/default 0/' /boot/grub/menu.lst > /tmp/menu.lst.$$ && cp /tmp/menu.lst.$$ /boot/grub/menu.lst"

 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Alter Table Shell Script

I want to add some columns to a existing tables through a shell script. Please help. (2 Replies)
Discussion started by: ankitgupta
2 Replies

2. Shell Programming and Scripting

menu.lst, boot options?

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)
Discussion started by: wrapster
8 Replies

3. SuSE

Need to edit the menu.lst so it can work

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)
Discussion started by: Tenyhwa
0 Replies

4. Solaris

Need to create a menu.lst for Solaris 11 Express, OpenSUSE 11.3 & Windows Vista

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)
Discussion started by: Tenyhwa
2 Replies

5. Shell Programming and Scripting

Help with UUID replacement in fstab and menu.lst

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)
Discussion started by: arunj
6 Replies

6. Emergency UNIX and Linux Support

Grub Doesn't show menu

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)
Discussion started by: majid.merkava
1 Replies

7. Boot Loaders

GRUB not showing a menu

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)
Discussion started by: Nazarbaz
2 Replies

8. Boot Loaders

Help Me edit the menu.lst !

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)
Discussion started by: Tenyhwa
3 Replies

9. UNIX for Dummies Questions & Answers

Missing menu.lst file in Ubuntu

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)
Discussion started by: rupeshkp728
3 Replies

10. UNIX for Beginners Questions & Answers

GRUB 2 Menu

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)
Discussion started by: bodisha
0 Replies
GRUB(8) 								FSF								   GRUB(8)

NAME
grub - the grub shell SYNOPSIS
grub [OPTION]... DESCRIPTION
Enter the GRand Unified Bootloader command shell. --batch turn on batch mode for non-interactive use --boot-drive=DRIVE specify stage2 boot_drive [default=0x0] --config-file=FILE specify stage2 config_file [default=/boot/grub/menu.lst] --device-map=FILE use the device map file FILE --help display this message and exit --hold wait until a debugger will attach --install-partition=PAR specify stage2 install_partition [default=0x20000] --no-config-file do not use the config file --no-curses do not use curses --no-floppy do not probe any floppy drive --no-pager do not use internal pager --preset-menu use the preset menu --probe-second-floppy probe the second floppy drive --read-only do not write anything to devices --verbose print verbose messages --version print version information and exit REPORTING BUGS
Report bugs to <bug-grub@gnu.org>. SEE ALSO
The full documentation for grub is maintained as a Texinfo manual. If the info and grub programs are properly installed at your site, the command info grub should give you access to the complete manual. grub (GNU GRUB 0.97) May 2005 GRUB(8)
All times are GMT -4. The time now is 02:53 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy