| Software Software installation/configuration/troubleshooting help |

04-20-2006, 11:03 AM
|
|
Newish User
|
|
Join Date: Feb 2005
Location: Essex, UK
Posts: 199
|
|
|
[SOLVED] Adding Slackware to Grub
Hi all
Currently have a Tosh Laptop with Windows XP and Auditor Security Edition installed (Kanotix based), booting off GRUB.
I have just created another partition and installed BackTrack (slackware based) but that wiped GRUB and used LILO, scapping all my other boot options.
Anyway, I have managed to restore GRUB back to the way it was, all I need to do now is add BackTrack to the GRUB menu.lst.
But how? Not sure which options I need to specify with it, like "acpi=off" and other random bits like that...
Thanks
hong
__________________
Toshiba Sat Pro M50 with Windows XP, Auditor Security Edition V10(No IPW) (Kanotix based) and Back|Track (Slackware-based)
|

04-20-2006, 11:24 AM
|
 |
Grail Knight
|
|
Join Date: Jan 2003
Location: Zurich, Switzerland
Posts: 2,658
|
|
|
Basically all you need is to have a correct entry pointing to your slackware kernel. Everything else is optional.
|

04-20-2006, 12:31 PM
|
|
Newish User
|
|
Join Date: Feb 2005
Location: Essex, UK
Posts: 199
|
|
Ok, so the entry for my Auditor install is
Code:
title Auditor Security Edition
root (hd0,4)
kernel /boot/vmlinuz root=/dev/hda5 ro ramdisk_size=100000 lang=us apm=power-off nomce noapm vga=791
initrd /boot/initrd.img
savedefault
boot
Do I just need to change it to:
Code:
title BackTrack
root (hd0,6)
kernel /boot/vmlinuz root=/dev/hda7 ro ramdisk_size=100000 lang=us apm=power-off nomce noapm vga=791
initrd /boot/initrd.img
boot
Would that work?
__________________
Toshiba Sat Pro M50 with Windows XP, Auditor Security Edition V10(No IPW) (Kanotix based) and Back|Track (Slackware-based)
|

04-20-2006, 04:53 PM
|
 |
Grail Knight
|
|
Join Date: Jan 2003
Location: Zurich, Switzerland
Posts: 2,658
|
|
It depends on how your Linux kernel is named, you have to name the entry in your file accordingly.
Gentoo has a good section on Grub configuration. Have especially a look at Code Listing 3 and the sidenotes. Also have a look at your /boot folder, your kernel should have an obvious name that lets you recognize it as the kernel.
|

04-21-2006, 06:23 AM
|
|
Newish User
|
|
Join Date: Feb 2005
Location: Essex, UK
Posts: 199
|
|
|
Tried it, didnt work..
Boots into BackTrack but hangs there, amongst other things I can see it saying its mouted the volume read-only, something about NTFS being dirty and it gets stuck on trying to start syslogd.
I was wondering, when I first installed linux grub automatically picked up windows,.
Is there no way to get it to scan and automagically pick up BackTrack?
__________________
Toshiba Sat Pro M50 with Windows XP, Auditor Security Edition V10(No IPW) (Kanotix based) and Back|Track (Slackware-based)
|

04-21-2006, 08:20 AM
|
 |
moderator
|
|
Join Date: Jun 2004
Location: Newcastle upon Tyne
Posts: 2,606
|
|
Two ways to skin this cat.
(1) Dircet method - Just append the menu.lst of Linux B (Backtrack) to the menu.lst of Linux A (Auditor). Save the file and the both Linux will be bootable in Linux A.
(2) Indirect method - While inside Linux B (Backtrack, accessable by chroot from Linux A), replicate Grub inside its root partition (hd0,6) by command
Code:
grub-install /dev/hda7
Then in menu.lst of Linux A add these lines
Code:
title Backtrack booted indirectly by chainloading
chainloader (hd0,6)+1
Grub counts from 0 so (hd0,6) is hda7 in Linux, unless you use a Sata in which case use sda7 instead of hda7.
|

04-21-2006, 03:46 PM
|
 |
Grail Knight
|
|
Join Date: Jan 2003
Location: Zurich, Switzerland
Posts: 2,658
|
|
The true master has spoken.
|

04-21-2006, 08:38 PM
|
 |
moderator
|
|
Join Date: Jun 2004
Location: Newcastle upon Tyne
Posts: 2,606
|
|
Parcival
You you turned my face red
I am learning from the fourm same as every newbie here.
|

04-22-2006, 04:35 PM
|
|
Newish User
|
|
Join Date: Feb 2005
Location: Essex, UK
Posts: 199
|
|
|
Thanks.
In the end, I ended up with:
title BackTrack
root (hd0,6)
kernel /boot/vmlinuz rw root=/dev/hda7
And thats it, working perfectly.
Thanks!
__________________
Toshiba Sat Pro M50 with Windows XP, Auditor Security Edition V10(No IPW) (Kanotix based) and Back|Track (Slackware-based)
|

04-23-2006, 06:36 AM
|
 |
Grail Knight
|
|
Join Date: Jan 2003
Location: Zurich, Switzerland
Posts: 2,658
|
|
Quote:
|
Originally Posted by saikee
You you turned my face red 
|
I alreadey told you you're too humble.
Quote:
|
Originally Posted by saikee
I am learning from the fourm same as every newbie here.
|
So do I, but I doubt there's anyone in these forums who knows GRUB better than you do.
Solved.
|

04-23-2006, 07:05 AM
|
 |
moderator
|
|
Join Date: Jun 2004
Location: Newcastle upon Tyne
Posts: 2,606
|
|
|
Parcival,
Thanks for the kind word.
We learn a lot from Justlinux because the moderators are active. I for one am always pay attention to what they say.
|
| Thread Tools |
|
|
| Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -4. The time now is 09:20 PM.
|


|