Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Installing a Larger Hard Drive 1

Status
Not open for further replies.

rjmort

Technical User
Jul 18, 2004
1
US
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...

seeking a job as java-programmer in Berlin:
 
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.

---

"I'm just here to regulate funkyness"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top