Reallocating space for existing install
Debian/Woody kernel 2.4.1
Structure as follows: hda1 -- Win32, 6 gb hda2 -- swap, 170 mb hda3 -- ext2 primary, 1.2 gb hdb1 -- Win32, 30 gb hdb5 -- Win32, 30 gb hdb1 is soon to be an ext2 or ext3 partition, in part or all of it. My problem, however, is this: How do I force my current install to use the extra space for something like, say, /usr, which is 673 mb(!!) on my miserable 1.2 gb partition? |
just change the partition type in fdisk to type 83 (linux)
fdisk /dev/hdb1 t 1 83 format the partition with.. mke2fs /dev/hdb1 create journal to convert to ext3.. tune2fs -j /dev/hdb1 mount it somewhere.. mkdir /somewhere mount /dev/hdb1 /somewhere copy /usr files to it.. cd /usr tar -c . | (cd /somewhere; tar -x) now a copy of your files in /usr will be in /somewhere mount the partition to /usr.. umount /somewhere mount /dev/hdb1 /usr update your /etc/fstab file to mount the partition at boot.. /dev/hdb1 /usr ext3 defaults 1 2 note: you can delete the files in /usr to reclaim disk space in / do it like this.. umount /usr rm -rf /usr mkdir /usr mount /usr |
Ah-HAH!
Thank you muchly, I get it now. |
Quote:
/dev/hda5 is a 3.5G ext3 partition, created through the install of Mandrake. Mandrake was later killed (didn't have time to mess with it), leaving an empty 3.5G partition. mount /dev/hda5 /h cd /usr cp -r * /h umount /h mount /dev/hda5 /usr Then... Here comes the problem: cd / umount /usr rm -rf /usr mkdir usr mount /dev/hda5 /usr Space not reclaimed. /dev/hda3 is still at 100% full. I've updated /etc/fstab, so the next thing I'll be trying is a reboot... Suggestions? Corrections? |
are you sure /usr was on hda5 to start with?
I don't see how it could still be using space if you actually deleted it. try du -c /usr to see what space would be saved |
Quote:
|
cool
|
All times are GMT -5. The time now is 07:05 AM. |