DDWRT and Saving an EXT2 Installation: Difference between revisions
mNo edit summary |
mNo edit summary |
||
Line 10: | Line 10: | ||
**umount /dev/sdaX (some services like smb and proftpd might be using the partition, so stop) | **umount /dev/sdaX (some services like smb and proftpd might be using the partition, so stop) | ||
**If it runs into issues or complains: e2fsck -v -y (-y answers yes to everything) | **If it runs into issues or complains: e2fsck -v -y (-y answers yes to everything) | ||
**mke2fs or mkfs.ext2 -L WhatEverLabel /dev/sdaX | *To Defragment: e2defrag /dev/sdaX (again, make sure to unmount device, umount /dev/sdaX) | ||
*To format an EXT2 paritition: mke2fs or mkfs.ext2 -L WhatEverLabel /dev/sdaX | |||
**Remember to un-mount it first: umount /dev/sdaX (see smb and proftpd notes above) | |||
**...wait FOREVER if it is a USB drive (about an hour for a small EXT2 partition on a USB 2.0 port) | **...wait FOREVER if it is a USB drive (about an hour for a small EXT2 partition on a USB 2.0 port) | ||
* | **If one forgets to change the label during format: tune2fs –L WhatEverName /dev/sdaX | ||
* | **And don't forget to copy everything back over: cp -ax /tmp/mnt/sda_partX /tmp/mnt/sda_partY | ||
*General Information: | *General Information: | ||
**SuperBlock: 1st one typically at 32768 | **SuperBlock: 1st one typically at 32768 | ||
<br /> | <br /> |