Michael C. Alonzo said:
> hi. i want to move my debian partition to another disk..
>
> here's my "fstab":
>
> /dev/hda1 ------------------> mandrake
> /dev/hda2 ------------------> extended
>       |_____  /dev/hda5 --> mandrake swap
>       |_____  /dev/hda6 --> mandrake /usr
>       |_____  /dev/hda7 --> mandrake /home
>       |_____  /dev/hda8 --> debian swap
>
> /dev/hda3 ------------------> debian /
> /dev/hda4 ------------------> debian /usr
>
> can i just backup /etc and /home then reinstall potato then
> `apt-get dist-upgrade`? or is it possible to mirror my debian
> partition (3 & 4) into the other disk (making it 1 & 2)?
>
> i need help on this.. any suggestions?

I'd make the new partitions, and make the needed filesystems on them.
(fdisk/cfdisk and mkfs/mke2fs).

Then just use "cp" with the "-a" (archive) switch, which preserves permissions,
ownership, etc.

The only two files you need to worry about are your kernel and /etc/fstab.  You
will need a boot disk so you can get up to run lilo to handle the kernel (also
note that on most systems the kernel must be in the first 1024 cyl, or about
8gb, and in any case must be accessable to the BIOS.)

The I think you will find the fstab changes to be obvious.  This is one of the
nice things about *NIX, partitions, disk types/interfaces/etc are abstracted,
and as long as the fstab is right everything else just works like magic.

-Peter



Reply via email to