Operating System - Linux
1833105 Members
3453 Online
110051 Solutions
New Discussion

Increase The size Of the "/usr" and "/opt"

 
Christopher_63
Occasional Contributor

Increase The size Of the "/usr" and "/opt"

Dear friends,


Please how can i modify filesystems,like (/usr,/opt) after installation?

Ps : I have Linux Redhat 3 AS.

Best regards.

Thank's a lot.
4 REPLIES 4
Steven E. Protter
Exalted Contributor

Re: Increase The size Of the "/usr" and "/opt"

This is done with the fdisk command.

Hopefully you have some free space to allocate on the box.

I do not believe that either /usr or /opt has a requirement that it be contiguous.

If you are using LVM once the partition is set up, you can use extendfs on the filesystem.

In general, I overengineer my systems to avoid this issue, because the disk druid in install makes for easier filesystem/parition configuration.

I can tell you how to preserve your existing configuraion and do an OS reinstall to get you the larger partitions. Depends on what you are running.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Ross Minkov
Esteemed Contributor

Re: Increase The size Of the "/usr" and "/opt"


Try using GNU Parted. It is a program for creating, destroying, resizing, checking and copying partitions, and the file systems on them. This is useful for creating space for new operating systems, reorganising disk usage, copying data between hard disks and disk imaging.

For more information gp to:
http://www.gnu.org/software/parted

Regards,
Ross
Vitaly Karasik_1
Honored Contributor

Re: Increase The size Of the "/usr" and "/opt"

Right, you may use different tools [from gparted to Partition Magic], but in any case you should run full backup before.

The only [almost] 100% safe way to resize filesystem it's LVM.
Tibor Bajnok
Occasional Advisor

Re: Increase The size Of the "/usr" and "/opt"

If you need only a particular directory to be bigger (e.g. /usr/local) and have enough space on other disk or filesystem, you can create a directory on it and link it to the desired point.
So it can eliminate the need to rebuild the entire system.
(It's a special case.)