Re: copy hard drive
From: Bob Tennent (BobT_at_cs.queensu.ca)
Date: 09/01/03
- Next message: ERACC: "Re: Newsreader - read multiple but post thru one?"
- Previous message: Xyerp: "Re: copy hard drive"
- In reply to: Rob: "copy hard drive"
- Next in thread: Marc: "Re: copy hard drive"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 1 Sep 2003 12:22:34 GMT
On Mon, 01 Sep 2003 02:57:04 GMT, Rob wrote:
> I have a old 6 gig H/D that is about to give up the ghost. I have Mandrake
> 9.1 on it. I bought a new 40 gig and would like to copy over the 6 gig
> COMPLETELY, system files, lilo, everything. Then I could remove the 6 and
> boot up off the 40 just like I do now. Is this posible? If so, how? I know
> how to set them up hardware wise it's just the copy that I don't know.
You first have to partition the new drive and set up file systems on
those partitions. The best tool for this is parted. Remember to create a
swap partition as well.
Then mkdir /new and mount the root partition of the new drive there.
Create sub-directories as necessary for the other non-swap partitions,
such as
/new/boot
/new/home
etc., and mount those as well.
Then copy your existing file systems (not including /new!) to /new using
cp -a. Don't copy /proc but remember to mkdir /new/proc. You'll probably
want to edit /new/etc/fstab and /new/etc/lilo.conf.
You can then do
chroot /new
run lilo and re-boot, but first make sure you have a working boot floppy
or CD to handle a possible kernel panic or lilo failure :+)
Bob T.
- Next message: ERACC: "Re: Newsreader - read multiple but post thru one?"
- Previous message: Xyerp: "Re: copy hard drive"
- In reply to: Rob: "copy hard drive"
- Next in thread: Marc: "Re: copy hard drive"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|