boot problem -- update

boot problem -- update

Post by cedri » Mon, 10 Jun 2002 00:10:35



Posted the message 'boot problem' earlier.
Tried the following:
Made sure I could boot up with floppy.
Boot up into MDK with boot floppy went great.
Reconnected /dev/hda - 16G HD.
Booted up with DOS boot disk.
Ran 'fdisk /mbr.
Then booted up into W98.
So, I got W98 back.
However, can not boot up into MDK now using floppy.
Error message says /dev/hdd not ready or something similar.
Sorry, I'm in W98 now and can't get the exact error message.

Any idea on how to solve this problem?
cedric

The sys has two HD's.
A 16G and 30G
W98 was on 16G and had been for some time.
Installed MDK8.0 on 30G.
At boot up, 'LO' filled the screen in a loop.
Then there was nothing, no W98 or MDK.
I know, or think, the mbr of the 16G is corrupt.

I disconnected the 16G cable and reinstalled MDK.
It is working fine.
Now, how do I get W98 back and run dual boot?
Or, can I get W98 back and boot up to MDK using a floppy?

If I am able to fix the mbr using the W98 CD, will MDK be
there? If not, can I boot up to it using a floppy?

 
 
 

boot problem -- update

Post by Bit Twist » Mon, 10 Jun 2002 00:33:18



> Posted the message 'boot problem' earlier.
> Tried the following:
> Made sure I could boot up with floppy.
> Boot up into MDK with boot floppy went great.
> Reconnected /dev/hda - 16G HD.
> Booted up with DOS boot disk.
> Ran 'fdisk /mbr.
> Then booted up into W98.
> So, I got W98 back.
> However, can not boot up into MDK now using floppy.
> Error message says /dev/hdd not ready or something similar.
> Sorry, I'm in W98 now and can't get the exact error message.

> Any idea on how to solve this problem?
> cedric

> The sys has two HD's.
> A 16G and 30G
> W98 was on 16G and had been for some time.
> Installed MDK8.0 on 30G.
> At boot up, 'LO' filled the screen in a loop.
> Then there was nothing, no W98 or MDK.
> I know, or think, the mbr of the 16G is corrupt.

> I disconnected the 16G cable and reinstalled MDK.
> It is working fine.
> Now, how do I get W98 back and run dual boot?
> Or, can I get W98 back and boot up to MDK using a floppy?

> If I am able to fix the mbr using the W98 CD, will MDK be
> there? If not, can I boot up to it using a floppy?

Disk drives for linux are lettered as follows:
First cable on conroller 0
        drive 1 /dev/hda Master
        drive 2 /dev/hdb Slave
Second cable on conroller 1
        drive 3 /dev/hdc Master
        drive 4 /dev/hdd Slave

So if I misunderstand you correctly, you unplugged a disk
did the linux thing, installed the old drive. That would cause
the drive letters to change. Now linux cannot find where it was.

You can boot cd 1 mandrake and get into the rescue mode
find the new drive letter where linux is and change
the /etc/lilo.conf and /etc/fstab to match the new drive letters
where linux lives. You then have to install the lilo conf changes.

You might make a Rescue diskette:
http://www.toms.net/rb/home.html

Ok, you booted diskette or cd 1 in rescue mode

Change hda5 to your / partition location
        mkdir /mnt
        mount /dev/hda5 /mnt
        chroot /mnt
Made changes in /etc/lilo.conf and /etc/fstab
        /sbin/lilo -v              to install changes.

--
The warranty and liability expired as you read this message.
If the above breaks your system, it's yours and you keep both pieces.
Practice safe computing. Backup the file before you change it.
Do a,  man command_here or cat command_here, before using it.

 
 
 

boot problem -- update

Post by Davi » Mon, 10 Jun 2002 00:42:12



> Posted the message 'boot problem' earlier.
> Tried the following:
> Made sure I could boot up with floppy.
> Boot up into MDK with boot floppy went great.
> Reconnected /dev/hda - 16G HD.
> Booted up with DOS boot disk.
> Ran 'fdisk /mbr.
> Then booted up into W98.
> So, I got W98 back.
> However, can not boot up into MDK now using floppy.
> Error message says /dev/hdd not ready or something similar.
> Sorry, I'm in W98 now and can't get the exact error message.

> Any idea on how to solve this problem?
> cedric

> The sys has two HD's.
> A 16G and 30G
> W98 was on 16G and had been for some time.
> Installed MDK8.0 on 30G.
> At boot up, 'LO' filled the screen in a loop.
> Then there was nothing, no W98 or MDK.
> I know, or think, the mbr of the 16G is corrupt.

> I disconnected the 16G cable and reinstalled MDK.
> It is working fine.
> Now, how do I get W98 back and run dual boot?
> Or, can I get W98 back and boot up to MDK using a floppy?

> If I am able to fix the mbr using the W98 CD, will MDK be
> there? If not, can I boot up to it using a floppy?

Why did you disconnect the windows drive to install Linux? Linux won't
overwirte the windows drive/partition unless you tell it to.

Connect the windows drive as the primary drive /dev/hda.
Then install Linux on the second drive but leave the windows drive
connected and install linux to /dev/hdb or the correct device depending
where it is connected.

After you have linux installed then you can add the lines to the end of
/etc/lilo.conf to be able to boot windows if the install doesn't do it
for you.

other=/dev/hda1
label=win

--
   Confucius:  He who play in root, eventually kill tree.
Registered with the Linux Counter.  http://counter.li.org

 
 
 

boot problem -- update

Post by cedri » Mon, 10 Jun 2002 09:46:16



Quote:> Why did you disconnect the windows drive to install Linux? Linux won't
> overwirte the windows drive/partition unless you tell it to.

> Connect the windows drive as the primary drive /dev/hda.
> Then install Linux on the second drive but leave the windows drive
> connected and install linux to /dev/hdb or the correct device depending
> where it is connected.

Therein lies the problem. MDK installation did not write LILO correctly.
When boot up got to where LILO should have promted me to go to DOS or went
on into Linux, it did nothing but repeatedly type "LI" to the screen a
cazillion times. At this point, I had neither W98 or MDK. I had to do
someting to have an OS to use the computer. I elected to go with MDK.

Quote:> After you have linux installed then you can add the lines to the end of
> /etc/lilo.conf to be able to boot windows if the install doesn't do it
> for you.

Linux is still on /dev/hdd. I just can't get to it. The boot floppy doesn't
work.
Also, using MDK install CD1 in rescue mode, there is no /etc/lilo.conf or
/sbin/lilo on /dev/hdd

Using fdisk in DOS, I did a fdisk /mbr to repair the mbr. I now have W98.
That is what I'm using now.

What I need, I think, is to be able to boot to MDK on /dev/hdd via floppy
and leave W98 alone. Is there a lilo.conf on the boot floppy. If so, can I
set it up to look for MDK on /dev/hdd?

MDK does not seem to be able to correctly set up the mbr on /dev/hda to
allow LILO to work properly.

Quote:> other=/dev/hda1
> label=win

> --
>    Confucius:  He who play in root, eventually kill tree.
> Registered with the Linux Counter.  http://counter.li.org

 
 
 

boot problem -- update

Post by Bit Twist » Mon, 10 Jun 2002 09:56:55



> What I need, I think, is to be able to boot to MDK on /dev/hdd via floppy
> and leave W98 alone. Is there a lilo.conf on the boot floppy. If so, can I
> set it up to look for MDK on /dev/hdd?

You can create a lilo diskette, an image boot diskette, and or
a rescue diskette. Only the rescue diskette contains utilities.

Change your bios boot order and test diskettes after you create them.

lilo boot diskette:
        Load a blank floppy into drive and
        lilo -b /dev/fd0
Remove diskette and label it    lilo boot

image boot diskette:
        Load a blank floppy into drive and
        mkbootdisk --device /dev/fd0 $(uname -r)
Remove diskette and label it    image boot

Rescue diskette:
http://www.toms.net/rb/home.html

Replacing a wiped out mbr lilo using the Rescue diskette

Change hda5 to your / partition location
        mkdir /mnt
        mount /dev/hda5 /mnt
        chroot /mnt
        /sbin/lilo -v

Then, install Win, then  boot from your CD, hit F1 and type

rescue

then, at the prompt (it will look strange, something like "sh-2.05#"), type

mount /dev/hda5 /mnt
chroot /mnt
/sbin/lilo
reboot

 
 
 

boot problem -- update

Post by cedri » Mon, 10 Jun 2002 09:54:37


Quote:> So if I misunderstand you correctly, you unplugged a disk
> did the linux thing, installed the old drive. That would cause
> the drive letters to change. Now linux cannot find where it was.

The drive is still /dev/hdd as before

Quote:> You can boot cd 1 mandrake and get into the rescue mode
> find the new drive letter where linux is and change
> the /etc/lilo.conf and /etc/fstab to match the new drive letters
> where linux lives. You then have to install the lilo conf changes.

There is no /etc/lilo.conf  on /dev/hdd
/etc/fstab is there.
I found this doing the rescue from MDK CD1 install CD.

Quote:> You might make a Rescue diskette:
> http://www.toms.net/rb/home.html

This does not work. No such page error three times.
Quote:> Ok, you booted diskette or cd 1 in rescue mode

> Change hda5 to your / partition location
> mkdir /mnt
> mount /dev/hda5 /mnt
> chroot /mnt
> Made changes in /etc/lilo.conf and /etc/fstab
> /sbin/lilo -v              to install changes.

> --
> The warranty and liability expired as you read this message.
> If the above breaks your system, it's yours and you keep both pieces.
> Practice safe computing. Backup the file before you change it.
> Do a,  man command_here or cat command_here, before using it.

 
 
 

boot problem -- update

Post by cedri » Mon, 10 Jun 2002 10:21:32


Quote:> You can create a lilo diskette, an image boot diskette, and or
> a rescue diskette. Only the rescue diskette contains utilities.

None of these work using the MDK  CD1 in rescue mode.
How do I do this since I can't get to Linux?
 
 
 

boot problem -- update

Post by Bit Twist » Mon, 10 Jun 2002 10:43:41



>> You can create a lilo diskette, an image boot diskette, and or
>> a rescue diskette. Only the rescue diskette contains utilities.

Anytime a url does not work, reduce it to the basic url and try again.
rescue diskette,
http://www.toms.net/

Quote:

> None of these work using the MDK  CD1 in rescue mode.
> How do I do this since I can't get to Linux?

when you are in the rescue mode, you are in linux.
You have to mount the partition to do the work in. When you want to
use the system from that partition you have to do a
        chroot <partition_mount_point_here>

Rescue diskette:
http://www.toms.net/

Change hda5 to your / partition location
        mkdir /mnt
        mount /dev/hda5 /mnt
        chroot /mnt
        /sbin/lilo -v

 
 
 

boot problem -- update

Post by cedri » Mon, 10 Jun 2002 11:04:18


Quote:> when you are in the rescue mode, you are in linux.
> You have to mount the partition to do the work in. When you want to
> use the system from that partition you have to do a
>   chroot <partition_mount_point_here>

> Rescue diskette:
> http://www.toms.net/

This is what happens:

Quote:> Change hda5 to your / partition location
> mkdir /mnt

Cannot create dir /mnt exists

Quote:> mount /dev/hda5 /mnt

/dev/hda5: success
mount: you must specify the filesystem type

Quote:> chroot /mnt

no such file or directory

Quote:> /sbin/lilo -v

no such file or directory
 
 
 

boot problem -- update

Post by Bit Twist » Mon, 10 Jun 2002 11:21:28



>> when you are in the rescue mode, you are in linux.
>> You have to mount the partition to do the work in. When you want to
>> use the system from that partition you have to do a
>>   chroot <partition_mount_point_here>

>> Rescue diskette:
>> http://www.toms.net/

> This is what happens:

>> Change hda5 to your / partition location
>> mkdir /mnt
> Cannot create dir /mnt exists

Yea, I just wanted to make sure.

Quote:

>> mount /dev/hda5 /mnt
> /dev/hda5: success
> mount: you must specify the filesystem type

>> chroot /mnt
> no such file or directory

>> /sbin/lilo -v
> no such file or directory

Ok, I screwed up.  mount should be   mount -t auto /dev/hda5 /mnt

Now listen up, where I said

Quote:>> Change hda5 to your / partition location

YOU HAVE to change everywhere hda5 to I GUESS   /hddN where N is the
partition you install linux.
Until you get the mount point correct the chroot and lilo will not work.

You might try running      fdisk /dev/hdd   to see partition numbers.

--
The warranty and liability expired as you read this message.
If the above breaks your system, it's yours and you keep both pieces.
Practice safe computing. Backup the file before you change it.
Do a,  man command_here or cat command_here, before using it.

 
 
 

boot problem -- update

Post by cedri » Mon, 10 Jun 2002 11:47:18


It worked!!!
I'm in Linux!!!
Forget all those names I called you.
And, Thank You!!!

Everything is here as before.
Linux boots up from floppy.
W98 as per normal

Is it a big deal to set up lilo so it boots off /dev/hda as
usual without loosing W98 again?

Thanks again,
cedric

 
 
 

boot problem -- update

Post by Bit Twist » Mon, 10 Jun 2002 12:04:25



> It worked!!!
> I'm in Linux!!!
> Forget all those names I called you.

Say what, smile when you say that,.....    :)

Quote:> And, Thank You!!!

Thank you for showing my canned reply was broke.

Quote:> Everything is here as before.
> Linux boots up from floppy.
> W98 as per normal

Are you indicating that you can boot windoz from the
lilo menu?

Quote:

> Is it a big deal to set up lilo so it boots off /dev/hda as
> usual without loosing W98 again?

I do not have problems with w98 or XPee.

You have to test the lilo boot to verify it boots windoze
correctly before the mbr install.

I would think that a  /sbin/li/o -v /dev/hda
would install into the mbr correctly unless your bios has
virus protection turned on.

--
The warranty and liability expired as you read this message.
If the above breaks your system, it's yours and you keep both pieces.
Practice safe computing. Backup the file before you change it.
Do a,  man command_here or cat command_here, before using it.

 
 
 

boot problem -- update

Post by cedri » Mon, 10 Jun 2002 20:52:52


Quote:>> Everything is here as before.
>> Linux boots up from floppy.
>> W98 as per normal

> Are you indicating that you can boot windoz from the
> lilo menu?

No, without a boot floopy, W98 loads.
Lilo never comes up.
To load MDK requires a boot floppy.
I would prefer to boot to W98 via the lilo menu.
Actually, I would prefer to trash all MS products.
I run AutoCad and DairyQuest, therefore I need W98.

Quote:

>> Is it a big deal to set up lilo so it boots off /dev/hda
>> as usual without loosing W98 again?

> I do not have problems with w98 or XPee.

What is XPee?
Quote:

> You have to test the lilo boot to verify it boots windoze
> correctly before the mbr install.

How do you test the lilo boot.

Quote:

> I would think that a  /sbin/li/o -v /dev/hda
> would install into the mbr correctly unless your bios has
> virus protection turned on.

I'll check the virus thing in bios asap.
Here is /etc/lilo.conf
It is what came with MDK8.0
What would be needed to boot from /dev/hda mbr?

boot=/dev/hdd
map=/boot/map
install=/boot/boot.b
default=linux
keytable=/boot/us.klt
lba32
prompt
timeout=50
disk=/dev/hdd bios=0x80
message=/boot/message-graphic
menu-scheme=wb:bw:wb:bw
image=/boot/vmlinuz
        label=linux
        root=/dev/hdd6
        initrd=/boot/initrd.img
        append=" hdb=ide-scsi quiet"
        vga=788
        read-only
image=/boot/vmlinuz
        label=linux-nonfb
        root=/dev/hdd6
        initrd=/boot/initrd.img
        append=" hdb=ide-scsi"
        read-only
image=/boot/vmlinuz
        label=failsafe
        root=/dev/hdd6
        initrd=/boot/initrd.img
        append=" hdb=ide-scsi failsafe"
        read-only
other=/dev/fd0
        label=floppy
        unsafe

 
 
 

boot problem -- update

Post by Bit Twist » Mon, 10 Jun 2002 21:48:22



>>> Everything is here as before.
>>> Linux boots up from floppy.
>>> W98 as per normal

>> Are you indicating that you can boot windoz from the
>> lilo menu?

> No, without a boot floopy, W98 loads.
> Lilo never comes up.
> To load MDK requires a boot floppy.
> I would prefer to boot to W98 via the lilo menu.

Ok, that is what I wanted to know.
I can now guess what happened. You poped the windoze drive
out and installed MD, Since you were playing it safe
MD did not know about putting an entry for 98 in the lilo.conf

Quote:> Actually, I would prefer to trash all MS products.
> I run AutoCad and DairyQuest, therefore I need W98.

I can releate.

Quote:

>>> Is it a big deal to set up lilo so it boots off /dev/hda
>>> as usual without loosing W98 again?

>> I do not have problems with w98 or XPee.

> What is XPee?

Windows Home Edition XP

Quote:

>> You have to test the lilo boot to verify it boots windoze
>> correctly before the mbr install.

> How do you test the lilo boot.

I have two diskettes, 1 is the rescue and the other is marked
test lilo.

You put you changes in lilo.conf and and write to the test lilo
diskette. Shutdown the system and boot from the test floppy.
If all is well then you install normally.

Quote:

>> I would think that a  /sbin/li/o -v /dev/hda
>> would install into the mbr correctly unless your bios has
>> virus protection turned on.

> I'll check the virus thing in bios asap.
> Here is /etc/lilo.conf
> It is what came with MDK8.0
> What would be needed to boot from /dev/hda mbr?

add SOMETHING like this to bottom of /etc/lilo.conf

other=/dev/hda1             <======= change this to match your install
        label=win98
        table=/dev/hda      <======= and this

Quote:> boot=/dev/hdd
> map=/boot/map
> install=/boot/boot.b
> default=linux
> keytable=/boot/us.klt
> lba32
> prompt
> timeout=50
> disk=/dev/hdd bios=0x80
> message=/boot/message-graphic
> menu-scheme=wb:bw:wb:bw
> image=/boot/vmlinuz
>         label=linux
>         root=/dev/hdd6
>         initrd=/boot/initrd.img
>         append=" hdb=ide-scsi quiet"
>         vga=788
>         read-only
> image=/boot/vmlinuz
>         label=linux-nonfb
>         root=/dev/hdd6
>         initrd=/boot/initrd.img
>         append=" hdb=ide-scsi"
>         read-only
> image=/boot/vmlinuz
>         label=failsafe
>         root=/dev/hdd6
>         initrd=/boot/initrd.img
>         append=" hdb=ide-scsi failsafe"
>         read-only
> other=/dev/fd0
>         label=floppy
>         unsafe

--
The warranty and liability expired as you read this message.
If the above breaks your system, it's yours and you keep both pieces.
Practice safe computing. Backup the file before you change it.
Do a,  man command_here or cat command_here, before using it.
 
 
 

boot problem -- update

Post by cedri » Mon, 10 Jun 2002 22:29:50


Quote:> other=/dev/hda1             <======= change this to match
> your install
>         label=win98
>         table=/dev/hda      <======= and this

Did this except I cannot write to floppy.
See post titled: Can't access CD or Floppy posted today.
There is also one titled: Segmentation fault.
Any help with these would be appreciated.
Also, I am told the floppy is write protedted while it is
not.

cedric

 
 
 

1. About to update RH5.2 kernel, howto update my boot disk?

Praise be, Redhat released RPM updates for compatibility with the 2.2
kernel... I'm going back for a nother try at getting up to the 2.2.1 kernel,
but I now need to use a boot disk with this old 486/bios. But that's another
story, lets just say I'm going to use a boot disk and live with it for now.

Anyhow, once I manage to get a zimage of the kernel done this afternoon,
what do I have to do to my boot disk to make sure my module symbolic links
and all that jazz are up to date for a multi-kernel lilo boot. I only dimly
had that process down with a bootable hard drive, and I'm a little foggy on
whether an exact analogous procedure exists for boot disks.

Thanks.

2. IDE hard drive > 2.1G problem

3. Solaris 2.4 x86 Boot Driver Update 7 installs and then fails to boot

4. Setting up a POP server

5. Problem updating dependencies while booting

6. Linux on a Titanium PowerBook

7. Slakware96 Boot Disk Update 2.0.0->2.0.20 Problems

8. problem using integer division in kernel modules

9. Boot problems after video card update

10. GRUB problem: cannot boot after updating Mandrake 8.1

11. boot after kernel-2.2.16-3 update problem

12. diskless boot hit error while booting kernel, cannot find boot device, dhcp problem?

13. can't boot after updating kernel to 2.4.0