DDWRT and Saving an EXT2 Installation: Difference between revisions

mNo edit summary
mNo edit summary
Line 4: Line 4:


*To install any of the below utilities if they're missing: opk install XYZ
*To install any of the below utilities if they're missing: opk install XYZ
*To display information about a "disk" or file system: mount OR df OR dumpe2fs
*To change "boot" partition (IE, the one mounted to the OPT Directory): mount -o bind /tmp/mnt/sda_part1 /opt OR mount -o bind /tmp/mnt/sda_part2 /opt (part2 is the backup partition)
*To "CHKDSK" a file system:e2fsck -Vpt ext2 /dev/sdaX OR fsck.ext2 (-V is for Verbose, -p automatically repairs, -t is file system type) (remember, make sure it is not mounted) (to install utility, with additional utilities for other stuff:opkg install e2fsprogs)
*To display information about a "disk" or file system: mount OR df OR dumpe2fs /dev/sdaX
**umount /dev/sdaX
*To "CHKDSK" a file system:e2fsck -v -p /dev/sdaX OR fsck.ext2 (-v is for Verbose, -p automatically repairs, -t is file system type but is not available) (remember, make sure it is not mounted) (to install utility, with additional utilities for other stuff:opkg install e2fsprogs)
**umount /dev/sdaX (some services like smb and proftpd might be using the partition, so stop)
**mke2fs or mkfs.ext2 -L WhatEverLabel /dev/sdaX
**mke2fs or mkfs.ext2 -L WhatEverLabel /dev/sdaX
**...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)