LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 11-02-2005, 05:25 AM   #1
BNI
LQ Newbie
 
Registered: Sep 2004
Distribution: Linux from Scratch 6.0, ClarkConnect server/gateway
Posts: 21

Rep: Reputation: 15
Issues reading usb key partition table


Bit of an odd problem:
As a background, I have 2 machines, a desktop and a laptop both running Linux from scratch 6.0, configured pretty much the same way.
Desktop is running kernel 2.6.11.11 and laptop 2.6.8.1.

First up, I've been happily using a few different types of usb drives / mp3 players / digital cameras on both of them, but now I've gotten a new, higher capacity usb stick, whose behaviour is identical on both machines. Plugging it in results in the normal lines in dmesg about a new speed device, followed by a stack of error messages along the lines of

Code:
sdb: Unit Not Ready, sense:
: Current: sense key=0x6
    ASC=0x28 ASCQ=0x0
sdb : READ CAPACITY failed.
sdb : status=1, message=00, host=0, driver=08
sd: Current: sense key=0x6
    ASC=0x28 ASCQ=0x0
sdb: assuming Write Enabled
sdb: assuming drive cache: write through
sdb: Unit Not Ready, sense:
: Current: sense key=0x6
    ASC=0x28 ASCQ=0x0
sdb : READ CAPACITY failed.
etc.

and at last:

Code:
Buffer I/O error on device sdb, logical block 0
 unable to read partition table
As you'd expect, this means that /dev/sdb exists, but not any partitions, ie /dev/sdb1, which makes mounting rather difficult.

The interesting thing, though, is that if i use any command that touches the device, like fdisk, cfdisk, mkfs.*, it adds the following lines to dmesg,

Code:
SCSI device sdb: 1017856 512-byte hdwr sectors (521 MB)
sdb: assuming Write Enabled
sdb: assuming drive cache: write through
SCSI device sdb: 1017856 512-byte hdwr sectors (521 MB)
sdb: assuming Write Enabled
sdb: assuming drive cache: write through
 sdb: sdb1
successfully reads the partition table, and hey presto, /dev/sdb1 is created and I can mount the filesystem.
Also, I can get the same effect by manually creating the block device with mknod.

So clearly the machine can read the partition table and data, but for some reason not on the first run through. It's a pain having to su to root and fdisk -l /dev/sdb every time i want to use this drive, so any suggestions?
 
Old 11-02-2005, 05:50 AM   #2
pyrael
Member
 
Registered: Dec 2003
Posts: 87

Rep: Reputation: 15
How about a script to automatically perform the tasks? just a thought...
 
Old 11-02-2005, 08:23 AM   #3
changcheh
Member
 
Registered: Nov 2003
Location: china
Distribution: Linux Mint
Posts: 49

Rep: Reputation: 15
Fdisk has an option to check the partition table, type "v"

You could try rewriting the table with a "w" in fdisk, this may wipe any data on the drive. It worked OK with mine, no data loss but, I had a different problem.

John
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux, usb-storage... how to mount them and see their partition table Saradas Programming 5 11-12-2008 08:09 AM
Trouble reading usb key partition table BNI Linux From Scratch 1 11-02-2005 10:13 AM
usb key partition table guldo Linux - General 7 07-26-2005 02:28 AM
Redhat 9 USB Key Issues louishp Linux - Hardware 0 06-07-2004 10:13 PM
/etc/fstab not reading new partition table tyccea Linux From Scratch 3 11-26-2003 11:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 02:08 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration