I am running Xandros 2.0 (Debian Based) and would like to transfer everything to a larger hard drive. I am fairly new to Linux and am not sure how to go about this. I installed Xandros using the default file system (reiserfs).
Are you able to use both drives together (on laptops the answer is often: 'no'.)?
Else you plugin the drive, and visit your bios.
Boot linux.
Format the drive (fdisk /dev/hdb). (hdc, hdd)
First drive (master, single master) on controller 1 is hda.
hdb is slave at the first controller.
Second controller: master is hdc, slave is hdd.
Often a CD/DVD is connected to hdc, when one HD is present.
With fdisk, you make partitions, after that, you make filesystems:
mkfs.reiserfs /dev/hdb1
...
mkswap (?) /dev/hdb2
Keeping the old drive for swap might be an idea.
Copy everything from old to new.
Copy the section in /etc/fstab, and edit the 'root' entry in the second section - as well as the name.
Run lilo.
Do you use lilo?
If grub or something else: find someone else to help...
Reboot and see if it works.
You may modify the 'boot' - section now accordingly.
Or you switch drives (after halting and power off).
Keep the old data, as long as your new system isn't 100% working.
Don't forget to copy the modified lilo.conf to the new drive!
Since lilo writes to the boot sector, rerun lilo after switching the drives.
More Details, if you specify, where your question is.
You see - there are a few points to mention...
It might be worth looking at the program partimage, which I have sucessfully used to move from a 10G to a 40G drive. If you have another pc handy, the latest build can backup a partition accross the network.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.