resize_ext3_filesystem

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
resize_ext3_filesystem [01.04.2012 13:28] – created Pascal Suterresize_ext3_filesystem [21.02.2014 14:16] (current) Pascal Suter
Line 11: Line 11:
 </code> </code>
 use parted or fdisk to delete the partition and create a new one in the desired increased size starting at the same place (DO NOT create a new filesystem!!) use parted or fdisk to delete the partition and create a new one in the desired increased size starting at the same place (DO NOT create a new filesystem!!)
-<code> +  parted /dev/sda 
-parted /dev/sda +  print (shows the current beginig and ending of partition) 
->print (shows the current beginig and ending of partition) +  rm 1 
->rm 1 +  mkpart primary START END (end can be -1s to be at the last possible sector of the disk)  
->mkpart primary START END (end can be -1s to be at the last possible sector of the disk)  +  quit 
->quit +  resize2fs /dev/sda1 
-resize2fs /dev/sda1 +  tune2fs -j /dev/sda1 
-tune2fs -j /dev/sda1 +  fsck.ext3 /dev/sda1
-fsck.ext3 /dev/sda1+
  
 ===== shrinking a partition ===== ===== shrinking a partition =====
  • resize_ext3_filesystem.1333279725.txt.gz
  • Last modified: 01.04.2012 13:28
  • by Pascal Suter