shrink /home

2007-06-21 Thread Marcelo Chiapparini
Hi,

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

Are steps 1-5 the correct ones?

Thanks in advance

Marcelo

-- 
Marcelo Chiapparini
DFT-IF/UERJ
[EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: shrink /home

2007-06-21 Thread s. keeling
Marcelo Chiapparini [EMAIL PROTECTED]:
 
  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.htmlPlease, don't Cc: me.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: shrink /home

2007-06-21 Thread Till Wimmer
s. keeling wrote:
 Marcelo Chiapparini [EMAIL PROTECTED]:
   
  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.


   


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]