Re: redimensioning /usr

From: Lew Pitcher (lpitcher_at_sympatico.ca)
Date: 07/06/04


Date: Mon, 05 Jul 2004 22:06:07 -0400


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Michael Black wrote:
> Lew Pitcher (Lew.Pitcher@td.com) writes:
>
>>-----BEGIN PGP SIGNED MESSAGE-----
>>Hash: SHA1
>>
>>Patrick Drouin wrote:
>>
>>
>>>Hello everyone,
>>>
>>>/usr has grown too small on my system. I have a large swap partition that
>>>sits at the end of the drive that I could make smaller. If I delete my swap
>>>file, is there any way I can safely redimension my /usr without zapping the
>>>data on it?
>>
>>In essence, no.
>>
>>
>>>id then recreate the awap file at the end of the drive when I'm
>>>done...
>>>
>>>Any suggestions as far as process and tools are more than welcome.
>>
>>Take some spare disk space, and build a Linux fs partition in it
>>
>>Mount the new partition, and copy a branch of the /usr fs tree to it (say
>>/usr/local)
>>
>>rm -rf the branch just copied, then mkdir an empty branch
>>(rm -rf /usr/local ; mkdir /usr/local )
>>
>>unmount the partition, remount it in place of the branch
>>(umount ... ; mount ... /usr/local)
>>
>>adjust your fstab to show the new mount
>>
>>
>
> And isn't this the case for not allocating all your hard disk space
> when you do an install?

Yes. I've considered /not/ partitioning, but I determined that a partitioned
setup had more advantages than a 'flat' setup.

With partitioning, you can reserve space for future use, and limit space where
it makes sense to. You position yourself for reasonable backups, and
reasonable filesystem check times (imagine the time it would take to fsck a
160Gb flat space at startup 8-S ). You seperate critical subtrees from
disposable ones, optimize filesystems to match data (do you /really/ need a
journalling fs for the /tmp filesystem? I think not). You can impose security
restrictions (read-only mounts, or no-exec mounts) on subtrees.

And you can do none of that with a flat filesystem space.

[good words snipped]

- --
Lew Pitcher

Master Codewright & JOAT-in-training | GPG public key available on request
Registered Linux User #112576 (http://counter.li.org/)
Slackware - Because I know what I'm doing.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFA6gkPagVFX4UWr64RAo3/AKCMaskNNW25SDbjW4bE35E8x62U7ACgtv3e
zEB1VoAeApqLOeu26mc+KfU=
=F/Pg
-----END PGP SIGNATURE-----



Relevant Pages

  • RE: Large discrepancy in reported disk usage on USR partition
    ... tunefs: maximum blocks per file in a cylinder group: 2048 ... Is it possible on UFS2 for disk space to be allocated but hidden somehow? ... Large discrepancy in reported disk usage on USR partition ... Filesystem 1024-blocks Used Avail Capacity Mounted on ...
    (freebsd-questions)
  • Re: RH9 - Low disk space on root user - can only access in failsafe mode
    ... >> linux to go to windows to finish the file transfer. ... >> I can log in as root in failsafe, ... >> somewhere on the linux partition and did not get deleted when I killed ... I tried that - it seems that I have plenty of disk space available. ...
    (comp.os.linux.misc)
  • Re: Beginners partition advice
    ... Linux does not work that way. ... Each directory could be a seprate partition and each subdirectory ... To impose restrictions on the size of certain directory subtrees ... To reduce the time taken by the boot up filesystem check, ...
    (alt.os.linux.suse)
  • Re: RedHat 3 ES / MSA1000 /mke2fs problem (long).
    ... > trying to mount and control a logical disk on a MSA1000 storage device. ... > After mentioning that this would create a filesystem on the entire ... > device instead of a partition, the filesystem was created, is mountable ... > device and expand the linux logical drive: How would I cause the Linux ...
    (comp.os.linux.setup)
  • RE: Huge Partition
    ... Or are the problems happening at a lower level than the filesystem? ... However, I have not come close to filling the partition up, so I cannot verify that all the space is actually usable. ... > script failed for out of disk space. ... To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list ...
    (Fedora)