Re: some question about mount usb flash

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

 



2009/7/30, Srdjan Todorovic <todorovic.s@xxxxxxxxxxxxxx>:
> Hi,
>
> On 30/07/2009, loody <miloody@xxxxxxxxx> wrote:
>
>> From the log, it seems scsi driver address the usb flash as sda1 and
>> /dev/sda1 node has been created as block device with (8,0), (major,
>> minor) number.
>
> Wrong major/minor number...
>
>> I also have create /mnt there.
>> Did I forget something?
>
> Your forgot to look at Documentation/devices.txt ? ;)
>
>> SCSI device sda: 7987198 512-byte hdwr sectors (4089 MB)
>
> sda is the device not the partition...
>
>> sda: assuming drive cache: write through
>>  sda:<7>usb-storage: queuecommand called
>>  sda1
>
> ... because this tells you that you have a partition as sda1
>
>> /temp # mount -t vfat /dev/sda1 /mnt/
>
> And this is correct...
>
>> brw-r--r--    1 0        0          8,   0 Jan  1 00:00 sda1
>
> ... but this is the *device* (8,0), not the partition.
>
> Did you not want sda to be (8,0) and sda1 to be (8,1) ?
Hi:
thanks for your kind help.
Can I get the conclusion that in scsi block device the minor# 0 is for
device and others are for partition?
appreciate your kind help,
miloody

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux