resize_ext3_filesystem

Differences

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

Link to this comparison view

Next revision
Previous revision
Last revisionBoth sides next revision
resize_ext3_filesystem [01.04.2012 13:28] – created Pascal Suterresize_ext3_filesystem [21.02.2014 14:15] Pascal Suter
Line 12: Line 12:
 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> <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.txt
  • Last modified: 21.02.2014 14:16
  • by Pascal Suter