Re: mounting one usb interface (from 2 identified)

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

 



On Thu, 22 Nov 2012 20:28:24 -0800 Geoffrey Leach <geoff@xxxxxxxxxx>
wrote:

> On 11/22/2012 08:21:20 PM, Ranjan Maitra wrote:
> > On Thu, 22 Nov 2012 19:39:20 -0800 Geoffrey Leach <geoff@xxxxxxxxxx>
> > wrote:
> > 
> > > On 11/22/2012 06:41:21 PM, Ranjan Maitra wrote:
> > > 
> > > > > On 11/22/2012 02:38 PM, Ranjan Maitra wrote:
> > > > > > On Thu, 22 Nov 2012 15:57:46 -0600 Ranjan Maitra
> > > > > > <maitra.mbox.ignored@xxxxxxxxx> wrote:
> > > > > >
> > > > > >> Hi,
> > > > > >>
> > > > > >> Following up on my previous e-mail, I wanted to mention that
> > two
> > > > usb
> > > > > >> interfaces are being recognized. Here is the relevant output
> > of
> > > > > >>
> > > > > >> % usb-devices
> > > > > >>
> > > > > >> T:  Bus=01 Lev=01 Prnt=01 Port=02 Cnt=01 Dev#= 15 Spd=480
> > MxCh= 
> > > > 0
> > > > > >> D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
> > > > > >> P:  Vendor=0bb4 ProdID=0c02 Rev=02.22
> > > > > >> S:  Manufacturer=ARNOVA 10
> > > > > >> S:  Product=ARNOVA 10
> > > > > >> S:  SerialNumber=11223344
> > > > > >> C:  #Ifs= 2 Cfg#= 1 Atr=e0 MxPwr=256mA
> > > > > >> I:  If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50
> > > > > >> Driver=usb-storage
> > > > > >> I:  If#= 1 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=42
> > > > > >> Prot=01 Driver=(none)
> > > > > >>
> > > > > >> I want to mount this as a USB storage device, so that i can
> > > > access the
> > > > > >> filesystem.
> > > > > >>
> > > > > >> Question: How do I mount the first interface?
> > > > > > Sorry to add to my e-mail, the output of lsusb -v is as
> > follows:
> > > > > >
> > > [snip]
> > > 
> > > Here's an alternate method.
> > > 
> > > Your disks should each have a unique UUID identifier, that can be
> > used 
> > > to create a fstab entry.
> > > 
> > > For example, when I plug in my USB MP3 player, /dev/disk/by-uuid
> > gets a 
> > > symlink 1839-015E, symbolic link to `../../sdb'. Not much use.
> > However, 
> > > I have an entry in /etc/fstab: UUID=1839-015E  /Media/Sansa2  ..., 
> > > which allows me to access its contents by mounting /Media/Sansa2.
> > > 
> > 
> > Thanks! Does this happen only upon mounting. Because I don't have 
> > such
> > an entry corresponding to /dev/sdb or /dev/sdc
> > 
> > $ ll /dev/disk/by-uuid 
> > total 0
> > lrwxrwxrwx. 1 root root 10 Nov 22 12:06
> > 359f5eea-47cb-42c4-b96e-974b6f07ad19 -> ../../sda3 
> > 
> > lrwxrwxrwx. 1 root root 10 Nov 22 12:06
> > d0b7bacc-879a-4b34-9ddd-76f438a28c5d -> ../../sda6
> > 
> > lrwxrwxrwx. 1 root root 10 Nov 22 12:06
> > e082b796-2fc7-449b-95d8-a39ef6a29891 -> ../../sda2 
> > 
> > lrwxrwxrwx. 1 root
> > root 10 Nov 22 12:06 EEE4584BE4581863 -> ../../sda1 
> > 
> > lrwxrwxrwx. 1 root
> > root 10 Nov 22 12:06 f2ed8f21-da63-4def-a674-afdc90e448c5 ->
> > ../../sda5
> > 
> > (I am on F17.)
> 
> This is before mounting. Looks like your UUID is 359f5eea-47cb-42c4-
> b96e-974b6f07ad19. I'll bet that if you look in /etc/fstab, you'll find 
> that there's an entry UUID=d0b7bacc-879a-4b34-9ddd-76f438a28c5d ... 
> make a directory for your new disk and then make an entry for your new 
> UUID that mimics the existing one, with appropriate changes. Then mount 
> that directory.

Hi,

Continuing on with this, I have the following entries in the
directories in /dev/disk (sorry for the mangling):

$ ls -l */
by-id/:
total 0
lrwxrwxrwx. 1 root root  9 Nov 23 18:04
ata-HITACHI_HTS541612J9SA00_SB3D41EWGSZ5RL -> ../../sda 
lrwxrwxrwx. 1 root root 10 Nov 23 18:04
ata-HITACHI_HTS541612J9SA00_SB3D41EWGSZ5RL-part1 -> ../../sda1
lrwxrwxrwx. 1 root root 10 Nov 22 12:06
ata-HITACHI_HTS541612J9SA00_SB3D41EWGSZ5RL-part2 -> ../../sda2
lrwxrwxrwx. 1 root root 10 Nov 22 12:06
ata-HITACHI_HTS541612J9SA00_SB3D41EWGSZ5RL-part3 -> ../../sda3
lrwxrwxrwx. 1 root root 10 Nov 23 18:04
ata-HITACHI_HTS541612J9SA00_SB3D41EWGSZ5RL-part4 -> ../../sda4
lrwxrwxrwx. 1 root root 10 Nov 22 12:06
ata-HITACHI_HTS541612J9SA00_SB3D41EWGSZ5RL-part5 -> ../../sda5
lrwxrwxrwx. 1 root root 10 Nov 22 12:06
ata-HITACHI_HTS541612J9SA00_SB3D41EWGSZ5RL-part6 -> ../../sda6
lrwxrwxrwx. 1 root root  9 Nov 22 12:06
ata-MATSHITADVD-RAM_UJ-852_HC43_043146 -> ../../sr0 
lrwxrwxrwx. 1 root root  9 Nov 23 18:04 usb-ARNOVA_10_11223344-0:0
-> ../../sdb 
lrwxrwxrwx. 1 root root  9 Nov 23 18:04 usb-ARNOVA_10_11223344-0:1
-> ../../sdc 
lrwxrwxrwx. 1 root root  9 Nov 23 18:04
wwn-0x5000cca54dcae5d8 -> ../../sda 
lrwxrwxrwx. 1 root root 10 Nov 23
18:04 wwn-0x5000cca54dcae5d8-part1 -> ../../sda1 
lrwxrwxrwx. 1 root root 10 Nov 22 12:06 wwn-0x5000cca54dcae5d8-part2
-> ../../sda2 
lrwxrwxrwx. 1 root root 10 Nov 22 12:06
wwn-0x5000cca54dcae5d8-part3 -> ../../sda3 
lrwxrwxrwx. 1 root root 10 Nov 23 18:04
wwn-0x5000cca54dcae5d8-part4 -> ../../sda4 
lrwxrwxrwx. 1 root root 10 Nov 22 12:06 wwn-0x5000cca54dcae5d8-part5
-> ../../sda5 
lrwxrwxrwx. 1 root root 10 Nov 22 12:06 wwn-0x5000cca54dcae5d8-part6
-> ../../sda6

by-label/:
total 0
lrwxrwxrwx. 1 root root 10 Nov 22 12:06 _Fedora-17-x86_6 -> ../../sda2
lrwxrwxrwx. 1 root root 10 Nov 22 12:06 \x2fusr\x2flocal1 -> ../../sda5

by-path/:
total 0
lrwxrwxrwx. 1 root root 9 Nov 23 18:04
pci-0000:00:1a.7-usb-0:3:1.0-scsi-0:0:0:0 -> ../../sdb 
lrwxrwxrwx. 1 root root 9 Nov 23 18:04
pci-0000:00:1a.7-usb-0:3:1.0-scsi-0:0:0:1 -> ../../sdc

by-uuid/:
total 0
lrwxrwxrwx. 1 root root 10 Nov 22 12:06
359f5eea-47cb-42c4-b96e-974b6f07ad19 -> ../../sda3 
lrwxrwxrwx. 1 root root 10 Nov 22 12:06
d0b7bacc-879a-4b34-9ddd-76f438a28c5d -> ../../sda6 lrwxrwxrwx. 1 root
root 10 Nov 22 12:06 e082b796-2fc7-449b-95d8-a39ef6a29891 -> ../../sda2 
lrwxrwxrwx. 1 root root 10 Nov 23 18:04 EEE4584BE4581863 -> ../../sda1 
lrwxrwxrwx. 1 root root 10 Nov 22 12:06
f2ed8f21-da63-4def-a674-afdc90e448c5 -> ../../sda5

The two interfaces of the USB are in the by-path. From your e-mail, I
understood that I may have to create an entry in the by-uuid? What
should I use there then? Something else? Sorry that I am unclear here.

So, I mimicked what was going on with another test case (USB) and tried
the following:

cd /dev/disk/by-path

sudo touch ../../sdb1      
(this command I think is not correct)

sudo ln -s ../../sdb1 pci-0000:00:1a.7-usb-0:3:1.0-scsi-0:0:0:0-part1 


cd /dev/disk/by-id

sudo ln -s ../../sdb1 usb-ARNOVA_10_11223344-0:0-part1

cd by-uuid/

sudo ln -s ../../sdb1 ARNOVA\ 10

sudo mount  /dev/sdb1 /mnt/myusb

mount: /dev/sdb1 is not a block device (maybe try `-o loop'?)


I suspect the problem is in the first stage (second command above)
because the commands above don't know that ../../sdb1 is part
of /dev/sdb.

$  ll /dev/sdb
brw-rw----. 1 root disk 8, 16 Nov 23 18:31 /dev/sdb

sudo chown root.disk /dev/sdb1

ll /dev/sdb1
-rw-r--r--. 1 root disk 0 Nov 23 18:35 /dev/sdb1

How do I tell it that it is a partition, perhaps 8, 17
where the 0 is? (Sorry for the naivette? Will parted help here?)

Many thanks again and best wishes,
Ranjan

____________________________________________________________
FREE 3D EARTH SCREENSAVER - Watch the Earth right on your desktop!
Check it out at http://www.inbox.com/earth


-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux