USB Question...

Thomas Charron twaffle at gmail.com
Thu Mar 5 11:12:31 EST 2009


On Thu, Mar 5, 2009 at 10:54 AM, Brian Chabot <brian at datasquire.net> wrote:
> What is confusing me is that it is properly detected, according to this:
> Mar  5 09:29:17 ono-sendai kernel: sd 52:0:0:0: [sdb] 246864 512-byte
> hardware sectors (126 MB)
> ...but only miliseconds later, I see:
> Mar  5 09:29:18 ono-sendai kernel: attempt to access beyond end of device
> Mar  5 09:29:18 ono-sendai kernel: sdb: rw=0, want=251840, limit=246864
> So it already sees that there are 246864 but is still trying to access
> 251840 through 252000.

  The autodetect reads the disk information, but when it reads the
partition table, the TABLE says there's more there.  The kernel itself
then said, 'Waaaait one cottin pickin second!'

> Indeed, fdisk gives me:
> $ sudo fdisk /dev/sdb
> Disk /dev/sdb: 126 MB, 126394368 bytes
> 16 heads, 63 sectors/track, 244 cylinders
> Units = cylinders of 1008 * 512 = 516096 bytes
> Disk identifier: 0x00000000
>    Device Boot      Start         End      Blocks   Id  System
> /dev/sdb1   *           1         250      125968+   b  W95 FAT32
> Command (m for help): v
> Partitions 1: cylinder 250 greater than maximum 244
> Total allocated sectors 251938 greater than the maximum 246864

  And there's fdisk also saying 'Waaaait one cottin pickin second!'

> I've emailed the manufacturer's support dept. to see if I can just
> re-partition and reformat or if that will brick the device.

  If you're bored you could always dd the drive off, resize the
partitions to be 'correct' in the image, then dd it back to the disk.
If it doesn't work, just dd the original image back.  Assuming the
system doesn't store it's actual software ON the storable area (like
an iPod does).

-- 
-- Thomas



More information about the gnhlug-discuss mailing list