Problem with moving hard-disk

Problem with moving hard-disk

Post by Chao X » Sun, 31 Dec 1899 09:00:00



Hi,

I bought a new hard drive and moved my old drive to the second controller.
However, I won't be able to boot the Redhat Linux 5.0 installed on that
drive anymore. With the help of some expert, I managed to edit the
/etc/fstab file and rename the devices from /dev/hda to /dv/hdc. I also
changed the /etc/lilo.conf. But I still cannot boot the linux box. Error
happens during/after the re-mount of the root '/' directory into read/write.
It looks like the Linux cannot find the disk anymore and continues
'timeout'. Could somebody give me some idea and help me out of this? TIA.

Chao

p.s. Here is the contents of lilo.conf:

disk=/dev/hdc
     bios = 0x80
boot=/dev/hdc4
map=/boot/map
install=/boot/boot.b
prompt
timeout=50
other=/dev/hdc1
     label=win95
     table=/dev/hdc
image=/boot/vmlinuz-2.0.33
     label=linux
     root=/dev/hdc4
     read-only

 
 
 

Problem with moving hard-disk

Post by Conor Dal » Sun, 31 Dec 1899 09:00:00


Questions below...

--
Conor Daly



>Hi,

>I bought a new hard drive and moved my old drive to the second controller.
>However, I won't be able to boot the Redhat Linux 5.0 installed on that
>drive anymore. With the help of some expert, I managed to edit the
>/etc/fstab file and rename the devices from /dev/hda to /dv/hdc.

If you boot from a boot/root floppy, can you mount the /dev/hdc drive?  I
presume you can since this is what you would have had to do to do the
/etc/fstab and lilo.conf changes.

Quote:>I also changed the /etc/lilo.conf.

The line in your lilo.conf :

Quote:>     bios = 0x80

looks incomplete to me.   Kinda seems it should read something like bios =
0x803 or something like that.  I'll hafta boot Linux and check. Back in a
mo...

Back again.  Research inconclusive but I think that line is wrong somehow.

Quote:>But I still cannot boot the linux box. Error
>happens during/after the re-mount of the root '/' directory into
read/write.
>It looks like the Linux cannot find the disk anymore and continues
>'timeout'. Could somebody give me some idea and help me out of this? TIA.

>Chao

>p.s. Here is the contents of lilo.conf:

>disk=/dev/hdc                << What does this line mean?  Did it used to

read disk=/dev/hda ?
Quote:>     bios = 0x80                << This looks wrong to me but I'm not sure

about that.  Did you
                                                    need it when the old
disk was on the primary controller?
                                                    It would need to be
changed to reflect the disk being on the secondary
                                                    controller now.
Quote:>boot=/dev/hdc4            << Are you installing LILO on the start of the

Linux partition?
                                              If you want to boot Windows
also, you need to replace this with
                                                boot=/dev/hda
Quote:>map=/boot/map
>install=/boot/boot.b
>prompt
>timeout=50
>other=/dev/hdc1            << Did you move Windows onto the new Disk?  If

so, this should read
                                                other=/dev/hda1
Quote:>     label=win95
>     table=/dev/hdc           << This should be

                                                table=/dev/hda

Quote:>image=/boot/vmlinuz-2.0.33
>     label=linux
>     root=/dev/hdc4
>     read-only

Posting your /etc/fstab also would help.  Some more detail about what you
did when you got the new disk would also be useful.

1.  Did you move Windows to the new disk?
2.  Does Windows boot?
3.  Did you have LILO on the old disk for dual-boot?
4.  Do you want dual-boot with LILO on the new disk?
5.  Can you boot from a boot floppy?
6.  Can you boot from a previous boot floppy using the line 'root=/dev/hdc4'
?
7.  Did you make the changes for your swap partition in /etc/fstab also?
8.  If you replace the old drive on the Primary controller, will Linux boot
then?
9.  There was some question about LILO being able to boot a disk on the
secondary
      conrtoller.  Did you try to install the old HDD as Primary Slave?
10. Can you boot Linux if the disk is Primary/Slave?

 
 
 

Problem with moving hard-disk

Post by Chao X » Sun, 31 Dec 1899 09:00:00


Quote:

> 1.  Did you move Windows to the new disk?

Nothing on my old drives is touched. I installed a new version of Linux
(Redhat 6.1) on my new drive, and used a multi-boot manager to boot all the
OSs. New version of linux and the Win95 on my old drives works fine.
Unfortunately the old version of Linux cannot boot. Some of my developing
environments were setup on the old version of Linux. That's why I kept the
old version and tried to boot it.

Quote:> 2.  Does Windows boot?

Yes.

Quote:> 3.  Did you have LILO on the old disk for dual-boot?

Not exactly. I boot my Win95 from a boot manager, the LILO on the old disk
is only used for booting my linux, even though I did not remove the Win95
boot information.

Quote:> 4.  Do you want dual-boot with LILO on the new disk?

I already have a boot manager on the new disk.

Quote:> 5.  Can you boot from a boot floppy?

Never tried. I can mount the old linux file system in the new Linux 6.1.
From there I modified all those /etc/lilo.conf and /etc/fstab.

Quote:> 6.  Can you boot from a previous boot floppy using the line

'root=/dev/hdc4'?

Have no idea.

Quote:> 7.  Did you make the changes for your swap partition in /etc/fstab also?

What change do I need to make?

Quote:> 8.  If you replace the old drive on the Primary controller, will Linux

boot then?

Yes. That's the only way I can use the old linux.

Quote:> 9.  There was some question about LILO being able to boot a disk on the
> secondary  conrtoller.  Did you try to install the old HDD as Primary

Slave?

No. I've got a CD drive as the primary slave. Besides, I was told that the
master devices will be faster.

Quote:> 10. Can you boot Linux if the disk is Primary/Slave?

I do not know.

----------
The contents of /etc/fstab:

/dev/hdc4               /                       ext2    defaults        1 1
/dev/hdc3               /usr                    ext2    defaults        1 2
/dev/hdc2               swap                    swap    defaults        0 0
/dev/hdc1  /mnt/dos  vfat noauto,ro 0 0
/dev/fd0                /mnt/floppy             ext2    noauto          0 0
/dev/cdrom              /mnt/cdrom              iso9660 noauto,ro       0 0
none                    /proc                   proc    defaults        0 0

Chao


> Questions below...

> --
> Conor Daly



> >Hi,

> >I bought a new hard drive and moved my old drive to the second
controller.
> >However, I won't be able to boot the Redhat Linux 5.0 installed on that
> >drive anymore. With the help of some expert, I managed to edit the
> >/etc/fstab file and rename the devices from /dev/hda to /dv/hdc.

> If you boot from a boot/root floppy, can you mount the /dev/hdc drive?  I
> presume you can since this is what you would have had to do to do the
> /etc/fstab and lilo.conf changes.

> >I also changed the /etc/lilo.conf.

> The line in your lilo.conf :

> >     bios = 0x80

> looks incomplete to me.   Kinda seems it should read something like bios =
> 0x803 or something like that.  I'll hafta boot Linux and check. Back in a
> mo...

> Back again.  Research inconclusive but I think that line is wrong somehow.

> >But I still cannot boot the linux box. Error
> >happens during/after the re-mount of the root '/' directory into
> read/write.
> >It looks like the Linux cannot find the disk anymore and continues
> >'timeout'. Could somebody give me some idea and help me out of this? TIA.

> >Chao

> >p.s. Here is the contents of lilo.conf:

> >disk=/dev/hdc                << What does this line mean?  Did it used to
> read disk=/dev/hda ?
> >     bios = 0x80                << This looks wrong to me but I'm not
sure
> about that.  Did you
>                                                     need it when the old
> disk was on the primary controller?
>                                                     It would need to be
> changed to reflect the disk being on the secondary
>                                                     controller now.
> >boot=/dev/hdc4            << Are you installing LILO on the start of the
> Linux partition?
>                                               If you want to boot Windows
> also, you need to replace this with
>                                                 boot=/dev/hda
> >map=/boot/map
> >install=/boot/boot.b
> >prompt
> >timeout=50
> >other=/dev/hdc1            << Did you move Windows onto the new Disk?  If
> so, this should read
>                                                 other=/dev/hda1
> >     label=win95
> >     table=/dev/hdc           << This should be
>                                                 table=/dev/hda
> >image=/boot/vmlinuz-2.0.33
> >     label=linux
> >     root=/dev/hdc4
> >     read-only

> Posting your /etc/fstab also would help.  Some more detail about what you
> did when you got the new disk would also be useful.

> 1.  Did you move Windows to the new disk?
> 2.  Does Windows boot?
> 3.  Did you have LILO on the old disk for dual-boot?
> 4.  Do you want dual-boot with LILO on the new disk?
> 5.  Can you boot from a boot floppy?
> 6.  Can you boot from a previous boot floppy using the line
'root=/dev/hdc4'
> ?
> 7.  Did you make the changes for your swap partition in /etc/fstab also?
> 8.  If you replace the old drive on the Primary controller, will Linux
boot
> then?
> 9.  There was some question about LILO being able to boot a disk on the
> secondary
>       conrtoller.  Did you try to install the old HDD as Primary Slave?
> 10. Can you boot Linux if the disk is Primary/Slave?

 
 
 

1. How to move Linux to a bigger hard disk

Hi,
Is there an easy way to move an installed Linux from one IDE hard disk to a
new/bigger IDE hard disk without having to re-install everything?
I am using SuSE Linux 8.1 Professional.

Thanks and best regards,
Sebastian Daser
Infosystems Software & Service GmbH

2. Seyon problems

3. Replacing Hard Disk - Copying Linux system to new Hard Disk ????

4. How threads are implemented?

5. Moving root disk to new hard drive

6. Zip or Jaz

7. Q: SCSI MO disk and extra hard-disk

8. NFS question: exporting devices

9. Moving hard disk from SunOS to Solaris?

10. ***** Moving Linux to a new hard disk

11. Moving Linux Hard Disk

12. Help - moving SCO 3.2v4.2 to new hard disk

13. Moving of existing SCO Unix OS Rel 3.0 Version 2 to a new hard disk