Unable to see external drive

David Lamerton
Hello Everyone,

I have recently bought a M2440 which I am running Android on. I have
compiled the kernel with the necessary configurations to enable NTFS etc
but when I attach an external drive via USB I don't see it in the /dev
directory. When the system boots up I see the following;

---------------------------------------------------------------
scsi 0:0:0:0: Direct-Access     Hitachi  HTS545032B9A300       PQ: 0 ANSI:
2 CCS
sd 0:0:0:0: [sda] 625142448 512-byte hardware sectors (320073 MB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Assuming drive cache: write through
sd 0:0:0:0: [sda] 625142448 512-byte hardware sectors (320073 MB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Assuming drive cache: write through
 sda:<7>usb-storage: queuecommand called
 sda1
sd 0:0:0:0: [sda] Attached SCSI disk
--------------------------------------------------------------

I think this implies the device is attached as sda1 doesn't it but in the
/dev directory it isn't listed.

if I now go to /proc/scsi I see the following;

---------------------------------------------------------------
device_info  scsi         usb-storage
/proc/scsi # cat scsi
Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
  Vendor: Hitachi  Model: HTS545032B9A300  Rev:     

  Type:   Direct-Access                    ANSI  SCSI revision: 02

device_info  scsi         usb-storage
/proc/scsi # cat scsi
Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
  Vendor: Hitachi  Model: HTS545032B9A300  Rev:     

  Type:   Direct-Access                    ANSI  SCSI revision: 02
/proc/scsi # cd us
/proc/scsi # cd usb-storage/
/proc/scsi/usb-storage # ls
0
/proc/scsi/usb-storage # cat 0
   Host scsi0: usb-storage
       Vendor: Hitachi GST
      Product: SimpleDrive mini
Serial Number: 25120100714104CA
     Protocol: Transparent SCSI
    Transport: Bulk
       Quirks:
/proc/scsi/usb-storage # 


----------------------------------------------------------------

So it appears to know that my drive is connected but it isn't available. Is
there anyone that can shed some light on what is happening before I go mad?

Thanks in advance :+)

Coburn64
What happens when you do mount /dev/sda1 /mnt ?

David Lamerton
Hello Coburn64,

Thanks for getting back to me.

I actually managed to find out what the problem was with a little more
digging. The sda1 device actually appears in the dev/block directory. When
I execute the following command

mount /dev/block/sda1 /mnt

it works ok and I can use the drive.

Hopefully this will be useful to someone else having the same trouble!

Thanks again,

Dave