Re: where is "sda1" printed

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 11 Feb 2009, Julie Zhu wrote:

> Hello,
> 
> Can someone point to me where "sda1" is printed in the following print
> out after connecting a USB thumb drive to the host controller on an
> embedded system?
> 
> scsi 0:0:0:0: Direct-Access     Ativa    2GB              7.01 PQ: 0
> ANSI: 0 CCS
> sd 0:0:0:0: [sda] 3907583 512-byte hardware sectors (2001 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] 3907583 512-byte hardware sectors (2001 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 removable disk
> sd 0:0:0:0: Attached scsi generic sg0 type 0
> 
> I have searched both drivers/scsi/ and usb/storage/, but without
> success.

It is printed by put_partition() in fs/partitions/check.h, called by
msdos_partition() in fs/partitions/msdos.c.

> I noticed that some thumb drives have this printed out, and some do not,
> I want to figure out why. These thumb drives are similar or exactly the
> same, but used by different people.

That's because some thumb drives have a partition table and some don't.  
Try running "fdisk -l /dev/sda" on them and you'll see.

Alan Stern

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux