Jump to content

Need help with Lilo to remove a Hard Drive


arthurking
 Share

Recommended Posts

Hi all,

Been here a while, played with Mandrake a while, tried to tinker a bit, etc and never really mucked about with lilo, but now I think I have to.

I'm going to back up my lilo.conf before I do anything, but this is my problem....

I have 2 HDD hda and hdb. Eveything is installed on hda now, it was on hdb but now its on hda only!

I'm trying to remove hdb from my box, a friend wants it for his sons box, and I don't need (want) it. But I'm finding that I may need it after all, unless you guys can help me a bit!

I think my problem is with lilo(?). I get a small error about hdb on boot screen, something like hdb8 bad access: I/O error, etc.

I'm looking at my lilo.conf file, everything is what I expect, windows, 2422-26 kernel is default, etc. What I don't understand, hence this question, is on all the

. image=/......

lines for linux, there are (what I remember to be normal) lines beneath, eg.

label=<stuff written here..>

root=[and here]

initrid=here too

and where it has

append=".................resume=/dev/hdb8 splash=silent"

(it obviously has all the appropriate stuff.....and then the resume=/....)

This resume=/dev/hdb8, I'm sure is causing the problem.

I have nothing on hdb, it was formatted in readiness my for friend (reason for the error?), but there was stuff on here which I no longer needed (mdk9.2, reinstalled onto hda).

Now if I remove hdb from the box I get a kernel panic :unsure: from which I don't know how to recover, and I'm thinking removing this "resume=/.." line will cure my problem.

???But I'm not sure if I should remove the line or replace with something???

what does this resume= line allude to?

I think I had my swap part on hdb8, but I don't remember.

 

Thanks in advance.

I googled lilo.conf checked the faq links nothing really helps, way too much info too!

Link to comment
Share on other sites

First the simple: when you change /etc/lilo.conf you have to run lilo you know ?

On a command line as root type "lilo" without the quotes.

How to setup /etc/lilo.conf:

Well just replace hdb<x> with the equivalent in hda<x> ( :unsure: so obvious that I'm not sure it help there )

At last, before removing hdb, don't forget to have a look on /etc/fstab to remove all the hdb stuff.

 

by

 

roland

Edited by roland
Link to comment
Share on other sites

Hi roland and thanks for your help.

My problem is that I had no recollection of anything on hdb8 and to replace it with what part of hda? I have no hda8.

Thanks for the reminder, etc/fstab!

Tried lilo in command prompt and I get

Fatal: open /boot/vmlinuz: no such file or directory

 

I'm guessing this is bad. What should have been the response?

 

etc/fstab: I did remove the drive from the system using the "config tool" (diskdrake) in harddrake. Gui program and all, did the format thing, then it asks if you want to write the new etc/fstab. It was unmounted first!

Edited by arthurking
Link to comment
Share on other sites

I did edit my lilo.conf and just removed all instances of resume=/dev/hdb8

This made no difference to booting I still get kernel panic when hdb is removed (physically), so I have to hard reset, and then with hdb back on, now the error.

 

hdb8: bad access: block=0, count=8

end_request: I/O error, dev 03:48 (hdb), sector 0

Resume Machine: I/O error

hdb8: bad access: block=0, count=8

end_request:I/O error, dev 03:48 (hdb), sector 0

*** Error -5 in read_primary_suspend_image (press SHIFT to continue)

 

which I do, and it boots normal.

 

I could give my friend a 2.4Gig drive next to me, but he'll be asking me to get him a bigger one in 2-3 months :lol2::lol2:

 

thanks.

Link to comment
Share on other sites

Tried lilo in command prompt and I get

Fatal: open /boot/vmlinuz: no such file or directory

 

I'm guessing this is bad. What should have been the response?

The response should have been ... different :P

as long as lilo don't pass successfully, the change in /etc/lilo.conf has no effect.

please can you post your /etc/lilo.conf and your /etc/fstab ?

 

roland

Link to comment
Share on other sites

Damn.

 

fstab

________________________________________________________________

/dev/hda5 / ext3 defaults 1 1

none /dev/pts devpts mode=0620 0 0

none /mnt/cdrom supermount dev=/dev/scd0,fs=udf:iso9660,ro,--,iocharset=iso8859-15 0 0

none /mnt/floppy supermount dev=/dev/fd0,fs=ext2:vfat,--,sync,umask=0,iocharset=iso8859-15,codepage=850 0 0

/dev/hda1 /mnt/win_c ntfs umask=0,ro,iocharset=iso8859-15 0 0

none /proc proc defaults 0 0

__________________________________________________________________

I haven't edited fstab, only what was written by diskdrake

 

lilo

__________________________________________________________________

boot=/dev/hda

map=/boot/map

vga=normal

default="2422-26"

keytable=/boot/us-latin1.klt

prompt

nowarn

timeout=100

message=/boot/message

menu-scheme=wb:bw:wb:bw

image=/boot/vmlinuz

label="linux"

root=/dev/hda5

initrd=/boot/initrd.img

append="devfs=mount hdc=ide-scsi acpi=ht splash=silent"

vga=788

read-only

image=/boot/vmlinuz

label="linux-nonfb"

root=/dev/hda5

initrd=/boot/initrd.img

append="devfs=mount hdc=ide-scsi acpi=ht "

read-only

image=/boot/vmlinuz

label="failsafe"

root=/dev/hda5

initrd=/boot/initrd.img

append="failsafe devfs=nomount hdc=ide-scsi acpi=ht "

read-only

other=/dev/hda1

label="windows"

table=/dev/hda

other=/dev/fd0

label="floppy"

unsafe

image=/boot/vmlinuz-2.4.22-26mdk

label="2422-26"

root=/dev/hda5

initrd=/boot/initrd-2.4.22-26mdk.img

append="devfs=mount hdc=ide-scsi acpi=ht splash=silent"

vga=788

read-only

___________________________________________________________________

 

The formatting didn't come out perfectly in this post using the cut and paste method.

I have edited out

 

append=.............resume=/dev/hdb8

 

The computer boots OK, but for the error with hdb8, as stated in a previous post. I haven't replaced that line because it made no difference.

I suppose my guessing ability needs some help.

 

I did a search in google for the error that I'm getting with no success.

One more thing. Can I install win98 now, and not trash lilo/winXP/mandrake installation. I'm thinking of re-installing for this reason anyhow. I know of windows' ability to destroy any 'infereior' systems they don't like you to be using.

That's the sole purpose of this box, mucking about .

 

thanks.

Link to comment
Share on other sites

I probably shouldn't have, but....

I never liked those entries for "linux-nonfb" (what is that?) "linux" and "failsafe" :P , they just wasted valuable screen space, screen space that is much better off blue.

So I banished them forever.

Anyhow was a problem in the /boot/initrd.img, maybe it was on hdb8 (?), I don't know.

[edit: AAARGHHH, what a doofus! I deleted an old kernel 2.4.22-21, and this never got removed. I suppose it serves me right for using MCC's DrakBoot. I heard bad things 'bout it. Now I know. :woops: ]

 

All the image= listings with ........./boot/initrd.img in them caused me grief in lilo. So I run lilo command now and all is well (now I know what you're on about roland :P )

hdb is now gone along with "failsafe" "linux" and "linux-nonfb" (still can't figure this one out?). I have a rescue cd for emergencies, and "floppy" still there too.

This solution suits me fine.

I think my guessing ability paid off this time.

 

Now I have more room on my lilo screen for 98, College, and more :lol2:

 

cheers.

Edited by arthurking
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...