On Monday 17 February 2003 01:51 am, Gil Katz wrote: > Hi > i had one HD 10GB which i splitt to 3 partitions > /, swap and /home > after a while i bought a new HD 80GB and i moved /home to it, so now i have > one big empty partition that i want to transfer its size to swap and to / > should i delete the partition and then resize both / and swap or there is > another or a better way? > Gil
Well with /home being a huge partition, there is a simple way and an elegant way. You will have o decide which is "better" The simple way is to drop in your install disk and reinstall, not formatting /home and letting diskdrake do the carving. The elegant way is to do this $mkdir -p /home/temproot $su password: (your root password) # cp -a / /home/temproot # emacs /home/temproot/etc/fstab remove the / and /home entries in /etc/fstab by commenting them out, but remember the partition numbers # chroot /home/temproot # fdisk /dev/hda (or diskdrake) (make the / and swap partitions... I will assume you made / at /dev/hda1) # mkdir -p /mnt/tmp # mount /dev/hda1 /mnt/tmp # emacs /etc/fstab restore your entries for /home and / by deleting the sharp signs you used to comment them out. # cp -a / /mnt/tmp # chroot /mnt/tmp # mount /home # rm -r /home/temproot -f # exit Please note that the fdisk will work if you have a separate /usr but the diskdrake will not because /usr is inaccessible after the 1st chroot. note also that a reboot after the copy of / to its new demesnes will work but will leave a copy at /home/temproot Civileme (Muses) Perhaps we should say there is a simple method and an ugly one
Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
