Operating System - Linux
1827794 Members
2396 Online
109969 Solutions
New Discussion

Re: extend /usr filesystem

 
SOLVED
Go to solution
Jorge Prado T
Contributor

extend /usr filesystem

Hi,
I need to extend the /usr filesystem:
- S.O:
Red Hat Enterprise Linux AS release 3 (Taroon Update 3)

- #df -k /usr
S.ficheros 1K-blocks Used Available Use% Montado en
/dev/sda6 3023760 2663736 206424 93% /usr

- # grep /usr /etc/fstab
LABEL=/usr /usr ext3 defaults 1 2

- fdisk /dev/sda
.
.Orden (m para obtener ayuda): p

Disco /dev/sda: 36.4 GB, 36420075520 bytes
255 cabezas, 63 sectores/pista, 4427 cilindros
Unidades = cilindros de 16065 * 512 = 8225280 bytes

Disposit. Inicio Principio Fin Bloques Id Sistema
/dev/sda1 1 4428 35566479+ ee EFI GPT

It is posible?

Thank in advance

Jorge Prado T.


4 REPLIES 4
Ivan Ferreira
Honored Contributor
Solution

Re: extend /usr filesystem

There is a problem:

First, you did not showed the real partition table, fdisk does not supports GPT partitions, use parted instead to display the partition table.

Second, to resize the /usr partition, as you don't use LVM, you must backup, destroy the partition, and re-create. That can be problem if:

- You don't have free space on your disk.

- You have more partitions after the /usr partition.

Saludos y que tengas buen dia.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Andrey Deryugin
Honored Contributor

Re: extend /usr filesystem

Hi Jorge,

Look at Logical Volume Manager (LVM) - http://aplawrence.com/Linux/lvm.html

HTH,
Andrey
Rick Garland
Honored Contributor

Re: extend /usr filesystem

If you are using LVM and free disk space then you can extend the filesystem.

Else, do a complete backup, remove the filesystem, recreate it with the new specs to include more room, restore the data.
Raj D.
Honored Contributor

Re: extend /usr filesystem

Hi Jorge ,

Here is the steps:

unmount
e2fsadm
mount it.

Cheers,
Raj.


" If u think u can , If u think u cannot , - You are always Right . "