LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 08-03-2009, 08:03 PM   #16
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197

Quote:
Originally Posted by betula View Post
What do the block of grub commands look like?
A while back, I installed Mepis 8.0 into sda3 of a system that already had Mepis 7 in sda2.

In the Mepis 8.0 installer I chose to install the MBR, which overwrote the MBR I had installed with Mepis 7, so the copy of grub in sda2/boot/grub still existed but it was no longer in use during boot.

In Mepis 8.0 I opened up /boot/grub/menu.lst in a text editor and saw three choices (two of which were really the same new install of Mepis 8.0 and the other isn't valid, but could be after a kernel update)

Code:
title MEPIS at sda3, newest kernel
root (hd0,2)
kernel /boot/vmlinuz root=/dev/sda3 nomce nosplash vga=788 
initrd /boot/initrd.img
boot

title MEPIS at sda3, previous kernel (if any)
root (hd0,2)
kernel /boot/vmlinuz.old root=/dev/sda3 nomce quiet splash vga=788 
boot

title MEPIS at sda3, kernel 2.6.27-1-mepis64-smp
root (hd0,2)
kernel /boot/vmlinuz-2.6.27-1-mepis64-smp root=/dev/sda3 nomce quiet splash vga=788 
initrd /boot/initrd.img-2.6.27-1-mepis64-smp
boot
Each of those blocks from title to boot describes one boot choice.

I mounted sda2 and then opened /mnt/sda2/boot/grub/menu.lst in another text editor window. It included a similar three choices
Code:
title MEPIS at sda2, newest kernel
root (hd0,1)
kernel /boot/vmlinuz root=/dev/sda2 nomce quiet nosplash
boot

title MEPIS at sda2, previous kernel (if any)
root (hd0,1)
kernel /boot/vmlinuz.old root=/dev/sda2 nomce quiet nosplash
boot

title MEPIS at sda2, kernel 2.6.22-1-mepis64-smp
root (hd0,1)
kernel /boot/vmlinuz-2.6.22-1-mepis64-smp root=/dev/sda2 nomce quiet nosplash vga=791 
boot
I knew I had been using only the first of those three choices, so I copied it (with a slight change of title) into the second choice position in /boot/grub/menu.lst

Now my complete /boot/grub/menu.lst file (which is on sda3 with Mepis 8.0) including that edit and including the beginning and end parts that I didn't change when editing:
Code:
timeout 15
color cyan/blue white/blue
foreground ffffff
background 0639a1

gfxmenu /boot/grub/message

title MEPIS at sda3, newest kernel
root (hd0,2)
kernel /boot/vmlinuz root=/dev/sda3 nomce nosplash vga=788 
initrd /boot/initrd.img
boot

title MEPIS 7 at sda2, newest kernel
root (hd0,1)
kernel /boot/vmlinuz root=/dev/sda2 nomce quiet nosplash
boot

title MEPIS at sda3, previous kernel (if any)
root (hd0,2)
kernel /boot/vmlinuz.old root=/dev/sda3 nomce quiet splash vga=788 
boot

title MEPIS at sda3, kernel 2.6.27-1-mepis64-smp
root (hd0,2)
kernel /boot/vmlinuz-2.6.27-1-mepis64-smp root=/dev/sda3 nomce quiet splash vga=788 
initrd /boot/initrd.img-2.6.27-1-mepis64-smp
boot

title MEPIS at sda2, newest kernel
root (hd0,1)
kernel /boot/vmlinuz root=/dev/sda2 nomce quiet nosplash

title MEMTEST
kernel /boot/memtest86+.bin
If you look at your own /boot/grub/menu.lst file right after it is created by some Linux installer, I think it will be obvious how to adjust all that to your own situation.

I have only a vague idea what the initrd lines mean or what the nomce option on the kernel lines means. The Mepis installer put those things there and I didn't need to understand them at that point. When I copied the one block I needed from the Mepis 7 menu.lst to the new menu.lst, I still didn't need to know what any of that meant. I just needed to know those blocks each started with title and in this limited case each ended with boot.
 
Old 08-04-2009, 04:46 AM   #17
betula
Member
 
Registered: Aug 2008
Posts: 166

Original Poster
Rep: Reputation: 15
Hello,

That is very clear indeed. I'll play with that and see how I get on.

I'm very grateful for your help. Hope all goes well with you and yours.

betula
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Chainload an OS Ashrack Linux - Software 9 01-23-2007 07:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 06:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration