Results 1 to 10 of 19
So i plug in my thumb drive with nothing too important on it you know, just some finals that could mean the difference between a good grade or not, and ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 04-18-2009 #1
USB Unformatted when it was fine not 2 hours ago
I did some research, found this program called TestDisk. I ran the test and I got a "partition sector doesn't have the endmark 0xaa55" error.
Doing some more research, finding out that 0xaa55 is the last part of the boot sector, I told it to write to the MBR... the default....
How do i make it so that I can get my files? What causes this so i can avoid it?
- 04-18-2009 #2
You can back up the MBR and restore it when you want
to back it up
# dd if=/dev/sdX of=/home/foo/sda-mbr.bin bs=512 count=1
change /home/foo with your home folder path
to restore it
# dd if=/home/foo/sda-mbr.bin of=/dev/sdX bs=1 count=64 skip=446 seek=446
Oh yeah, Its really hard to get the data back as you dont have the back up of your partition table.
- 04-18-2009 #3
- 04-18-2009 #4
I suggest you backup the entire drive contents if you can ... that way you can restore it back to current state if needed. You can do this with dd but be careful about the order or you will wipe the drive !
- 04-18-2009 #5
No it did not recognise any partitions. Both in fdisk and TestDisk.
- 04-18-2009 #6
- 04-18-2009 #7
Partition table entries are not in disk order Disk /dev/sdb: 8019 MB, 8019509248 bytes 247 heads, 62 sectors/track, 1022 cylinders Units = cylinders of 15314 * 512 = 7840768 bytes Disk identifier: 0x00000000 Device Boot Start End Blocks Id System /dev/sdb4 1 2192 16777216 0 Empty Partition 4 has different physical/logical beginnings (non-Linux?): phys=(0, 0, 0) logical=(0, 0, 1) Partition 4 has different physical/logical endings: phys=(0, 0, 0) logical=(2191, 23, 32) Partition 4 does not end on cylinder boundary. Disk /dev/sdb4: 17.1 GB, 17179869184 bytes 247 heads, 62 sectors/track, 2191 cylinders Units = cylinders of 15314 * 512 = 7840768 bytes Disk identifier: 0x00000000 Device Boot Start End Blocks Id System /dev/sdb4p4 1 2192 16777216 0 Empty Partition 4 does not end on cylinder boundary.
- 04-18-2009 #8
I also realized that this is in the network thread.... I could have sworn that i posted this in the Peripherals thread.....
- 04-18-2009 #9
My suggestion is after you have backed up the whole drive use dd to wipe the MBR and re-run testdisk.
dd if=/dev/zero of=/dev/sdb bs=512 count=1
- 04-18-2009 #10
so how can i backup my drive if i can't access it?