1829320 Members
1734 Online
109989 Solutions
New Discussion

Increase / filesystem

 
brian_31
Super Advisor

Increase / filesystem

here is my current df -k

Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda3 6143268 281572 5549636 5% /
/dev/sda1 256667 35089 208326 15% /boot
/dev/sda7 2063504 34068 1924616 2% /home
/dev/sdb1 24240952 294232 22715340 2% /opt
/dev/sda8 1154276 223444 872200 21% /opt/monitor
none 2045776 0 2045776 0% /dev/shm
/dev/sda6 3051792 1290904 1605864 45% /tmp
/dev/sda2 8254272 2659060 5175916 34% /usr
/dev/sda5 4127076 170788 3746644 5% /var

the root has 6gb but we need to increase this to 8GB. Please let me know how i can do this?

here is my fdisk -l

/sbin/fdisk -l

Disk /dev/sda: 146.8 GB, 146814976000 bytes
255 heads, 63 sectors/track, 17849 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 33 265041 83 Linux
/dev/sda2 34 1077 8385930 83 Linux
/dev/sda3 1078 1854 6241252+ 83 Linux
/dev/sda4 1855 17849 128479837+ f Win95 Ext'd (LBA)
/dev/sda5 1855 2376 4192933+ 83 Linux
/dev/sda6 2377 2762 3100513+ 83 Linux
/dev/sda7 2763 3023 2096451 83 Linux
/dev/sda8 3024 3169 1172713+ 83 Linux

Disk /dev/sdb: 146.8 GB, 146814976000 bytes
255 heads, 63 sectors/track, 17849 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 3066 24627613+ 83 Linux
/dev/sdb2 3067 3320 2040255 82 Linux swap


Thanks

Brian
2 REPLIES 2
Stuart Browne
Honored Contributor

Re: Increase / filesystem

Well, first things first.. Back evernything up!

Pretty much all of the available choices are quite dangerous, and should be performed with the server in single-user mode.

To start with, use a tool like 'gparted' from a LiveCD (http://gparted.sourceforge.net/ or http://www.sysresccd.org/Main_Page).

This makes everything so much easier.

'gparted' is a GUI interface to the 'gpart' tool, which allows you to resize most filesystem types, including ext2/ext3.

As it is, you need to shuffle the filesystems around to amek enough space for 'sda3' to have an extra few GB of size.

If you don't want to use a tool like that, then you'll have to do it all manually with 'parted', and 'ext2resize' or 'resize2fs'. This can be quite complicated, and messy.
One long-haired git at your service...
Alpha977
Valued Contributor

Re: Increase / filesystem

Hello!

/ (root) is impossible to increase without an externale tool.

Follow the previus advice.
GParted is a great tool for do this. Is like Partition Magic, but is free and linux-based.
Remember to backup all first!

Regards