Re: hard drive migration
* Keziah W:
>
> I currently have Debian installed on a 10 GB partition of an IDE hard
> drive. I just got a bigger hard drive (also IDE), and have partitioned
> 30 GB for Debian. I want to move my existing Debian installation to
> the larger drive, but I am not sure if that will break the
> installation.
I am not sure if I understand you correctly, but you will definetely not
need 30GB for Debian. If you count your /home and /var as well, that's
another story.
> My root partition right now is hda2. The partition that I want to copy
> it to is hdb1, but after I copy it I would like to make it the master
> drive, so it will be hda1.
> So, basically, if the name of the root partition changes from hda2 to
> hda1, will that break my Debian installation?
Yes, if you do not remember to change your:
- /etc/fstab and
- lilo / grub configuration to tell your kernel where the new root
partition is.
In other words: it shouldn't be a problem.
> If that will work:
>
> What flags do I need to use with cp to copy the full contents of a
> drive, with the symlinks still pointing to the same files? Will "cp
> --no-dereference --preserve=all" work?
Not sure about this. But I remember there is a HOWTO for exactly this
situation (hard disk upgrade howto).
> Is there some way to do all this with the packaging system, maybe like
> installing the core onto the new partition, and then copying the
> packages from the old one?
You can do a minimal fresh install and then install every package you
had installed before. You get a list of currently installed packages
with 'dpkg --get-selestions' and you can use this output for 'dpkg
--set-selections' on your new installation.
J.
--
There is no justice in road accidents.
[Agree] [Disagree]
<http://www.slowlydownward.com/NODATA/data_enter2.html>
Reply to: