15
« on: August 08, 2005, 04:34:57 pm »
This is an update to this topic.
I finally got off my lazy --- and looked into fixing this.
I tried a straight cp of /dev/hda1 to my Archos 340 by USB connection. After more than 1 and 1/2 hours(!) I got an error message that the 2 gig filesize had been exceeded. Doh!
Without spending the time to figure how to use cp to copy the rest of the microdrive, I tried to use fsck.
Fsck would give me an error 2 with whatever I tried.
E2fsck would say that it couldn't find an ext2 filesystem, even when I used the alternate superblock -b 8193
I tried to mount and umount /dev/hda1 and got invalid argument errors.
This was all tried with the cf icon showing on the menu bar.
I ejected the card using the menu bar, left the card in the slot and got the same invalid argument errors with mount and umount. I got slightly different errors with fsck and e2fsck.
So I suspended the Zaurus, physically removed the microdrive from the cf slot, turned the Zaurus back on, and inserted the microdrive and waited for the icon to show up on the menu bar.
Then I tried to mount /dev/hda1 with the -f switch. Mount didn't give me any error message, but I couldn't cd to /dev/hda1 or /usr/mnt.rom/cf.
But after the forced mount, e2fsck started. It complained about an incompletely unmounted drive but it ran.
After I said yes to a lot of requests to repair a lot of stuff I didn't understand, it admonished me that the file system had been changed, and kicked me back to a command prompt.
But I still couldn’t mount /dev/hda1 from the command line.
So I ejected the card from the menu bar, suspended the Zaurus, physically pulled the microdrive from the cf slot, turned the Zaurus back on, and inserted the microdrive.
And amazingly . . . . all of my files scrolled up on the file manager.
From a cursory inspection, they appear to be undamaged.
I would like to take this opportunity to thank the people who ported e2fsck to the Zaurus and the people who responded to this thread. And I would like to admonish everyone not to fool around with the mkswap command late at night.