Difference between revisions of "Resize-rootfs"
Line 3: | Line 3: | ||
<ol> | <ol> | ||
<li>Increasing the size of a root-file-system: | <li>Increasing the size of a root-file-system: | ||
+ | </li> | ||
+ | |||
e2fsck -f root_fs_tutorial-0.31 | e2fsck -f root_fs_tutorial-0.31 | ||
dd if=/dev/zero of=root_fs_tutorial-0.31 bs=1 count=1 seek=550M conv=notrunc | dd if=/dev/zero of=root_fs_tutorial-0.31 bs=1 count=1 seek=550M conv=notrunc | ||
resize2fs -p root_fs_tutorial-0.31 | resize2fs -p root_fs_tutorial-0.31 | ||
e2fsck -f root_fs_tutorial-0.31 | e2fsck -f root_fs_tutorial-0.31 | ||
− | + | ||
<li>Downsizyng a rootfilesystem: | <li>Downsizyng a rootfilesystem: | ||
* Create a new rootfilesystem with the size you want your filesystem to have: | * Create a new rootfilesystem with the size you want your filesystem to have: |
Revision as of 03:02, 15 October 2006
Resizyng a root-file-system
- Increasing the size of a root-file-system:
- Downsizyng a rootfilesystem:
- Create a new rootfilesystem with the size you want your filesystem to have:
- Copy the old filesystem content to the new one:
e2fsck -f root_fs_tutorial-0.31 dd if=/dev/zero of=root_fs_tutorial-0.31 bs=1 count=1 seek=550M conv=notrunc resize2fs -p root_fs_tutorial-0.31 e2fsck -f root_fs_tutorial-0.31