LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-15-2003, 04:03 AM   #1
goggyturk
LQ Newbie
 
Registered: Oct 2003
Posts: 22

Rep: Reputation: 15
Unhappy Newbie LILO problem


Hi there

I'm trying to install Slackware 8.1 onto a secondary slave HD (hdd in this case). Slack setup will only allow installation of LILO onto the MBR of the first HD (the master I assume), so I decided to install it using

/sbin/lilo -M /dev/hdd

It says in the man pages that this won't disturb the primary partition table, but, guess what, I did it twice and both times the partiton table disappeared from hdd.

I suppose I could just disconnect the master HD when I install next time, but this is bugging me now. Can anyone help me get LILO on the MBR of hdd from the command line?

Last edited by goggyturk; 10-15-2003 at 06:19 AM.
 
Old 10-15-2003, 05:46 AM   #2
guygriffiths
Member
 
Registered: Jun 2003
Location: Reading, UK
Distribution: Debian 3.0, LFS
Posts: 524

Rep: Reputation: 37
Why don't you want LILO on the primary hard drive? It's a boot manager, and you almost certainly want it on the primary hard drive, so you can boot from it. I'm pretty sure that if you don't want it on the primary drive, you don't want it at all.
 
Old 10-15-2003, 05:55 AM   #3
goggyturk
LQ Newbie
 
Registered: Oct 2003
Posts: 22

Original Poster
Rep: Reputation: 15
Sorry, should have made myself more clear. The slave HD is from my tablet PC and needs to have LILO on the MBR so it will boot when I put it back in. I already have another boot manager on the master HD.

Do you know the answer to my original query? Why does the partition table get wiped when I install LILO?
 
Old 10-15-2003, 06:29 AM   #4
dalek
Senior Member
 
Registered: Jul 2003
Location: Mississippi USA
Distribution: Gentoo
Posts: 2,058
Blog Entries: 2

Rep: Reputation: 79
Don't do this yet. I may be wrong here. Somebody correct me if I am. I think I know what he is trying to do and why, possibly.

In the very top of the lilo.conf there is this line.

Code:
boot=/dev/hda
I think you can change that to

Code:
boot=/dev/hdd
and it will put on the drive you want.

Not sure. I would wait and see if I get corrected unless you want to dive into waters that may be to deep and you can't swim. Know what I mean??

I assume that when you want to boot Linux you are going to change the BIOS setting to that drive, hdd. Right???

Later.

 
Old 10-15-2003, 07:04 AM   #5
goggyturk
LQ Newbie
 
Registered: Oct 2003
Posts: 22

Original Poster
Rep: Reputation: 15
Yes Dalek, at the moment I'm trying to inflate my lifejacket. The problem with the machine I'm putting the HD back into is that it doesn't have a CD or floppy drive (there's a USB slot but BIOS doesn't support booting from USB devices) so the only option is to have the drive bootable when I put it back in. Very irregular I know, and I'm certainly into uncharted waters as far as my limited knowledge goes.

Say I do the Slack install with the master HD disconnected and run through the entire setup. Will the HD work when I put it in the tablet PC? I know that in the original setup the HD was hda, but Slack has a tendency to see any HD on my desktop system as hdc+ - it puts the two CD drives in as hda & b. Would changing the IDE channels on the CDs and HDs make a difference (I think CDs are on channel 0, HDs on 1)?

Failing that, if Slack is installed on the HD as hdc, will there be problems when I put it back in the tablet?

Last edited by goggyturk; 10-15-2003 at 08:18 AM.
 
Old 10-15-2003, 09:39 AM   #6
dalek
Senior Member
 
Registered: Jul 2003
Location: Mississippi USA
Distribution: Gentoo
Posts: 2,058
Blog Entries: 2

Rep: Reputation: 79
That may work. If not you may have to boot from a Linux floppy and make a change or two.

I would do this. Remove the drive, windoze drive, and put in the drive you want Linux on as the Primary Master. Install Slackware and such then put the drive in the other system and return the windoze drive back to its proper place.

Done that way lilo, or grub, and the fstab files should be correct and your MBR will not be messed with on the windoze drive either. Don't forget to change your BIOS when you change the drives. It may get and do a bit of and you may a bit.

Did that make sense? I just don't know how it will work if you compile the kernel and the machines are really different.

You will be the one getting wet here.

 
Old 10-15-2003, 09:45 AM   #7
goggyturk
LQ Newbie
 
Registered: Oct 2003
Posts: 22

Original Poster
Rep: Reputation: 15
Thanks for your advice mate. I'll give it a try. I just hope the danged tablet PC still works after I dismantled it...

Anyone here know how to inflate these water wings?
 
Old 10-15-2003, 06:03 PM   #8
flashtek_uk
LQ Newbie
 
Registered: Sep 2003
Location: England
Distribution: Debian
Posts: 14

Rep: Reputation: 0
Dare i say you are going to have problem if you install the OS as /dev/hdd and then move it back to the tab PC... the disk will then be visable as /dev/hda

The partitioning and filesystem tables will all be messed up.... best bet (if you can) is to install with the hdd in the tab pc as this will also configure the graphics and other devices... also the partitions would work correctly. I can talk you through moving from /dev/hdd to /dev/hda but it is better (in this case) not to have to.

If you are unable to use the tab pc to do the actual install, I would suggest installing it's hard disk as /dev/hda (primary master) on a donor PC and install from there...

Do tablet PC's have networking ?
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Total newbie, problems with lilo xanas3712 Linux - Newbie 27 04-09-2004 08:11 AM
Slack Newbie: lilo Help pibby Slackware - Installation 10 01-31-2004 11:03 AM
lilo problem from a newbie linux fan javiersf Linux - General 30 01-15-2003 08:38 PM
Problem with Lilo not updating (yes I ran lilo after changing the conf) webguy Linux - General 2 06-24-2001 07:12 PM
Newbie with LILO question hiwatt25 Linux - Newbie 5 05-30-2001 07:56 AM


All times are GMT -5. The time now is 09:23 AM.

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