Fedora Linux Support Community & Resources Center
Sections ›› Home | Forums | Guidelines | Forum Help | Fedora FAQ | Fedora News 

Go Back   FedoraForum.org > The Community Lounge > Linux Chat

Linux Chat The place to talk about anything linux-related outside of Fedora

Reply
 
Thread Tools Search this Thread Display Modes
  #106  
Old 2009-11-03, 11:57 AM CST
Dies Offline
Registered User
 
Join Date: Oct 2006
Posts: 3,948
linuxubuntufirefox
Quote:
Originally Posted by Gödel View Post
I notice Dies didn't answer the question (where is the grub2 shell after boot?), the answer is there isn't one, I think he's confused about the new rescue mode, and quite a few things beside.
Yup, probably just a figment of my overactive imagination...
Attached Thumbnails
Screenshot.jpg  
Reply With Quote
  #107  
Old 2009-11-03, 12:52 PM CST
Gödel's Avatar
Gödel Online
Registered User
 
Join Date: Jul 2009
Location: London,England
Posts: 621
linuxfedorafirefox
Hmm, that looks suspiciously like 'qemu --curses'

Back to the more constructive discussion, Grub2 tries its best to make sense of Fedora's default installation with /boot + lvm partitions, but makes a hash of it, I had to manually edit it:

I changed
set root=(VolGroup-lv_root)
to
set root=(hd0,1)

and deleted the (long) search line, and removed '/boot' from the start of the vmlinuz and initrd paths

It even fails to set memtest86+ up correctly, I had to manually do 'set root=(hd0,6)' to point to the /boot partition on sda6.

So, pretty impressed so far
Reply With Quote
  #108  
Old 2009-11-03, 02:21 PM CST
Dies Offline
Registered User
 
Join Date: Oct 2006
Posts: 3,948
linuxubuntufirefox
Quote:
Originally Posted by Gödel View Post
Hmm, that looks suspiciously like 'qemu --curses'
Yeah, I guess that would be easier than just running grub-emu, which by the way I mentioned a few posts ago...

You'll forgive me if I don't take your posts seriously from here on out.
Reply With Quote
  #109  
Old 2009-11-03, 02:52 PM CST
Gödel's Avatar
Gödel Online
Registered User
 
Join Date: Jul 2009
Location: London,England
Posts: 621
linuxfedorafirefox
Oh you mean grub-emu that isn't included in the ubuntu grub packages do you? I assume it's a buggy and not particularly useful app that attempts to replace the truly useful grub legacy shell, which, for example, allows you to reinstall grub with the find and setup commands. Does grub-emu allow you to do anything useful? I doubt it, you'd be better off running the real grub2 shell from within qemu.

Since it's not included in Ubuntu's grub2 packages, it doesn't count, as far as most users experience of grub2 goes, there is no shell after boot.

Grub2 has potential, but it's gonna cause a lot of headaches in its current state.
Reply With Quote
  #110  
Old 2009-11-03, 06:15 PM CST
troyatlarge Offline
Registered User
 
Join Date: Mar 2009
Location: Ely, NV. - 395 miles round trip to Wal-Mart
Posts: 250
linuxfedorafirefox
Hey - a little off topic, but here is the well ordered and well running grub/menu.lst from the Fedora grub for my multi-OS computer. I don't have all OS's loaded yet thanks to not enough hours in the day but its enough to show off the elegance of grub menu as I see it.
Code:
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu

#0
title Fedora (2.6.30.9-90.fc11.i586)
	root (hd0,0)
	kernel /vmlinuz-2.6.30.9-90.fc11.i586 ro root=UUID=d927e842-e0ba-44b9-b2b1-0d1a9f099e1b rhgb quiet
	initrd /initrd-2.6.30.9-90.fc11.i586.img

title Fedora (2.6.29.4-167.fc11.i586)
	root (hd0,0)
	kernel /vmlinuz-2.6.29.4-167.fc11.i586 ro root=UUID=d927e842-e0ba-44b9-b2b1-0d1a9f099e1b rhgb quiet
	initrd /initrd-2.6.29.4-167.fc11.i586.img

#1
title VectorLinux
rootnoverify (hd0,4)
chainloader +1

#2
title Puppy
rootnoverify (hd0,5)
chainloader +1

#3
title PCLinuxOS
rootnoverify (hd0,6)
chainloader +1

#4
title AntiX
rootnoverify (hd0,7)
chainloader +1

#5
title Mandriva
rootnoverify (hd0,8)
chainloader +1

#6
#title Fedora
#set to /boot on sda
How would this same thing be written in the new grub?
__________________
The longer I run a Linux box, the more I like it.

UUID: 44a7c305-7d50-4e78-908b-6a7702cb93f8
Reply With Quote
  #111  
Old 2009-11-03, 06:46 PM CST
Dies Offline
Registered User
 
Join Date: Oct 2006
Posts: 3,948
linuxubuntufirefox
This is how I would translate manually.

Keep in mind that there may be mistakes on my part, or things that need to be tweaked.

Code:
#boot=/dev/sda
set default=0
set timeout=5

# grub2 can display background images but the format is different
# splashimage=(hd0,0)/grub/splash.xpm.gz

see http://grub.gibibit.com/ for details

# hiddenmenu is gone, but you can hide the menu with a small script
# hiddenmenu

see http://grub.enbug.org/Hiddenmenu for details


#0
menuentry "Fedora (2.6.30.9-90.fc11.i586)" {
    insmod ext2
    search -n -s --fs-uuid d927e842-e0ba-44b9-b2b1-0d1a9f099e1b
    linux /vmlinuz-2.6.30.9-90.fc11.i586 ro root=UUID=d927e842-e0ba-44b9-b2b1-0d1a9f099e1b rhgb quiet
    initrd /initrd-2.6.30.9-90.fc11.i586.img
}

menuentry "Fedora (2.6.29.4-167.fc11.i586)" {
    insmod ext2
    search -n -s --fs-uuid d927e842-e0ba-44b9-b2b1-0d1a9f099e1b
    linux /vmlinuz-2.6.29.4-167.fc11.i586 ro root=UUID=d927e842-e0ba-44b9-b2b1-0d1a9f099e1b rhgb quiet
    initrd /initrd-2.6.29.4-167.fc11.i586.img
}

#1
menuentry "VectorLinux" {
    set root=(hd0,5)
    chainloader +1
}

#2
menuentry "Puppy" {
    set root=(hd0,6)
    chainloader +1
}

#3
menuentry "PCLinuxOS" {
    set root=(hd0,7)
    chainloader +1
}

#4
menuentry "AntiX"{
    set root=(hd0,8)
    chainloader +1
}

#5
menuentry "Mandriva" {
    set root=(hd0,9)
    chainloader +1
}

#6
#menuentry "Fedora"
#set to /boot on sda
If you use LVM, not sure searching for uuid, label or anything else will work? you can just use 'set root=something' if it doesn't.

BUT the whole idea behind grub2 is that once it's ready, you won't ever have to type all this out or use a crutch like installing copies of grub everywhere.

btw, heard of VirtualBox?

Last edited by Dies; 2009-11-03 at 06:54 PM CST.
Reply With Quote
  #112  
Old 2009-11-05, 08:20 AM CST
troyatlarge Offline
Registered User
 
Join Date: Mar 2009
Location: Ely, NV. - 395 miles round trip to Wal-Mart
Posts: 250
linuxfirefox
Here I was all excited about running many operating systems just so I could learn grub in actual live practice - lol - but by the time I get to it grub 2 is out!! Go figure!

The looks of the script you gave is not as clean as the old script, but sounds like there are advantages which go over and above that.

I did run across one issue while loading OS's. So systems loaded and had no option about flashing the MBR with the new installed grub, they simply do it - thus instead of booting from the boot partition, it boots up from, say sda7. When that happens I have a need to re-flash the MBR with the grub on the boot partition (the one shown above) - how does one do that? (I still have several distros to load and figure its bound to come up).

Last, I have not heard of a VirtualBox - what exactly is thier advantage?
__________________
The longer I run a Linux box, the more I like it.

UUID: 44a7c305-7d50-4e78-908b-6a7702cb93f8
Reply With Quote
  #113  
Old 2009-11-05, 08:28 PM CST
Dies Offline
Registered User
 
Join Date: Oct 2006
Posts: 3,948
linuxubuntufirefox
Quote:
Originally Posted by troyatlarge View Post
I did run across one issue while loading OS's. So systems loaded and had no option about flashing the MBR with the new installed grub, they simply do it - thus instead of booting from the boot partition, it boots up from, say sda7. When that happens I have a need to re-flash the MBR with the grub on the boot partition (the one shown above) - how does one do that? (I still have several distros to load and figure its bound to come up).
For the old grub see here or here. For grub2, grub-install is all you need.

Quote:
Originally Posted by troyatlarge View Post
Last, I have not heard of a VirtualBox - what exactly is thier advantage?
Not having to deal with any of this stuff, not having to reboot to use a different OS, and depending on the amount of memory you have, being able to run a few different systems at once.
Attached Thumbnails
Screenshot.jpg  
Reply With Quote
  #114  
Old 2009-11-05, 09:24 PM CST
scottro's Avatar
scottro Online
Community Manager -- Banned by popular request.
 
Join Date: Sep 2007
Location: NYC
Posts: 7,577
linuxopera
VirtualBox is a program (that now has repos for Fedora), that enable you to run virtual machines--that is, it creates a virtual environment, more or less, where you can run another O/S, as per Dies' picture.

You should have a decent machine to run it, as of course, it uses resources.
__________________
--
http://home.roadrunner.com/~computertaijutsu

Do NOT PM CM's (or any other forum member) with requests for technical support. Ask your questions on the forum.


"I don't know why there is the constant push to break any semblance of compatibility" --anon
Reply With Quote
  #115  
Old 2009-11-06, 07:57 AM CST
troyatlarge Offline
Registered User
 
Join Date: Mar 2009
Location: Ely, NV. - 395 miles round trip to Wal-Mart
Posts: 250
linuxfirefox
Oh - this is GREAT - I have to try it. I'll finish this set up first - in fact, I was rather hoping to get a script to run, if possible, so that she would fire up to a different OS every time I restarted the computer, sort of like a random selector - you know, just to give the box that nerd sort of feel. All the same,VirtualBox sounds great. In fact, it may have some work application if I can actually do the right stuff with it - which I now will explain.

There are times we get Microsoft boxes so infested with stuff that they will not boot up. It seems the "fast" way is to pull the drive, hook it up externaly to a Microsoft box, and then run Malwarebytes on it (have not been able to run Malwarebytes via TrinityRescueKit or other Linux distros yet). Often, when the system is that bad we end up taking the drive to zero's, reload the OS and toss the data back at it. However, the best way to do that (which I have found thus far) is via Puppy with running in memory and our external backupdrive usb connected. Now, if I had one box wherein I could be running malwarbytes via Windows on the pigbacked hard drive and then transfer via puppy if the drive proved needy of reload, that would save time, for sure - sound like something VirtualBox might be able to do??
__________________
The longer I run a Linux box, the more I like it.

UUID: 44a7c305-7d50-4e78-908b-6a7702cb93f8
Reply With Quote
  #116  
Old 2009-11-06, 08:22 AM CST
troyatlarge Offline
Registered User
 
Join Date: Mar 2009
Location: Ely, NV. - 395 miles round trip to Wal-Mart
Posts: 250
linuxfirefox
So if I understand this correctly, given that I have a /boot sector with grub on it (shown above in its menu.lst form) then, if adding a OS which flashes its own grub to the MBR from sbaX, I can get back the MBR flash from the /boot sector simply by bashing into grub and typing:

setup (hd0)

(my first sector of the harddrive is the /boot partition). That is way cool - these people who figured out grub did a great job for sure!
__________________
The longer I run a Linux box, the more I like it.

UUID: 44a7c305-7d50-4e78-908b-6a7702cb93f8
Reply With Quote
  #117  
Old 2009-11-06, 09:42 AM CST
droidhacker Offline
Registered User
 
Join Date: Oct 2009
Posts: 35
linuxfedorafirefox
Quote:
Originally Posted by Demz View Post
lots of newbs call it 9.1 they even did the same with Ubuntu8.10 - 8.1
Quite honestly, if they're going to write it in the form of a decimal number, as the least significant digit, 9.10 is equal (though of greater accuracy) to 9.1.

Versioning in this manner really shouldn't use numerical punctuation -- something else, i.e. "-" --> 9-10 makes a lot more sense than 9.10, but even that could be viewed as 9-10=-1. How about a ":"? 9:10, BUT....
Since this version number is actually a DATE, how about "/"?

Dern 'buntu freaks...
Reply With Quote
  #118  
Old 2009-11-06, 10:14 AM CST
scottro's Avatar
scottro Online
Community Manager -- Banned by popular request.
 
Join Date: Sep 2007
Location: NYC
Posts: 7,577
linuxopera
@droidhacker, best laugh of the day, so far. Yes, numerically 9.1 *is* equal to 9.10, so.....
__________________
--
http://home.roadrunner.com/~computertaijutsu

Do NOT PM CM's (or any other forum member) with requests for technical support. Ask your questions on the forum.


"I don't know why there is the constant push to break any semblance of compatibility" --anon
Reply With Quote
  #119  
Old 2009-11-06, 12:33 PM CST
Gödel's Avatar
Gödel Online
Registered User
 
Join Date: Jul 2009
Location: London,England
Posts: 621
linuxfedorafirefox
ubuntu 9.09999999.... , or even

Code:
           ∞
Ubuntu 9 + 𝜮 (9×10^-n)
          n=2
Reply With Quote
  #120  
Old 2009-11-08, 07:18 AM CST
troyatlarge Offline
Registered User
 
Join Date: Mar 2009
Location: Ely, NV. - 395 miles round trip to Wal-Mart
Posts: 250
linuxmozilla
Quote:
Originally Posted by Gödel View Post
ubuntu 9.09999999.... , or even

Code:
           ∞
Ubuntu 9 + 𝜮 (9×10^-n)
          n=2
LMAO!! Now that's a good one!
__________________
The longer I run a Linux box, the more I like it.

UUID: 44a7c305-7d50-4e78-908b-6a7702cb93f8
Reply With Quote
Reply

Tags
grub, grub2

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Grub2 duke11235 General Support 8 2009-10-13 07:14 AM CDT
Grub2 and depreciated vga= VernDog General Support 0 2009-09-13 09:11 PM CDT
Grub2 glennzo Software 9 2009-08-19 01:47 PM CDT
Grub2 as default in F12? Demz Fedora Focus 2 2009-06-08 11:12 PM CDT
grub2 problems nacchrist Installation Help 6 2005-05-13 06:43 PM CDT

Automatic Translations (Powered by Powered by Google):
Afrikaans Albanian Arabic Belarusian Bulgarian Catalan Chinese Croatian Czech Danish Dutch English Estonian Filipino Finnish French Galician German Greek Hebrew Hindi Hungarian Icelandic Indonesian Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Taiwanese Thai Turkish Ukrainian Vietnamese Yiddish

All times are GMT -7. The time now is 07:54 AM CST.

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
Hosting provided by ThePlanet



All trademarks, and forum posts in this site are property of their respective owner(s).

FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact | Founding Members
Designed By Ewdison Then | Powered by vBulletin ©2000-2009, Jelsoft Enterprises Ltd.
FedoraForum is Powered by Open Source Projects and Products
Translations made by vB Enterprise Translator