LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 03-12-2008, 09:07 AM   #16
johnsfine
Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,139

Rep: Reputation: 1127Reputation: 1127Reputation: 1127Reputation: 1127Reputation: 1127Reputation: 1127Reputation: 1127Reputation: 1127Reputation: 1127

Quote:
Originally Posted by scocha View Post
Well, if I choose the menu option to just write LILO to the superblock of the first (/root)partition of sdb, then does that make sdb bootable?
Probably not.

After doing that, you would need something else to make sdb bootable.

I don't know if you could find or install an old style MBR on that disk that transfers control to the boot sector of the sector marked as bootable. I also don't know if Linux partition table managers can be told to set the old style partition bootable flag.

I think you could use dd to copy stage 1 of LILO from sdb? to sdb.

I'm pretty sure you could use dd to copy stage 1 of LILO from sdb? to a file which you could put on the Windows system, then modify boot.ini so ntldr gives you the choice to boot Linux through that file.

I've see a Windows program you can download for free to which you can specify a partition and it will create a tiny customized boot routine to transfer to the boot sector of that partition. That works just like the option immediately above, but with one extra stage (ntldr loads that customized boot routine, which loads stage 1 of LILO).

Probably all those choices are harder than just finding a different installer for LILO (or using GRUB) and installing stage 1 directly in the MBR of sdb.
 
Old 03-12-2008, 11:54 AM   #17
scocha
LQ Newbie
 
Registered: Sep 2000
Location: hemet, ca
Distribution: Slackware
Posts: 26

Original Poster
Rep: Reputation: 15
Wow, do I have a lot to learn. I don't know anything about stage1 stage1.5 and all that. I guess I should go the route of disconnecting the windows drive and doing the full install as the only HD so the install program will put LILO on the mbr, then I'll have to figure out how to change things around when I reconnect the windows drive and the linux drive becomes sdb. Slackware includes GRUB package, but uses LILO in the installation routine, so that's why I've been only talking about LILO. I have so many questions, but I hate to waste peoples time when I don't even have it on my system yet. My hard drive gets delivered today!
Thanks.
 
Old 03-12-2008, 12:40 PM   #18
johnsfine
Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,139

Rep: Reputation: 1127Reputation: 1127Reputation: 1127Reputation: 1127Reputation: 1127Reputation: 1127Reputation: 1127Reputation: 1127Reputation: 1127
Quote:
Originally Posted by scocha View Post
I don't know anything about stage1 stage1.5 and all that.
Most Linux users never need to.

Quote:
figure out how to change things around when I reconnect the windows drive and the linux drive becomes sdb.
If you chose to reconnect so linux is sdb (rather than reconnect so Windows is really drive 1, but tricked into booting as drive 0) you'll need to be booted in a linux liveCD when you fix the installed linux.

I know you'll need to edit fstab because the identity of the drive changed from sda to sdb. I don't know whether anything else in Slackware would need to be edited.

I expect something in LILO will need to be adjusted, but I don't know what.

I think it would be easier to reinstall LILO (or GRUB) after puting the windows disk back, than to adjust LILO. But that would defeat the original purpose of removing the Windows disk (not having it there during the LILO install to avoid the risk of doing the install wrong and overwriting the Windows drive).
 
Old 03-12-2008, 08:13 PM   #19
scocha
LQ Newbie
 
Registered: Sep 2000
Location: hemet, ca
Distribution: Slackware
Posts: 26

Original Poster
Rep: Reputation: 15
I'm starting to think that maybe I should just throw caution to the wind and write to the mbr of sda.
 
  


Reply

Tags
drives


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
Booting error in puppy linux while booting it from fedora why ? senthilarumugam LinuxQuestions.org Member Intro 1 02-22-2007 03:43 PM
Dual-booting and Multi-Booting trainee Slackware - Installation 6 06-18-2006 08:50 PM
booting Linux from an image that lost booting capabilities tgr Linux - Software 1 03-05-2006 12:28 PM
Booting into Single User on MDK 9 asks for root password instead of booting into root acadcworks Linux - General 6 01-10-2006 07:51 AM
Are you dual booting and Windows stopped working (booting) then here's the answer: rberry88 Linux - General 1 02-12-2004 10:05 AM


All times are GMT -5. The time now is 06:52 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration