Re: Moving linux to another partition?
On 20 Jun, lanceh@ibm.net wrote:
> I just installed a new harddrive and I wish to move linux over to it. Is there a way to do
> this without having to reinstall everything? The newest version of partition magic may do
> this but I do not have it and I am not that familiar with the Virtual File System that LInux
> uses since I am a new user to linux.
>
This topic is a religious debate amoung people so I will through my
$.02 in.
mount your new, freshly formated partition under some mount point say
/mnt.
If all your linux stuff is on one partion(another religious debate)
then this should work(as root of course)
cd / ; find . -xdev | cpio -vdump /mnt
mkdir /mnt/proc
see the man pages for find and cpio before proceeding so you know what
these do. FYI, -xdev is one option while -vdump is five options.
Then you will have to modify the /mnt/etc/fstab to reflect the new
partion. Modify your /mnt/etc/lilo.conf and rerun lilo if you use
lilo. Or modify what ever program you use to boot to point to the new
partion. You might want to have a rescue disk on hand just in case you
make a mistake. Reboot.
Also read /usr/doc/HOWTO/mini/Hard-Disk-Upgrade.gz for other ideas on
moving files around.
Disclaimer: Don't blame me! =)
Have fun,
Brian
--
Mechanical Engineering servis@purdue.edu
Purdue University http://www.ecn.purdue.edu/~servis
--
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to: