To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here

http://justlinux.com/   Mon, 06-Sep-2010 01:20:22 GMT
         internet.com

Go Back   JustLinux Forums > Community Help: Check the Help Files, then come here to ask! > Software

Software Software installation/configuration/troubleshooting help

Reply
 
Thread Tools Rating: Thread Rating: 3 votes, 5.00 average. Display Modes
  #1  
Old 04-20-2006, 11:03 AM
hongman hongman is offline
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)
Reply With Quote
  #2  
Old 04-20-2006, 11:24 AM
Parcival's Avatar
Parcival Parcival is offline
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.
__________________

"What can be said at all can be said clearly, and what we cannot talk about we must pass over in silence."

Tractatus Logico-Philosophicus by Ludwig Wittgenstein (1889-1951)
Reply With Quote
  #3  
Old 04-20-2006, 12:31 PM
hongman hongman is offline
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)
Reply With Quote
  #4  
Old 04-20-2006, 04:53 PM
Parcival's Avatar
Parcival Parcival is offline
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.
__________________

"What can be said at all can be said clearly, and what we cannot talk about we must pass over in silence."

Tractatus Logico-Philosophicus by Ludwig Wittgenstein (1889-1951)
Reply With Quote
  #5  
Old 04-21-2006, 06:23 AM
hongman hongman is offline
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)
Reply With Quote
  #6  
Old 04-21-2006, 08:20 AM
saikee's Avatar
saikee saikee is offline
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.
__________________
Linux user started Jun 2004 - No. 361921
Using a Linux live CD to clone XP
To install Linux and keep Windows MBR untouched
Adding extra Linux & Doing it in a lazy way
A Grub menu booting 100+ systems & A "Howto" to install and boot 145 systems
Just cloning tips Just booting tips A collection of booting tips

Judge asked Linux "You are being charged murdering Windoze by stabbing its heart with a weapon, what was it?" Replied Linux "A Live CD"
Reply With Quote
  #7  
Old 04-21-2006, 03:46 PM
Parcival's Avatar
Parcival Parcival is offline
Grail Knight
 
Join Date: Jan 2003
Location: Zurich, Switzerland
Posts: 2,658
The true master has spoken.
__________________

"What can be said at all can be said clearly, and what we cannot talk about we must pass over in silence."

Tractatus Logico-Philosophicus by Ludwig Wittgenstein (1889-1951)
Reply With Quote
  #8  
Old 04-21-2006, 08:38 PM
saikee's Avatar
saikee saikee is offline
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.
__________________
Linux user started Jun 2004 - No. 361921
Using a Linux live CD to clone XP
To install Linux and keep Windows MBR untouched
Adding extra Linux & Doing it in a lazy way
A Grub menu booting 100+ systems & A "Howto" to install and boot 145 systems
Just cloning tips Just booting tips A collection of booting tips

Judge asked Linux "You are being charged murdering Windoze by stabbing its heart with a weapon, what was it?" Replied Linux "A Live CD"
Reply With Quote
  #9  
Old 04-22-2006, 04:35 PM
hongman hongman is offline
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)
Reply With Quote
  #10  
Old 04-23-2006, 06:36 AM
Parcival's Avatar
Parcival Parcival is offline
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.
__________________

"What can be said at all can be said clearly, and what we cannot talk about we must pass over in silence."

Tractatus Logico-Philosophicus by Ludwig Wittgenstein (1889-1951)
Reply With Quote
  #11  
Old 04-23-2006, 07:05 AM
saikee's Avatar
saikee saikee is offline
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.
__________________
Linux user started Jun 2004 - No. 361921
Using a Linux live CD to clone XP
To install Linux and keep Windows MBR untouched
Adding extra Linux & Doing it in a lazy way
A Grub menu booting 100+ systems & A "Howto" to install and boot 145 systems
Just cloning tips Just booting tips A collection of booting tips

Judge asked Linux "You are being charged murdering Windoze by stabbing its heart with a weapon, what was it?" Replied Linux "A Live CD"
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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
Forum Jump


All times are GMT -4. The time now is 09:20 PM.

Help File Library
Distribution Specific
Hardware
Installation
Programming
Booting Your OS
More



internet.com
IT
Developer
Internet News
Small Business
Personal Technology

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers
Free Newsletter
Server Daily


More Free Newsletters




internet.commerce
Be a Commerce Partner












Linux is a trademark of Linus Torvalds.

Acceptable Use Policy

Internet.com
The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers

Powered by vBulletin® Version 3.7.5
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.