RE: where is "sda1" printed

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

 



Thanks, Alan and Alan,

Yes, it is the partition table difference. The one that does not print
"sda1" does not have a partition table.

Thanks,
Julie.

> -----Original Message-----
> From: Alan Stern [mailto:stern@xxxxxxxxxxxxxxxxxxx]
> Sent: Wednesday, February 11, 2009 12:20 PM
> To: Julie Zhu
> Cc: linux-usb@xxxxxxxxxxxxxxx
> Subject: Re: where is "sda1" printed
> 
> 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
> 


This email and any attachments are intended for the sole use of the named recipient(s) and contain(s) confidential information that may be proprietary, privileged or copyrighted under applicable law. If you are not the intended recipient, do not read, copy, or forward this email message or any attachments. Delete this email message and any attachments immediately.


--
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