Re: [gentoo-user] [OT] moving /usr to different partition

2005-03-31 Thread Dirk Heinrichs
Am Donnerstag, 31. März 2005 16:48 schrieb ext michael higgins:

> Well, I went to runlevel 1 and copied everything to my new partition,
> then renamed /usr to /usr_old and made my fstab changes.
>
> When I rebooted, there were problems with booting. I wanted to figure
> that out. I have a notion that some part of the boot process needs
> something under /usr, but I don't know what or how to find out.

If this is really the case, then you should file a bug. I can tell that I 
can boot fine with /usr on a separate volume and I do this since ages.

If you tell us what your problems are, maybe someone can help.

HTH...

Dirk
-- 
Dirk Heinrichs  | Tel:  +49 (0)162 234 3408
Configuration Manager   | Fax:  +49 (0)211 47068 111
Capgemini Deutschland   | Mail: [EMAIL PROTECTED]
Hambornerstraße 55  | Web:  http://www.capgemini.com
D-40472 Düsseldorf  | ICQ#: 110037733
GPG Public Key C2E467BB | Keyserver: www.keyserver.net


pgpd7dhebzgOY.pgp
Description: PGP signature


RE: [gentoo-user] [OT] moving /usr to different partition

2005-03-31 Thread Dave Nebinger
> > As to whether to move all of /usr or just parts of /usr, I have separate
> > partitions for /usr/local and /usr/portage but leave /usr on the root
> > partition.
> 
> Okay. I can live with that, if I know it's possible. I just need a little
> extra space, as the disk use approaches 90%. Moving /usr/local should be
> fine then.

You should be safe moving anything that is not relied upon before the
remaining filesystems are mounted, i.e. /usr/X11R6, /usr/kde {perhaps gnome
is installed in the same way but I'm not sure}, /usr/qt, etc.

That said, the /usr portion of the filesystem should remain pretty static
once your system is constructed.  For the most part updates will replace
what's already there, so you may be safe in leaving it float around the 90%
usage limit.


--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] [OT] moving /usr to different partition

2005-03-31 Thread michael higgins
On Thu, 31 Mar 2005 14:15:36 +0100
"Dave Nebinger" <[EMAIL PROTECTED]> wrote:
> I want more space under /, so I tried to move /usr to a different
> partition - and (IIRC) had a 'failure to unmount the initrd' on boot...
> and no boot.
> 
> So, is there a safe way to do this?

> /usr is a little tricky because it will usually have open processes on it.
> You can move /usr to a new partition as you have done with /opt, but you'll
> need to do it from the live cd.  That's going to be the only way you can
> delete the old /usr folder structure.

Well, I went to runlevel 1 and copied everything to my new partition, then 
renamed /usr to /usr_old and made my fstab changes.

When I rebooted, there were problems with booting. I wanted to figure that out. 
I have a notion that some part of the boot process needs something under /usr, 
but I don't know what or how to find out.

[snip]

> As to whether to move all of /usr or just parts of /usr, I have separate
> partitions for /usr/local and /usr/portage but leave /usr on the root
> partition.

Okay. I can live with that, if I know it's possible. I just need a little extra 
space, as the disk use approaches 90%. Moving /usr/local should be fine then. 

I've already moved /usr/portage with flags in make.conf.

[8<]

Thanks for your reply,

-- 
|\  /|   |   |  ~ ~  
| \/ |   |---|  `|` ?
||ichael |   |iggins\^ /
michael[dot]higgins[at]snet[dot]net 

--
gentoo-user@gentoo.org mailing list



RE: [gentoo-user] [OT] moving /usr to different partition

2005-03-31 Thread Dave Nebinger
> I want more space under /, so I tried to move /usr to a different
> partition - and (IIRC) had a 'failure to unmount the initrd' on boot...
> and no boot.
> 
> So, is there a safe way to do this?

/usr is a little tricky because it will usually have open processes on it.
You can move /usr to a new partition as you have done with /opt, but you'll
need to do it from the live cd.  That's going to be the only way you can
delete the old /usr folder structure.

1. boot from live cd.
2. create new partition for /usr if you haven't done so already.
3. mount your current root partition.
4. cd to where your root partition is mounted, i.e. /mnt/gentoo.
5. tar cvfp usr.tar usr
6. mount your new partition, say /mnt/usr.
7. cd /mnt/usr
8. tar xvpf /mnt/gentoo/usr.tar
9. /bin/rm -rf /mnt/gentoo/usr /mnt/gentoo/usr.tar
10. edit /mnt/gentoo/etc/fstab to mount your new partition as /usr.
11. reboot and enjoy.

As to whether to move all of /usr or just parts of /usr, I have separate
partitions for /usr/local and /usr/portage but leave /usr on the root
partition.

Partitioning is really up to you to determine how to set things up.  I don't
know if it is still the case, but I come from those years where filling up
the root partition meant that you couldn't boot into the system, so I try to
isolate those areas that could possibly grow w/o my knowing it and keep them
off of the root partition (i.e. especially /home, /var{/tmp}, and /tmp).



--
gentoo-user@gentoo.org mailing list