[LUNI] USB Flash Drive Problems

Joe Frost joe-list at the-frosts.org
Tue Aug 10 08:32:31 CDT 2004


On Mon, Aug 09, 2004 at 11:44:32PM -0500, Casey Cichon wrote:
> On Mon, Aug 09, 2004 at 04:45:13, Joe Frost said:
> > 
> > What about an fsck on it?
> > 
> > joe
> > 
> 
> Syslog says that it can't read the partition table on the device.
> 
> 
> here is the output from both fsck and fdisk
> 
> wizkid2:~# fsck.msdos /dev/sda
> wizkid2:~# mount /mnt/usb_drive/
> mount: /dev/sda1 is not a valid block device
> wizkid2:~# fdisk /dev/sda
> 
> Unable to read /dev/sda
> 

Try gpart from
   http://www.stud.uni-hannover.de/user/76201/gpart/


>From apt-cache:

   MD5sum: 5e083e52ca013f3f8a83869908aa8330
   Description: Guess PC disk partition table, find lost partitions
   Gpart is a tool which tries to guess the primary partition table of a
   PC-type disk in case the primary partition table in sector 0 is
   damaged, incorrect or deleted.
   
   It is also good at finding and listing the types, locations, and
   sizes of inadvertently-deleted partitions, both primary and logical.
   It gives you the information you need to manually re-create them
   (using fdisk, cfdisk, sfdisk, etc.).
 
   The guessed table can also be written to a file or (if you firmly
   believe the guessed table is entirely correct) directly to a disk
   device.


Maybe that'll take care of it. 

Joe



More information about the luni mailing list