LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 11-19-2012, 09:37 AM   #1
rng
Member
 
Registered: Aug 2011
Posts: 747

Rep: Reputation: 23
grub2 to grub-legacy code


I am trying to convert following grub.cfg menuentry for linux mint to grub-legacy code:

Quote:
menuentry 'Linux Mint 13 Cinnamon 32-bit, 3.2.0-33-generic (/dev/sda6)' --class linuxmint --class gnu-linux --class gnu --class os {
recordfail
gfxmode $linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set=root ad...................12
linux /boot/vmlinuz-3.2.0-33-generic root=UUID=ad...................12 ro quiet splash $vt_handoff
initrd /boot/initrd.img-3.2.0-33-generic
}
Will following simple code work?
Quote:
title linux mint
root (hd0,5)
kernel /boot/vmlinuz-3.2.0-33-generic root=UUID=ad..............12 ro quiet splash
initrd /boot/initrd.img-3.2.0-33-generic
 
Old 11-19-2012, 09:51 AM   #2
malekmustaq
Senior Member
 
Registered: Dec 2008
Location: /root
Distribution: Slackware & BSD
Posts: 1,223

Rep: Reputation: 231Reputation: 231Reputation: 231
Did it boot?

So long as Legacy Grub is properly installed I think your entry is valid: although I don't like UUID (a silly in-human text). I think it is better to speak to Legacy Grub in its usual human-read language at the kernel line:

Quote:
root (hd0,5)
kernel /boot/vimlinuz root=/dev/sda6 quiet splash
boot
Just the same, legacy understands that (unless maybe if you are using GPT, not MBR.

Hope that helps.

Goodluck.
 
Old 11-20-2012, 10:57 AM   #3
rng
Member
 
Registered: Aug 2011
Posts: 747

Original Poster
Rep: Reputation: 23
Thanks for your comments.

What does $vt_handoff stand for in linux line of grub.cfg file? Could we add that to the kernel line of menu.lst?

Last edited by rng; 11-20-2012 at 10:58 AM.
 
Old 11-20-2012, 12:48 PM   #4
malekmustaq
Senior Member
 
Registered: Dec 2008
Location: /root
Distribution: Slackware & BSD
Posts: 1,223

Rep: Reputation: 231Reputation: 231Reputation: 231
Quote:
What does $vt_handoff stand for in linux line of grub.cfg file? Could we add that to the kernel line of menu.lst?
Sorry for delay I was out for a while.

No, you don't need to add it under Legacy Grub for it to run; I mean, at least in my case I never did add anything like that in the kernel line when I was using the legacy.

Hope that helps and good luck.
 
Old 11-22-2012, 11:59 AM   #5
rng
Member
 
Registered: Aug 2011
Posts: 747

Original Poster
Rep: Reputation: 23
Above code did not work but following worked:
Quote:
title linux mint
root (hd0,5)
kernel /boot/vmlinuz-3.2.0-33-generic root=LABEL=mint ro nosplash
initrd /boot/initrd.img-3.2.0-33-generic
 
Old 11-22-2012, 01:32 PM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,497

Rep: Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077
The "root=[UUID,LABEL]..." support was usually in the initrd in a legacy grub environment. Ubuntu-type systems supported UUID, Fedora-type systems supported LABEL. Others supported both, still other neither.
Paid to know in advance, or unwind the initrd.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to load grub2 from grub legacy or grub4dos miros84 Linux - Software 6 01-26-2011 11:51 AM
How do I need to format grub entry to boot from grub2 into grub legacy? mitchell7man Linux - Software 6 04-03-2010 04:03 AM
[SOLVED] How do I boot up In Grub2 If It is using grub legacy now ? obnascar Linux - Software 2 10-22-2009 01:08 PM
Help converting grub-legacy to grub2 ssenuta Linux - General 4 08-29-2009 11:04 AM
Grub Legacy or Grub2? RAVC Linux - Software 2 01-21-2006 10:43 AM


All times are GMT -5. The time now is 11:46 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration