Hi, On Mon, Jun 23, 2008 at 8:10 PM, Kapil Hari Paranjape <[EMAIL PROTECTED]> wrote:
> More seriously, with a rescue image you can resize any partition as > long as you do it carefully. > > True. You can do funky things with your Free (AIFB) OS. Once I faced the same problem described here. I had gone crazy and created separate /boot, /home, /var and /tmp. After installing packages left, right and centre one fine day, /usr fills up and / has no space. I then picked up a partition and moved its contents elsewhere. In this case, I can see there are several mounted on /media/*. I then did this to format the new partition and copy the contents from /usr to the new place: # mkfs.ext3 /dev/hdaX # mount /dev/hdaX /mnt/tmp # find /usr -depth | cpio -apdmv /mnt/tmp # umount /mnt/tmp I then booted the sytem via a live/install CD and mounted the old root FS on to /mnt/tmp and did these things: This is just in case you screw things up, rename the old /usr # mv /mnt/tmp/usr /mnt/tmp/usr-old # mkdir /mnt/tmp/usr Now I opened the rootfs's fstab and added an entry to mount the newly copied /usr into place: /dev/hdaX /usr ext3 defaults 0 0 After unmounting, I rebooted into the new system, ran a bunch of programs to see everything was OK. then ran the final command to get free space bliss: # rm -fr /usr-old Now a days, I just have one monolithic "/" partition ranging a few 100 GBs. But constrained resources did teach me lessons in partitoning, custom kernels and good system administration. HTH, -- Shuveb Hussain B I N A R Y K A R M A Chennai, India. Phone : +91 44-64621656 Mobile: +91 98403-80386 http://www.binarykarma.com _______________________________________________ To unsubscribe, email [EMAIL PROTECTED] with "unsubscribe <password> <address>" in the subject or body of the message. http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
