Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Technical

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 5th March 2012, 04:38
cburtenshaw cburtenshaw is offline
Junior Member
 
Join Date: Mar 2012
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
Default Expanding sda9 (ext3) partition.

Hi,

I'm attempting to expand /dev/sda9 by the free space that has been added to the attached SAN.

I've listed some output below.

------------------
# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda3 9920624 745004 8663552 8% /
/dev/sda8 4956284 160920 4539532 4% /home
/dev/sda7 5952252 1215568 4429444 22% /usr
/dev/sda5 7936256 817712 6708892 11% /opt
/dev/sda2 9920624 708364 8700192 8% /var
/dev/sda9 105537788 72796704 27293448 73% /var/www
/dev/sda1 194442 18096 166307 10% /boot
tmpfs 2021896 0 2021896 0% /dev/shm

# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 9.5G 728M 8.3G 8% /
/dev/sda8 4.8G 158M 4.4G 4% /home
/dev/sda7 5.7G 1.2G 4.3G 22% /usr
/dev/sda5 7.6G 799M 6.4G 11% /opt
/dev/sda2 9.5G 692M 8.3G 8% /var
/dev/sda9 101G 70G 27G 73% /var/www
/dev/sda1 190M 18M 163M 10% /boot
tmpfs 2.0G 0 2.0G 0% /dev/shm

------------------
# parted
GNU Parted 1.8.1
Using /dev/sda
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) p

Model: VMware Virtual disk (scsi)
Disk /dev/sda: 242GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number Start End Size Type File system Flags
1 32.3kB 206MB 206MB primary ext3 boot
2 206MB 10.7GB 10.5GB primary ext3
3 10.7GB 21.2GB 10.5GB primary ext3
4 21.2GB 161GB 140GB extended
5 21.2GB 29.6GB 8390MB logical ext3
6 29.6GB 38.0GB 8390MB logical linux-swap
7 38.0GB 44.3GB 6292MB logical ext3
8 44.3GB 49.5GB 5239MB logical ext3
9 49.5GB 161GB 112GB logical ext3

(parted) print free

Model: VMware Virtual disk (scsi)
Disk /dev/sda: 242GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number Start End Size Type File system Flags
1 32.3kB 206MB 206MB primary ext3 boot
2 206MB 10.7GB 10.5GB primary ext3
3 10.7GB 21.2GB 10.5GB primary ext3
4 21.2GB 161GB 140GB extended
5 21.2GB 29.6GB 8390MB logical ext3
6 29.6GB 38.0GB 8390MB logical linux-swap
7 38.0GB 44.3GB 6292MB logical ext3
8 44.3GB 49.5GB 5239MB logical ext3
9 49.5GB 161GB 112GB logical ext3
161GB 242GB 80.5GB Free Space

------------------
# fdisk -l /dev/sda

Disk /dev/sda: 241.5 GB, 241591910400 bytes
255 heads, 63 sectors/track, 29371 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 25 200781 83 Linux
/dev/sda2 26 1300 10241437+ 83 Linux
/dev/sda3 1301 2575 10241437+ 83 Linux
/dev/sda4 2576 19581 136600695 5 Extended
/dev/sda5 2576 3595 8193118+ 83 Linux
/dev/sda6 3596 4615 8193118+ 82 Linux swap / Solaris
/dev/sda7 4616 5380 6144831 83 Linux
/dev/sda8 5381 6017 5116671 83 Linux
/dev/sda9 6018 19581 108952798+ 83 Linux



I followed the step to expand the last partition in the HowToForge Link, however it didn't expand, when I executed 'resize2fs /dev/sda9'. :-(

The document is based on expanding the root partition. What should I have done to attached the free space to partition 9?

Thank you in advance.
Craig.
Reply With Quote
Sponsored Links
  #2  
Old 9th March 2012, 06:17
cburtenshaw cburtenshaw is offline
Junior Member
 
Join Date: Mar 2012
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Hi,

I still have issues with expansion.

Can someone let me know if I've missed something.

Thank you
Craig.
Reply With Quote
  #3  
Old 10th March 2012, 14:17
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
 
Default

I think it will be easier to resize your partitions with GParted: http://www.howtoforge.com/partitioning_with_gparted
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
The Following User Says Thank You to falko For This Useful Post:
cburtenshaw (14th March 2012)
Reply

Bookmarks

Tags
expand sda9 ext3

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Move /var to another partition Toucan General 1 5th January 2012 14:54
How to expand Linux ext3 partition aldo HOWTO-Related Questions 4 1st September 2011 17:08
Can all the installation and configuration be automated (Kickstart) gabby Installation/Configuration 0 30th January 2010 19:47
Problem resizing ext3 partition iZm HOWTO-Related Questions 6 17th June 2007 04:53
Shrink ext3 partition and convert to ntfs? NewLeaf Installation/Configuration 2 30th March 2007 07:25


All times are GMT +2. The time now is 03:29.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.