Re: rfc: test whether a device has a partition table

From: viro
Date: Wed Sep 24 2003 - 20:02:43 EST


On Thu, Sep 25, 2003 at 10:42:44AM +1000, Douglas Gilbert wrote:
> I have a USB 500 MB USB key that confuses linux (both 2.4 and
> 2.6) since it has no partition table. It shows up on my laptop as:

Confuses it in which sense?

> $ cat /proc/scsi/scsi
> Attached devices:
> Host: scsi0 Channel: 00 Id: 00 Lun: 00
> Vendor: Prolific Model: USBFlashDisk Rev: 1.00
> Type: Direct-Access ANSI SCSI revision: 02
>
> I can mount it with:
> $ mount /dev/sda /mnt/extra

So it works fine. what's the problem?
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/