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

Re: shrink /home



s. keeling wrote:
> 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, 
What's the sense in shrinking an empty partition? Just make the
partition the size you need it, and then format it.
I.E. 1.-5. as you did propose.

Till
> restore data, mount it on /home.  mkfs will do 2b
> above, btw.  Doesn't save you much, I suppose, but every bit helps.
>
>
>   



Reply to: