[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: shrink /home



Marcelo Chiapparini <chiappa@uerj.br>:
> 
>  I need to shrink my /home partition (/home has its own partition in the
>  system). It is formatted in xfs, so shrink is not supported. In order to
>  shrink it I am planning to use gparted in the following way:
> 
>  1 - To do a backup of all files in the /home directory, including the
>  hidden ones.
> 
>  2 - Unmount the partition
> 
>  2 - Erase the partition
> 
>  3 - Create a new partition with the desired smaller size and filesystem
> 
>  4 - Mount it as /home
> 
>  5 - Restore all files from the backup

Is shrink supported in other fs types?  If so, do steps 1 & 2, mkfs -t
ext[23], shrink it, restore data, mount it on /home.  mkfs will do 2b
above, btw.  Doesn't save you much, I suppose, but every bit helps.


-- 
Any technology distinguishable from magic is insufficiently advanced.
(*)    http://www.spots.ab.ca/~keeling          Linux Counter #80292
- -    http://www.faqs.org/rfcs/rfc1855.html    Please, don't Cc: me.



Reply to: