Skip to contentSkip to conversation

Moving Hard Drive

DISCUSSION Peter 6 participants 12 messages Jan 16, 2004 – Jan 20, 2004

lore
Share & tools
lore

Peter

author
#0 lore raw

Hi,

I got myself a new larger hard drive which is presently a secondary master hdc. On it I have RH9 and SW9.1 the latter doing the booting with lilo.

I want to make now this drive the master drive by which I assume it will become hda.

Is it correct then that before doing the switch I will have to change in /etc/fstab and lilo.conf all what is labeled hdc to hda? Boot initially from a floppy into SW run lilo and I should be set with the new drive as master.

Thanks & regards

Signature · 11 lines
Peter





-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
#1 lore raw
Quoted 10 lines · Peter

Hi,

I got myself a new larger hard drive which is presently a secondary master hdc. On it I have RH9 and SW9.1 the latter doing the booting with lilo.

I want to make now this drive the master drive by which I assume it will become hda.

Is it correct then that before doing the switch I will have to change in /etc/fstab and lilo.conf all what is labeled hdc to hda?

Yes, certainly for fstab and I'm pretty sure for lilo.conf too (I use Grub myself and it would apply to Grub's conf file 'menu.lst').
I'd first make a copy of the fstab and conf files just in case something goes wrong and you want to change back.

Quoted 3 lines

Boot initially
from a floppy into SW run lilo and I should be set with the new drive as master.

That would work OK with Grub so I guess it will work with Lilo.

Re the boot floppy, if it was created when you installed your system, it may be set to boot your system on hdc and may fail when you move it to hda. I find it handy to have a Grub boot floppy which I can use to boot a system
'anywhere', I don't know if Lilo makes a similar boot floppy. I also find
it handy to keep a spare floppy 'rescue disk' like Toms Root Boot, RIP or Leka, or an install CD with a 'Rescue' option.

Btw, I'm not sure what distro 'SW' is but I think fstab, Lilo and Grub work nearly the same way in all distros.

cr
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

author
#2 lore raw

Thanks!

Quoted 3 lines · Peter
Quoted 3 lines

Boot initially
from a floppy into SW run lilo and I should be set with the new drive as master.

Quoted 3 lines · [email protected] said:

Re the boot floppy, if it was created when you installed your system, it may be set to boot your system on hdc and may fail when you move it to hda.

I can tell the floppy to boot into hda* and in SlackWare (there is the SW) I have anyhow a bootable live rescue disc.

Regards

Signature · 7 lines
Peter

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
#3 lore raw
Quoted 5 lines · Peter

I can tell the floppy to boot into hda* and in SlackWare (there is the SW) I have anyhow a bootable live rescue disc.

Regards

Since you are on lilo , it would be easier to type on the lilo prompt root=/dev/hda(something - your root partiton)
for it to boot thru instaed of all the fuss with boot disks and rescue cds . then edit fstab and lilo.conf

Joy

Quoted 3 lines

--------------------------------------------------------------------------------------------------------
A life without purpose is like a bird that never learnt to fly....... I am the bird that regularly flies Lufthansa

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

#4 lore raw
Quoted 7 lines · joy
Quoted 4 lines · Peter

I can tell the floppy to boot into hda* and in SlackWare (there is the SW) I have anyhow a bootable live rescue disc.

Regards

Since you are on lilo , it would be easier to type on the lilo prompt

Thats the point, if he "moves" /dev/hda to /dev/hdc then he "wont" have lilo on his MBR, or at least not under normal curcumstancies.

One can place lilo where he/she wants via /etc/lilo.conf, leave disks where they are and use the mobo's boot option to choose which ever disk to boot from, if of course one has a recent motherboard and a BIOS which supports booting from all devices, that option has been around for a few years now so chances are there is no real need to move devices around anyway.

Quoted 6 lines

root=/dev/hda(something - your root partiton)
for it to boot thru instaed of all the fuss with boot disks and rescue cds .
then edit fstab and lilo.conf

Joy

Signature · 15 lines
If the Linux community is a bunch of theives because they
try to imitate windows programs, then the Windows community
is built on organized crime.

Regards Richard
[email protected]
http://people.zeelandnet.nl/pa3gcu/



-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
author
#5 lore raw
Quoted 6 lines
Quoted 5 lines · Peter

Is it correct then that before doing the switch I will have to change in /etc/fstab and lilo.conf all what is labeled hdc to hda?
Boot initially
from a floppy into SLackWare run lilo and I should be set with the new drive as master.

Quoted 1 line · [email protected] said:

Since you are on lilo, it would be easier to type on the lilo prompt

Since hdc was moved to hda there is initially no more MBR before I run lilo.

Therefore what Peter wrote above correctly replaced the old 5 Gb HD with the new 20 Gb HD as Master.

Signature · 9 lines
Peter



-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
#6 lore raw
Quoted 14 lines · Peter
Quoted 9 lines
Quoted 6 lines · Peter

Is it correct then that before doing the switch I will have to change in /etc/fstab and lilo.conf all what is labeled hdc to hda? Boot initially
from a floppy into SLackWare run lilo and I should be set with the new drive
as master.

[email protected] said:

Quoted 11 lines
Quoted 3 lines

Since you are on lilo, it would be easier to type on the lilo prompt

Since hdc was moved to hda there is initially no more MBR before I run lilo.

Therefore what Peter wrote above correctly replaced the old 5 Gb HD with the new 20 Gb HD as Master.

Yes, I got the catch. thanks for enlightening me about the matter.
But I have a doubt....
As pa3gcu said couldn't you use the bios' boot option to boot thru the other drive and since it's lilo.conf is pointing to hdc, could'nt you then pass the root= parameter?

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

#7 lore raw
Quoted 5 lines · joy

Yes, I got the catch. thanks for enlightening me about the matter. But I have a doubt....
As pa3gcu said couldn't you use the bios' boot option to boot thru the other drive and since it's lilo.conf is pointing to hdc, could'nt you then pass the root= parameter?

When using the BIOS option to boot other disks one needs to install lilo on that disk's MBR first, so that means trying to pass root= is not needed because the BIOS swaps disks around for you. Rather like the lilo option when tricking windows into thinking its installed on /dev/hdaX when in fact its on /dev/hdbX as per section, "Booting a foreign operating system" of the lilo README.
So all that means we now need to have lilo installed on all bootable disks MBR's. To do that simply edit lilo.conf and set;
boot= to /dev/hd(whichever disk) in this case /dev/hdc .

Signature · 15 lines
If the Linux community is a bunch of theives because they
try to imitate windows programs, then the Windows community
is built on organized crime.

Regards Richard
[email protected]
http://people.zeelandnet.nl/pa3gcu/



-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
author
#8 lore raw
Quoted 3 lines · [email protected] said:

So all that means we now need to have lilo installed on all bootable disks MBR's. To do that simply edit lilo.conf and set; boot= to /dev/ hd(whichever disk) in this case /dev/hdc

It's that simple and I should have figured it out myself. However, I remember in my early Linux days somebody had told that the boot must be on hda.

Since I removed my old drive, going back to me old machine, would it then not be necessary to move hdc to hda, instead just leave it where it is? Thus the secondary master becomes primary master or not?

Signature · 7 lines
Peter

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
#9 lore raw
Quoted 6 lines · Peter

It's that simple and I should have figured it out myself. However, I remember in my early Linux days somebody had told that the boot must be on hda.

Since I removed my old drive, going back to me old machine, would it then not be necessary to move hdc to hda, instead just leave it where it is? Thus the secondary master becomes primary master or not?

As long the connection on the mobo is the secondary, it wont be moved to hda. you would know wether it is a primary or secondary master during the h/w check bfore lilo is loaded

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

#10 lore raw
In reply to Peter
Quoted 5 lines · Peter

Hi,

I got myself a new larger hard drive which is presently a secondary master hdc. On it I have RH9 and SW9.1 the latter doing the booting with lilo.

Quoted 7 lines

I want to make now this drive the master drive by which I assume it will become hda.

Is it correct then that before doing the switch I will have to change in /etc/fstab and lilo.conf all what is labeled hdc to hda? Boot initially from a floppy into SW run lilo and I should be set with the new drive as master.

yes.
It's correct.
You have to modify also /etc/lilo.conf

Quoted 8 lines

Thanks & regards
--
Peter

Quoted 6 lines

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

--
"A mouse is a device used to point at
the xterm you want to type in".
Kim Alm on a.s.r.
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

#11 lore raw
In reply to Peter

Hi, Peter:

You didn't mention that you had system files on /dev/hdc.
If it has been simply installed, you should be able to copy all of your system files from your root system to this new file system. Then use fdisk to make it bootable.

Perhaps

mount /dev/hdc /mnt
cp -x / /mnt
umount /mnt

would work?

I am assuming that you could then simply swap IDE connectors
on the mobo.

HTH, Chuck

Quoted 17 lines · Peter

Hi,

I got myself a new larger hard drive which is presently a secondary master hdc. On it I have RH9 and SW9.1 the latter doing the booting with lilo.

I want to make now this drive the master drive by which I assume it will become hda.

Is it correct then that before doing the switch I will have to change in /etc/fstab and lilo.conf all what is labeled hdc to hda? Boot initially from a floppy into SW run lilo and I should be set with the new drive as master.

Thanks & regards
--
Peter

Quoted 5 lines

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs