public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] moving /usr
@ 2006-03-10 14:53 Mark Knecht
  2006-03-10 15:01 ` [gentoo-user] " Mark Knecht
                   ` (2 more replies)
  0 siblings, 3 replies; 17+ messages in thread
From: Mark Knecht @ 2006-03-10 14:53 UTC (permalink / raw
  To: gentoo-user

Hi,
   I have an out of disk space problem machine. It looks like moving
/usr to a new partition would be the best thing to do. How can I do
this safely?

Thanks,
Mark

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 17+ messages in thread
* Re: [gentoo-user] moving /usr
@ 2006-03-10 15:43 Sergio Polini
  2006-03-10 17:43 ` Mark Knecht
  0 siblings, 1 reply; 17+ messages in thread
From: Sergio Polini @ 2006-03-10 15:43 UTC (permalink / raw
  To: gentoo-user

Mark Knecht:
> http://forums.gentoo.org/viewtopic.php?t=121164
> 
> I'll proceed in this manner unless I hear back that there is some
> problem with doing it this way.

There are several hints in that topic.
I did move my /usr to a new partition, so I'ld say:
1. create and format your new partition;
2. mount your new partition in /mnt/whatever;
3. copy the content of your /usr into this partition by:
cp -a /usr/* /mnt/whatever (the "-a" option is important; look at man
cp);
4. reboot frome a livecd;
5. mount your root filesystem and edit /etc/fstab:
/dev/hdXY /usr etc.
6. reboot from the hard disk to be sure that your new partition is well
mounted and works; run "mount" to check that /usr is on your new
partition; test this in other ways to be really sure ;-)
7. reboot again from a live cd;
8. mount your root filesystem in /mnt/something;
9. delete the old /usr directory to free the unused space:
cd /mnt/something/usr
rm -rf *
NB: do not delete /usr itself, just its contents, as /usr is the mount
point for the new partition;
10. cross your fingers and reboot from the hard disk ;-)

HTH
Sergio



	

	
		
___________________________________ 
Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB 
http://mail.yahoo.it
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2006-03-11 18:41 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-10 14:53 [gentoo-user] moving /usr Mark Knecht
2006-03-10 15:01 ` [gentoo-user] " Mark Knecht
2006-03-10 16:31   ` Ralph Slooten
2006-03-10 16:45     ` Mark Knecht
2006-03-10 19:04       ` Ralph Slooten
2006-03-10 15:04 ` [gentoo-user] " Ghaith Hachem
2006-03-10 16:16 ` Hemmann, Volker Armin
  -- strict thread matches above, loose matches on Subject: below --
2006-03-10 15:43 Sergio Polini
2006-03-10 17:43 ` Mark Knecht
2006-03-10 17:56   ` Alexander Skwar
2006-03-10 18:05   ` Eric Bliss
2006-03-10 11:17     ` Josh Helmer
2006-03-10 18:39       ` Eric Bliss
2006-03-10 18:43         ` John Jolet
2006-03-10 18:49   ` Sergio Polini
2006-03-10 19:37     ` Mark Knecht
2006-03-11 18:36       ` Mark Knecht

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox