OP
Brian Burch
Member
Oh dear... I saw your original email, but the edit had not yet arrived!After a reboot are the partitions still present?
Edit: I see you haven't rebooted in which case it would be best to use fdisk to confirm that the partition table is correct. If that produces an I/O error then use hexdump to dump the partition table.
So I did a reboot. /sys/block/sda still had the correct size, but sda1-3 all disappeared. Not surprisingly, tune2fs didn't find them any more either. I guess the dd of zeros really did something!!!
fix-disk back to maintenance mode... create the partitions, verify, write: error on read, error on write. Instead of cancelling, I said ignore and got this:
Code:
Error: Partition(s) 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30,
31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50,
51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64 on /dev/sda have been
written, but we have been unable to inform the kernel of the change, probably
because it/they are in use. As a result, the old partition(s) will remain in
use. You should reboot now before making further changes.
What a relief! /sys/block/sda/sda[1-3] have reappeared and are unchanged. gfdisk still says I don't have a partition table, but I'm very relieved that tune2fs likes sda2 again.
Code:
humax# hexdump -Cv -n 512 /dev/sda
hexdump: /dev/sda: Input/output error
I didn't know how to do that, but I found Manually_loading_Features_from_USB on the wiki.I would recommend running a smartctl test on the disk - this should find the location of the problem sector(s). You may not be able to install it using the package management system if /dev/sda2 is not accessible or read-only. In this case it can be copied onto the flash drive and run from there.
Code:
humax# find . -name "smart*"
./media/drive1/smartmontools_5.41_mipsel.opk
./sys/module/psmouse/parameters/smartscroll
humax#