Off-Topic > Off-Topic - Tiny Core Lounge
advice request - flashdrive resurrection
Lee:
I boot TC from a USB flash drive and I seem to have misplaced the MBR. Is there an easy way to recover that, short of simply re-fdisk-ing the drive and starting from scratch?
The stick has a single FAT32 partition with grub-0.97-splash and Micro Core under /boot and extensions and backup under /tce. I have a good and recent copy of mydata.tgz but there are a bunch of data files in other subdirectories on the stick ("big home files" and some windows stuff.)
I think it was something to do with using it on Win7 that fouled up the MBR. I don't suspect a hardware problem (so far) as the stick is new enough to be "young", old enough to be "reliable" and hasn't been physically abused. I also don't suspect any kind of malware (*) attack, though I haven't authoritatively ruled that out. Micro Core recognizes the stick as sdd (as it should) but fdisk doesn't see any partitions, says I've got no partition table.
I've got a spare USB flash drive so I've got a functioning system to work with.
* - not counting Windows as "malware" in this context.
curaga:
Try the testdisk extension, perhaps it can recreate your partition table. In any case, create a backup of the whole drive before any operations (dd the full sdX device to a file).
Lee:
Thanks. I'll try that.
Lee
Rich:
Hi Lee
The fact that there is only one partition on the stick will make this easier. Use fdisk to restore the
partition table, then copy the directories off of the stick, re-install grub and copy the directories back.
As curaga said, backup the drive before doing anything.
Start fdisk and choose n and then p and then 1
If the original partition occupied the entire stick use the default values for start and size. Tell it to
write the partition table and exit. You should now be able to mount and access the stick. If you did
not partition the entire stick, this link should help.
http://tldp.org/HOWTO/Partition/recovering.html
EDIT: Since it's the only partition on there use the default size and start values and you'll be fine.
tinypoodle:
I for one would consider it much safer and prone to success to examine the device with testdisk, rather than blindly write to it with fdisk, just throwing my $0.02 in.
Navigation
[0] Message Index
[#] Next page
Go to full version