LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
LinkBack Search this Thread
Old 04-08-2011, 03:35 PM   #1
SG86-
Member
 
Registered: Mar 2011
Posts: 40

Rep: Reputation: 2
Backtrack and GRUB2 entry? not really newbie?


Hey, thanks for all your help on my recent threads.

My next issue, is Back|Track and triple booting?

I currently have Windows 7 / Linux Mint, booting through GRUB2 / BURG everythings fine. but i want backtrack on my HDD also now.

I previously made the mistake of installing backtrack, using Guided partitioning, which totally messed with my partitions, placed itself before linux mint (being sda5,6) BT being sd7,8. It also installed GRUB-Legacy without me knowing it would. This, along with the moving of my mint partition forced me to remove it, and move sda5,6 left and resize. (sorry if this is explanation is a bit muddled, lol)

Anyway, i went for it again, this time with manual partitioning, and i also noticed the 'Advanced Options' in the backtrack installation, there i could deselect 'Install GRUB'

So, it installed with no errors, and i could boot into my mint distro, from there i ran 'sudo update-burg' (and update-grub if that matters). It picked up backtrack. However, on reboot only 'backtrack (memtest+)' was there.

Is it possible to boot BT from GRUB2? or will i have to 'chainload' from what ive read through googling. I could really do with some help here ive tried a fair few things!

also dont know if this is relevant, but sda7 which BT is apparently installed on, is there.

Code:
/dev/sda1: SEC_TYPE="msdos" LABEL="DellUtility" UUID="07DA-0611" TYPE="vfat" 
/dev/sda2: LABEL="System Reserved" UUID="F26622536622193D" TYPE="ntfs" 
/dev/sda3: UUID="DCB82AEDB82AC63C" TYPE="ntfs" 
/dev/sda5: UUID="59f77426-9c5e-4710-8218-9042a1be47ab" TYPE="ext4" 
/dev/sda6: UUID="33e5d008-58ab-4477-ac42-7041fa85cedf" TYPE="swap" 
/dev/sda7: UUID="90321858-12ee-4ccc-bb64-1bd95c24e9df" TYPE="ext3" 
/dev/sda8: UUID="30dfc611-29bf-4b45-a03d-0ad77f14f6f2" TYPE="swap"
Here is my update-burg result:

Code:
~ $ sudo update-burg
Generating burg.cfg ...
Found linux image: /boot/vmlinuz-2.6.35-22-generic
Found initrd image: /boot/initrd.img-2.6.35-22-generic
Found Windows 7 (loader) on /dev/sda2
Found BackTrack 4 R2 (4 R2) on /dev/sda7
done

Last edited by SG86-; 04-08-2011 at 03:42 PM.
 
Old 04-08-2011, 05:50 PM   #2
yancek
Senior Member
 
Registered: Apr 2008
Distribution: PCLinux, Ubuntu, Slackware
Posts: 4,139

Rep: Reputation: 622Reputation: 622Reputation: 622Reputation: 622Reputation: 622Reputation: 622
Below is an entry I have in Ubuntu grub.cfg for a Linux system on sda7:

Quote:
menuentry "PCLinux (on /dev/sda7)" {
insmod part_msdos
insmod ext3
set root='(hd0,msdos7)'
search --no-floppy --fs-uuid --set 90321858-12ee-4ccc-bb64-1bd95c24e9df
linux /boot/vmlinuz BOOT_IMAGE=linux root=UUID=90321858-12ee-4ccc-bb64-1bd95c24e9df pci=noacpie splash=silent vga=788
initrd (hd0,7)/boot/initrd.img
}
Obviously, the first thing you do is change the menuentry line to Backtrack.
I put the UUID from your post above for your sda7 in the search line after set.
I also put your UUID in the next line so you won't need to change those parts.
What you will need to change are the two bottom lines, the linux and initrd lines. You can get this information by using your other Linux system or a Live CD and mounting sda7 and navigating to the /boot/grub directory and copying it to the grub.cfg.
Do the same with the initrd line.

I don't use Ubuntu Grub2 to boot so I can't guarantee this will work. I installed Ubuntu after the other system and this is the entry for sda7 the update-grub wrote.

Don't really know anything about Burg bootloader. Where do you have it? You said Backtrack has Grub Legacy and Mint has Grub2?

Last edited by yancek; 04-08-2011 at 06:00 PM. Reason: burg??
 
Old 04-09-2011, 02:35 PM   #3
SG86-
Member
 
Registered: Mar 2011
Posts: 40

Original Poster
Rep: Reputation: 2
thanks for the great reply, i will add the edits to the .cfg and see what happens, ill let you know. However, i did add the correct linux and initrd lines before reading your post, and backtrack booted but had kernel errors before anything else.

BURG is just a graphical version of GRUB, its relatively new but basically does the same thing.

Mint installed GRUB2 originally, but i heard that Backtrack installs GRUB-Legacy (which i choose not to do as this mucked up my MBR? first time around), so i think i need to chainload them?

ill try what you suggest and get back to you
 
Old 04-09-2011, 04:18 PM   #4
yancek
Senior Member
 
Registered: Apr 2008
Distribution: PCLinux, Ubuntu, Slackware
Posts: 4,139

Rep: Reputation: 622Reputation: 622Reputation: 622Reputation: 622Reputation: 622Reputation: 622
You can boot Mint from Backtracks Grub legacy, at least you should be able to. I don't have either installed but I do use Grub Legacy on PCLinux to boot Ubuntu 10 on sda5 using the entry below:

Quote:
title Ubuntu-10.10
root (hd0,4)
kernel /boot/grub/core.img
savedefault
boot
You could try that. Remember Grub Legacy counts drives and paritions from zero. You would need to verify that the core.img file is in the /boot/grub directory. If not, copy it from the Mint CD.
 
Old 04-09-2011, 06:45 PM   #5
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
Quote:
Originally Posted by yancek View Post
You can boot Mint from Backtracks Grub legacy, at least you should be able to.
You can boot Mint using legacy?

The reason I ask is I did not think legacy would direct boot a ext 4 file system.

Last edited by Larry Webb; 04-09-2011 at 06:46 PM.
 
Old 04-09-2011, 07:43 PM   #6
yancek
Senior Member
 
Registered: Apr 2008
Distribution: PCLinux, Ubuntu, Slackware
Posts: 4,139

Rep: Reputation: 622Reputation: 622Reputation: 622Reputation: 622Reputation: 622Reputation: 622
Quote:
You can boot Mint using legacy?
The menu entry I posted above for PCLinux Grub Legacy boots Ubuntu-10.10. You'll notice it's not a standard kernel/initrd type entry. Not sure how it works but I got it from this site (Section 5.B) and it works:

http://www.dedoimedo.com/computers/g...mozTocId982259

Quote:
You may be wondering what we did here. The answer is, core.img file is a small kernel image that allows you to boot the right drivers and properly identify and initialize the real kernel. You can think of this file as a sort of a transitional initrd.img.
Quote above is the relevant part from that page.
 
Old 04-09-2011, 11:21 PM   #7
bonixavier
Member
 
Registered: Sep 2010
Distribution: Slackware
Posts: 320

Rep: Reputation: 60
Quote:
Originally Posted by Larry Webb View Post
The reason I ask is I did not think legacy would direct boot a ext 4 file system.
Why the hell do so many people keep bringing this up about Grub or LILO?!? Is that part of the script-mess-fest marketing strategy?
 
Old 04-10-2011, 05:31 AM   #8
SG86-
Member
 
Registered: Mar 2011
Posts: 40

Original Poster
Rep: Reputation: 2
Quote:
Originally Posted by bonixavier View Post
Why the hell do so many people keep bringing this up about Grub or LILO?!? Is that part of the script-mess-fest marketing strategy?
this post can be removed if thats ok, no relevance and i have no idea what the guys trying to say.

I did install backtrack previously, with GRUB and that totally messed my system up, it moved partitions around etc and the Mint entries in the GRUB menu were like this

Backtrack 4
Windows 7 Loader
'Linux Mint
'Linux Mint (Recovery)

note the apostrophes, im wondering if it was just because the UUID has changed or something, but it should have picked up correct information as part of creating the .cfg file ?

going to spend another hour trying things now, but can anybody post a definitive answer (steps) to install backtrack and chainload grubs?

Below is a screenshot from GParted, does everything look in order? almost all partitions have no options available when right clicked, it wouldnt even let me shrink my Mint partition before installing backtrack

http://img703.imageshack.us/i/snapshot3k.png/

Last edited by SG86-; 04-10-2011 at 08:44 AM.
 
Old 04-10-2011, 07:24 AM   #9
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
Quote:
Originally Posted by SG86- View Post
this post can be removed if thats ok, no relevance and i have no idea what the guys trying to say.

I did install backtrack previously, with GRUB and that totally messed my system up, it moved partitions around etc and the Mint entries in the GRUB menu were like this

Backtrack 4
Windows 7 Loader
'Linux Mint
'Linux Mint (Recovery)

note the apostrophes, im wondering if it was just because the UUID has changed or something, but it should have picked up correct information as part of creating the .cfg file ?

going to spend another hour trying things now, but can anybody post a definitive answer (steps) to install backtrack and chainload grubs?

Below is a screenshot from GParted, does everything look in order? almost all partitions have no options available when right clicked, it wouldnt even let me shrink my Mint partition before installing backtrack
I am sorry I missed your question in your op, yes you can use grub2 to boot or chainload all your distros.

Here is a tutorial that I use when working with grub2

Yes if the uuids have changed and or dev has changed you need to change your grub or grub2; which ever you use to boot.

Do not apologize for making a thread, as I will not apologize for asking yancek my question.
When a question is sincere there is no dumb question, and everyone is allowed to express their opinions so that all members can view their ideals.

Last edited by Larry Webb; 04-10-2011 at 07:50 AM.
 
Old 04-10-2011, 08:47 AM   #10
SG86-
Member
 
Registered: Mar 2011
Posts: 40

Original Poster
Rep: Reputation: 2
off topic, but i have no idea what your on about here:

'Do not apologize for making a thread, as I will not apologize for asking yancek my question.
When a question is sincere there is no dumb question, and everyone is allowed to express their opinions so that all members can view their ideals.'

And thanks for the link but its a pretty lengthy document, the reason i am posting here mate is to save me trawling through google results and having to learn tons of stuff i dont need to. I was posting in the hope that someone has done this before, especially with backtrack, i can google :P

ill try the backtrack forums as well

Last edited by SG86-; 04-10-2011 at 08:50 AM.
 
Old 04-10-2011, 09:35 AM   #11
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida
Distribution: slackware64-current, puppy, ubuntu
Posts: 1,299

Rep: Reputation: 180Reputation: 180
If you took the time to scroll down the page in the link that Larry Webb provided, you would find how to insert custom menu entries in grub2. Use Yancek post 2 as a reference for the entries. After creating the entry you will need to run update-grub again.

Last edited by colorpurple21859; 04-10-2011 at 09:43 AM.
 
Old 04-10-2011, 10:00 AM   #12
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida
Distribution: slackware64-current, puppy, ubuntu
Posts: 1,299

Rep: Reputation: 180Reputation: 180
One other thing Grub2 counts partitions and hard drives differently from legacy grub.
With grub2 counting hard drives still start at zero, but partitions start at one.
 
Old 04-10-2011, 10:17 AM   #13
SG86-
Member
 
Registered: Mar 2011
Posts: 40

Original Poster
Rep: Reputation: 2
Quote:
Originally Posted by colorpurple21859 View Post
If you took the time to scroll down the page in the link that Larry Webb provided, you would find how to insert custom menu entries in grub2. Use Yancek post 2 as a reference for the entries. After creating the entry you will need to run update-grub again.
I have edited the grub.cfg quite a few times already, and i have made his changes but the countless tatlling of my machine cant be good for it. The latest error i have is

Code:
Gave up waiting for root device.
  -Boot args (cat /proc/cndline)
      -Check root delay
      -Check root
  -missing modules (cat /proc/modules; ls /dev)

ALERT! /dev/disk/by-uuid(sda7's UUID) does not exist
the above is not complete as i wrote it down.

menuentry that gave above:

Quote:
menuentry "BackTrack (on /dev/sda7)" --class backtrack --class os --group group_/dev/sda7 {
insmod part_msdos
insmod ext3
set root='(hd0,msdos7)'
search --no-floppy --fs-uuid --set 90321858-12ee-4ccc-bb64-1bd95c24e9df
linux /boot/vmlinuz-2.6.35.8 root=UUID=90321858-12ee-4ccc-bb64-1bd95c24e9df pci=noacpie splash=silent vga=788
initrd (hd0,7)/boot/initrd.img-2.6.35.8
}
So 'sudo update-grub' everytime i make a change? how comes this isnt needed when editing the boot list from GRUB?

Can i not just get rid of UUID and do this? i know its probably not correct

Quote:
menuentry "BackTrack (on /dev/sda7)" --class backtrack --class os --group group_/dev/sda7 {
insmod part_msdos
insmod ext3
set root='(hd0,msdos7)'
linux /boot/vmlinuz-2.6.35.8 root='(hd0,msdos7)' pci=noacpie splash=silent vga=788
initrd (hd0,7)/boot/initrd.img-2.6.35.8
}

Last edited by SG86-; 04-10-2011 at 10:19 AM.
 
Old 04-10-2011, 12:36 PM   #14
yancek
Senior Member
 
Registered: Apr 2008
Distribution: PCLinux, Ubuntu, Slackware
Posts: 4,139

Rep: Reputation: 622Reputation: 622Reputation: 622Reputation: 622Reputation: 622Reputation: 622
Is Backtrack on sda7?
Is the UUID you put in your first post valid?
The reason I ask is:
Quote:
ALERT! /dev/disk/by-uuid(sda7's UUID) does not exis
Run the command blkid in a terminal to verify.
 
Old 04-10-2011, 12:48 PM   #15
SG86-
Member
 
Registered: Mar 2011
Posts: 40

Original Poster
Rep: Reputation: 2
Quote:
Originally Posted by yancek View Post
Is Backtrack on sda7?
Is the UUID you put in your first post valid?
The reason I ask is:


Run the command blkid in a terminal to verify.
yes it is, and yes:

Code:
/dev/sda1: SEC_TYPE="msdos" LABEL="DellUtility" UUID="07DA-0611" TYPE="vfat" 
/dev/sda2: LABEL="System Reserved" UUID="F26622536622193D" TYPE="ntfs" 
/dev/sda3: UUID="DCB82AEDB82AC63C" TYPE="ntfs" 
/dev/sda5: UUID="59f77426-9c5e-4710-8218-9042a1be47ab" TYPE="ext4" 
/dev/sda6: UUID="33e5d008-58ab-4477-ac42-7041fa85cedf" TYPE="swap" 
/dev/sda7: UUID="90321858-12ee-4ccc-bb64-1bd95c24e9df" SEC_TYPE="ext2" TYPE="ext3" 
/dev/sda8: UUID="30dfc611-29bf-4b45-a03d-0ad77f14f6f2" TYPE="swap" 
/dev/sdb1: UUID="B067-28E0" TYPE="vfat" 
/dev/sdc1: LABEL="My Book" UUID="3D98-140F" TYPE="vfat"
 
  


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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
BackTrack / Grub2 ISO Boot felix001 Ubuntu 4 02-17-2011 04:53 AM
How to add entry to GRUB2 with 2 hard disks rhklinux Linux - Newbie 3 06-08-2010 06:26 AM
How do I need to format grub entry to boot from grub2 into grub legacy? mitchell7man Linux - Software 6 04-03-2010 03:03 AM
Adding a menu entry to grub2 Jeff91 Linux - General 1 08-28-2009 06:12 PM


All times are GMT -5. The time now is 12:53 PM.

Main Menu
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