Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| resize_ext3_filesystem [01.04.2012 13:28] – created Pascal Suter | resize_ext3_filesystem [21.02.2014 14:16] (current) – Pascal Suter | ||
|---|---|---|---|
| Line 11: | Line 11: | ||
| </ | </ | ||
| 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!!) | ||
| - | < | + | |
| - | 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 ===== | ||