LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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
  Search this Thread
Old 10-09-2006, 08:27 PM   #16
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 1,964

Rep: Reputation: 340Reputation: 340Reputation: 340Reputation: 340

Quote:
Originally Posted by The Chain
and it booted but into command line mode again. What do I need to add to load KDE?
Dude, Slackware always boots to the CLI by default.

If you want to boot straight into X, you need to edit /etc/inittab and change the default runlevel from 3 to 4.
 
Old 10-10-2006, 04:51 AM   #17
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
Look, you can have as many distros in the PC and can elect any of them to control the MBR. You do this by restoring its boot loader in the MBR.

Take a look at the Task B3, B4 and B5 of the last link of my signature. You will find a lot of answers to your booting questions there.
 
Old 10-10-2006, 08:07 AM   #18
shane2peru
Member
 
Registered: Aug 2006
Posts: 33

Rep: Reputation: 15
Ok, we are done! I got Slackware installed. I didn't let it install Lilo. I then backed up my Mepis installation Thanks to Linux System Rescue CD. I re-installed Mepis (that was the only way I knew to put Mepis back in charge of the MBR), then I restored my Mepis partition. NOW I AM TRIPLE BOOTING. Thanks for the help! The Slackware boot command as I have it is:
Code:
title Slackware
root (hd0,3)
kernel /boot/vmlinuz root=/dev/hda4 ro splash=silent quiet
boot
This may be perfect, but it seems to work for me. Thanks again for the help!

Shane
 
Old 10-10-2006, 08:49 AM   #19
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
But if you have let Slackware to install its boot loader Lilo inside the root partition which is (hd0,3) then it would have been bootable by
Code:
title my Slackware in hda4
root (hd0,3)
chainloader +1
You still haven't learnt about the booting yet.

The whole idea of my previous posts is not to bother with the kernel name and initrd names (the latter isn't used by Slackware).

Wake up now. A Linux can be booted just like a MS Windows so why not go the easy way?

Learn how to get inside an unbootable Linux using a Live CD (Post #17). It is a lot easier than re-installing the distro.

Also inside every partition there is a boot sector for housing the boot loader. It is available for use.

Last edited by saikee; 10-10-2006 at 08:52 AM.
 
Old 10-11-2006, 10:57 AM   #20
shane2peru
Member
 
Registered: Aug 2006
Posts: 33

Rep: Reputation: 15
Post

saikee,

I do know how to log in on a Live CD, and correct stuff, but that is a lot of wear and tear on my laptop cd rom. I have learned alot about grub, and how to edit the file, and even how to edit the commands when only in grub. What I haven't learned, is how to replace grub in the MBR without re-installing. I don't think that is possible. The reason I re-installed is because I wanted Mepis to be in control of the MBR. If there is a way to make them in charge of the MBR without re-installing the MBR, I'm all ears.

Slackware 11 didn't give me the option of installing lilo in its own partition, if it did, I missed it. I'm perfectly contented that it didn't install a bootloader at all, and I could still boot into it. That is sufficient for me. I edited the grub, and added the line from scratch.

I understand the chainloader+1 command that is the same way that windows does it, it's boot info is in its root directory. I would use that if the bootloader (lilo or grub) was installed to its own root partition. Which in theory would be the way to install an OS on an external hard drive, and then boot that external drive via grub. I may have to try that next time I have spare time. Thanks for the help, I do appreciate it.

Shane
 
Old 10-11-2006, 01:30 PM   #21
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
Think you may miss out something as using a CD to install a distro must be a lot longer than to use it to rescue a Linux.

You can use Mepis as the Live CD. Boot it up, type "su" to get root privileage, create a temporary subdirectory in /mnt, mount whatever Linux root parttion on it, change root into it and you will be inside that Linux.

Full commands are, say the unbootable Linux is in hda3
Code:
su
mkdir /mnt/temp
mount /dev/hda3 /mnt/hda3
chroot /mnt/hda3
To install its Lilo
Code:
lilo -b /dev/hda
To install its Grub
Code:
grub-install /dev/hda
If your first bootable disk is a Sata just change "hda" to "sda".
 
Old 10-11-2006, 03:47 PM   #22
shane2peru
Member
 
Registered: Aug 2006
Posts: 33

Rep: Reputation: 15
Modifying the files from a live CD I have done, that is pretty simple. The command
Code:
grub -install /dev/hda
will that install it into the MBR ? or that just intalls it into the /boot of the hdd that you are on? Would I need to write it like this?
Code:
grub -install MBR
That would be really neat if I could do that. Thanks.

Shane
 
Old 10-11-2006, 06:23 PM   #23
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
When you installed the distro that has Grub all its files are already inside /boot/grub.

The "grub-install" (no space in between please!) command puts its stage1 file in the MBR, thereby makes a link to boot the stage2 files inside /boot/grub.

Don't try to be clever to alter the command paramter yourself. /dev/hda means device hda. Since no partition is specified that is the whole disk and Grub will has no choice but to put it in the MBR.

The command is always there. You just didn't know but prefer to re-install the distro every time.
 
Old 10-11-2006, 06:32 PM   #24
shane2peru
Member
 
Registered: Aug 2006
Posts: 33

Rep: Reputation: 15
Thumbs up

Wow, that is great. I'm a bit nervous to try this though because, if it fails for whatever reason (typo, or user error of some sort), then I guess, I could still log in via Live CD and fix stuff correct? I will have to give that a try later. That is a really cool command! Thanks.

Shane
 
Old 10-11-2006, 07:12 PM   #25
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
I run over 100 systems in the box. There are only two booting tools I use.

One is a Grub floppy and the other is a Live CD. For Windows systems I use a Dos floppy.

There is no PC system a Grub floppy cannot boot and you can use it to restore Grub in any partition too.
 
Old 10-11-2006, 09:45 PM   #26
shane2peru
Member
 
Registered: Aug 2006
Posts: 33

Rep: Reputation: 15
Yeah, a floppy is nice, if you have a box, and not a laptop. That is a minor problem for me. Thanks for the info, have you ever booted an OS on an external hard drive? Theoretically if you loaded its bootloader into it's (the usb hdd) MBR, and then booted off the USB device, you should be able to boot into it right? I do have the ability to boot into a USB drive in my BIOS. So that may be an option for me to check into.

Shane

Last edited by shane2peru; 10-11-2006 at 10:02 PM.
 
Old 10-12-2006, 03:24 AM   #27
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
You can burn Grub into a CD.

Special Linux or special treament is needed to boot from a USB device. They use a slower boot loader.
 
Old 10-12-2006, 09:07 AM   #28
shane2peru
Member
 
Registered: Aug 2006
Posts: 33

Rep: Reputation: 15
We have completely changed this thread. Is there just a line to do that, or is it something that is dependent on the system being used? Couldn't you in theory just load everything on to the external hdd, and then boot via the USB device? I think I'm going to give that a try, it can't hurt anything, even if it doesn't work. Thanks for the help.

Shane
 
Old 10-12-2006, 05:21 PM   #29
shane2peru
Member
 
Registered: Aug 2006
Posts: 33

Rep: Reputation: 15
Ok, the theory was wrong, apparenlty you need a something else. I don't know what that would be.
Open for ideas.

Shane
 
Old 10-12-2006, 05:32 PM   #30
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
Install Puppy. Have a look at its inner working and see what boot loader that works with a USB device.
 
  


Reply

Tags
boot loader, grub, mbr


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I chain boot GRUB (Fedora) from LILO (Slackware)? DaneM Linux - Distributions 6 07-06-2005 05:25 AM
Changing Boot Loader from Lilo to Grub annointed3 Linux - General 7 10-01-2004 12:33 AM
Change loader from grub to lilo _tracyy Linux - Software 2 07-22-2004 10:23 PM
Chain loading grub from lilo - help! thebeardedladie Linux - General 2 03-09-2003 04:07 PM
Lilo to Grub Boot loader Maurice Arthur Linux - Software 3 07-23-2001 10:07 AM


All times are GMT -5. The time now is 06:44 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration