Re-Size / Re-Partition Hard Drive
Yes. It is possible to resize or repartition your hard drive.
* If you have adequate space on / to fit the contents of /home, then:
* this scenario requires the use of gparted (download the bootable cdrom)
1) Create a new directory under "/" called something like "/home1"
# mkdir /home1
2) cp (some would recommend tar or cpio) your files from /home to /home1
# cp -prv /home/* /home1
3) un-mount the home partition.
# umount /home
4) Change /etc/fstab to reflect the absence of the /home mount
- no extra spaces or carriage returns in fstab.
# vi /etc/fstab
- find the line that has LABEL=/home and whack it.
- cursor to that line and press the letter "d" twice.
- press <esc>, then type :wq
5) verify that all of your home directory information came across.
6) destroy the old partition.
# fdisk /dev/hdc
7) boot from the gparted live cdrom (it's only around 30MB total to download, accept the defaults at boot.)
8) follow the prompts to move the swap, and enlarge/resize the / partition. (you can't move ext2 or ext3, but you can move your swap partition.)
* all you need to do is enlarge your / partition to consume the space once occupied by /home
Do the above, but you'll need to backup your /home directory to another location first.
1) do the fstab stuff from step 4 above.
2) backup your /home data
on source computer:
# tar czv /home | nc 192.168.0.101 9999
on destination (where you want to backup your information) computer:
# nc -l -p 9999 > home.tar.gz
3) run the repartition, dropping /home, expanding /.
4) restore your data:
on the restore computer 192.168.0.100:
# cd /
# nc -l -p 9999 | tar xvz
on backup computer 192.168.0.101:
# nc 192.168.0.100 9999 < home.tar.gz
<ip addresses are fictional>
(yes, the destination computer can be Windoze, but you'll need netcat for windows to pull it off. another free download. )
Let me know if you need any help.
None of these links contained viruses or malware upon my last inspection...
blah, blah...and there is no warranty. These instructions will probably cause irreparable damage to your data, possibly warping the physical disk, causing it to explode into mutliple flying platters of death. It could also be responsible for global warming, floods, and/or another ice age. Use at your own risk.