All of lore.kernel.org
 help / color / mirror / Atom feed
* Moving Hard Drive
@ 2004-01-16 10:56 Peter
  2004-01-16 20:49 ` cr
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Peter @ 2004-01-16 10:56 UTC (permalink / raw)
  To: linux-newbie

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





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

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Moving Hard Drive
  2004-01-16 10:56 Moving Hard Drive Peter
@ 2004-01-16 20:49 ` cr
  2004-01-17  3:16   ` Peter
  2004-01-16 22:26 ` caszonyi
  2004-01-16 23:44 ` chuck gelm net
  2 siblings, 1 reply; 12+ messages in thread
From: cr @ 2004-01-16 20:49 UTC (permalink / raw)
  To: Peter, linux-newbie

On Fri, 16 Jan 2004 23:56, Peter wrote:
> 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.

> 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 majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Moving Hard Drive
  2004-01-16 10:56 Moving Hard Drive Peter
  2004-01-16 20:49 ` cr
@ 2004-01-16 22:26 ` caszonyi
  2004-01-16 23:44 ` chuck gelm net
  2 siblings, 0 replies; 12+ messages in thread
From: caszonyi @ 2004-01-16 22:26 UTC (permalink / raw)
  To: Peter; +Cc: linux-newbie

On Fri, 16 Jan 2004, Peter wrote:

> 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.
>

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

> Thanks & regards
> --
> Peter
>
>
>
>
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
> the body of a message to majordomo@vger.kernel.org
> 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 majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Moving Hard Drive
  2004-01-16 10:56 Moving Hard Drive Peter
  2004-01-16 20:49 ` cr
  2004-01-16 22:26 ` caszonyi
@ 2004-01-16 23:44 ` chuck gelm net
  2 siblings, 0 replies; 12+ messages in thread
From: chuck gelm net @ 2004-01-16 23:44 UTC (permalink / raw)
  To: Peter; +Cc: linux-newbie

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

Peter wrote:
> 
> 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
> 
> -
> To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
> the body of a message to majordomo@vger.kernel.org
> 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 majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Moving Hard Drive
  2004-01-16 20:49 ` cr
@ 2004-01-17  3:16   ` Peter
  2004-01-17  6:20     ` joy
  0 siblings, 1 reply; 12+ messages in thread
From: Peter @ 2004-01-17  3:16 UTC (permalink / raw)
  To: cr; +Cc: linux-newbie

Thanks!

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


cr@orcon.net.nz 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
-- 
Peter

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

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Moving Hard Drive
  2004-01-17  3:16   ` Peter
@ 2004-01-17  6:20     ` joy
  2004-01-17  9:53       ` pa3gcu
  0 siblings, 1 reply; 12+ messages in thread
From: joy @ 2004-01-17  6:20 UTC (permalink / raw)
  To: Peter; +Cc: linux-newbie

Peter wrote:

>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

> --------------------------------------------------------------------------------------------------------
> 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 majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Moving Hard Drive
  2004-01-17  6:20     ` joy
@ 2004-01-17  9:53       ` pa3gcu
  2004-01-19  7:14         ` Peter
  0 siblings, 1 reply; 12+ messages in thread
From: pa3gcu @ 2004-01-17  9:53 UTC (permalink / raw)
  To: gracecott, Peter; +Cc: linux-newbie

On Saturday 17 January 2004 07:20, joy wrote:
> Peter wrote:
> >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.

> 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


-- 
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
pa3gcu@zeelandnet.nl
http://people.zeelandnet.nl/pa3gcu/



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

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Moving Hard Drive
  2004-01-17  9:53       ` pa3gcu
@ 2004-01-19  7:14         ` Peter
  2004-01-19 11:16           ` joy
  0 siblings, 1 reply; 12+ messages in thread
From: Peter @ 2004-01-19  7:14 UTC (permalink / raw)
  To: linux-newbie

> Peter wrote:
> > 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.

gracecott@sancharnet.in 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.


-- 
Peter



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

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Moving Hard Drive
  2004-01-19  7:14         ` Peter
@ 2004-01-19 11:16           ` joy
  2004-01-19 14:37             ` pa3gcu
  0 siblings, 1 reply; 12+ messages in thread
From: joy @ 2004-01-19 11:16 UTC (permalink / raw)
  To: Peter; +Cc: linux-newbie

Peter wrote:

>>Peter wrote:
>>    
>>
>>>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.
>>>      
>>>
>
>gracecott@sancharnet.in 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.
>
>
>  
>
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 majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Moving Hard Drive
  2004-01-19 11:16           ` joy
@ 2004-01-19 14:37             ` pa3gcu
  2004-01-20  2:14               ` Peter
  0 siblings, 1 reply; 12+ messages in thread
From: pa3gcu @ 2004-01-19 14:37 UTC (permalink / raw)
  To: gracecott, Peter; +Cc: linux-newbie

On Monday 19 January 2004 12:16, joy wrote:
> 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 .

-- 
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
pa3gcu@zeelandnet.nl
http://people.zeelandnet.nl/pa3gcu/



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

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Moving Hard Drive
  2004-01-19 14:37             ` pa3gcu
@ 2004-01-20  2:14               ` Peter
  2004-01-20  3:44                 ` joy
  0 siblings, 1 reply; 12+ messages in thread
From: Peter @ 2004-01-20  2:14 UTC (permalink / raw)
  To: linux-newbie


pa3gcu@zeelandnet.nl 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?

-- 
Peter

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

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Moving Hard Drive
  2004-01-20  2:14               ` Peter
@ 2004-01-20  3:44                 ` joy
  0 siblings, 0 replies; 12+ messages in thread
From: joy @ 2004-01-20  3:44 UTC (permalink / raw)
  To: Peter; +Cc: linux-newbie

Peter wrote:

>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 majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2004-01-20  3:44 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-16 10:56 Moving Hard Drive Peter
2004-01-16 20:49 ` cr
2004-01-17  3:16   ` Peter
2004-01-17  6:20     ` joy
2004-01-17  9:53       ` pa3gcu
2004-01-19  7:14         ` Peter
2004-01-19 11:16           ` joy
2004-01-19 14:37             ` pa3gcu
2004-01-20  2:14               ` Peter
2004-01-20  3:44                 ` joy
2004-01-16 22:26 ` caszonyi
2004-01-16 23:44 ` chuck gelm net

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.