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

Re: impact of no /tmp



On 15 Sep 2002,, Ben Goren wrote:

> > I made a really big /home partition on this system (~15 GB) that
> > currently  is using  only 2.5  MB. Couldn't  I just  tar up  the
> > entire /home directory, copy the  tar file to another partition,
> > and re-partition  /home into /home and  /tmp... Then, un-tar the
> > file back into /home to restore it?
> 
> Yup. Start with `tar cfzv  /var/tmp/home.tgz /home`. umount /home,
> use  disklabel to  create  the  slices, use  newfs  to create  the
> filesystems, 

I'm still a little confused after reading the newfs man page... after I 
create two slices from my current single slice with disklabel, I need 
to create file systems inside them both, right?

I have no clue re most of the newfs parameters (hope defaults are OK), 
but I think the proper incantations are:
# newfs /dev/wd0f
# newfs /dev/wd0g

The current size of /home is 14,938,922 blocks (1K-blocks). Do I need 
to tell newfs about the block size, or does it figure this out from the 
new disklabel? Any clues are appreciated.

>              mount them,  and then don't forget the  ``p'' flag to
> tar when you restore the files. Look  to see what's in /tmp before
> you mount the new partition. Don't  forget to edit /etc/fstab, and
> for  Heaven's sake,  don't  forget  to reboot  to  make sure  that
> everything works as advertised.
> 
> Now  would also  be an  excellent time  to back  up anything  else
> you  care about  on the  computer. One  slip of  the fingers  with
> disklabel....

Thanks,
Jay Moore