Re: mounting one usb interface (from 2 identified)

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

 



Hi John,

Thanks for helping out!

On Thu, 22 Nov 2012 18:08:24 -0800 John Wendel <jwendel10@xxxxxxxxxxx>
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:
> >
> > $ lsusb -v -s 001:024
> >
> > Bus 001 Device 024: ID 0bb4:0c02 High Tech Computer Corp. Dream /
> > ADP1 / G1 / Magic / Tattoo (Debug) Couldn't open device, some
> > information will be missing Device Descriptor:
> >    bLength                18
> >    bDescriptorType         1
> >    bcdUSB               2.00
> >    bDeviceClass            0 (Defined at Interface level)
> >    bDeviceSubClass         0
> >    bDeviceProtocol         0
> >    bMaxPacketSize0        64
> >    idVendor           0x0bb4 High Tech Computer Corp.
> >    idProduct          0x0c02 Dream / ADP1 / G1 / Magic / Tattoo (Debug)
> >    bcdDevice            2.22
> >    iManufacturer           1
> >    iProduct                2
> >    iSerial                 3
> >    bNumConfigurations      1
> >    Configuration Descriptor:
> >      bLength                 9
> >      bDescriptorType         2
> >      wTotalLength           55
> >      bNumInterfaces          2
> >      bConfigurationValue     1
> >      iConfiguration          0
> >      bmAttributes         0xe0
> >        Self Powered
> >        Remote Wakeup
> >      MaxPower              256mA
> >      Interface Descriptor:
> >        bLength                 9
> >        bDescriptorType         4
> >        bInterfaceNumber        0
> >        bAlternateSetting       0
> >        bNumEndpoints           2
> >        bInterfaceClass         8 Mass Storage
> >        bInterfaceSubClass      6 SCSI
> >        bInterfaceProtocol     80 Bulk (Zip)
> >        iInterface              0
> >        Endpoint Descriptor:
> >          bLength                 7
> >          bDescriptorType         5
> >          bEndpointAddress     0x81  EP 1 IN
> >          bmAttributes            2
> >            Transfer Type            Bulk
> >            Synch Type               None
> >            Usage Type               Data
> >          wMaxPacketSize     0x0200  1x 512 bytes
> >          bInterval               0
> >        Endpoint Descriptor:
> >          bLength                 7
> >          bDescriptorType         5
> >          bEndpointAddress     0x02  EP 2 OUT
> >          bmAttributes            2
> >            Transfer Type            Bulk
> >            Synch Type               None
> >            Usage Type               Data
> >          wMaxPacketSize     0x0200  1x 512 bytes
> >          bInterval               1
> >      Interface Descriptor:
> >        bLength                 9
> >        bDescriptorType         4
> >        bInterfaceNumber        1
> >        bAlternateSetting       0
> >        bNumEndpoints           2
> >        bInterfaceClass       255 Vendor Specific Class
> >        bInterfaceSubClass     66
> >        bInterfaceProtocol      1
> >        iInterface              0
> >        Endpoint Descriptor:
> >          bLength                 7
> >          bDescriptorType         5
> >          bEndpointAddress     0x83  EP 3 IN
> >          bmAttributes            2
> >            Transfer Type            Bulk
> >            Synch Type               None
> >            Usage Type               Data
> >          wMaxPacketSize     0x0040  1x 64 bytes
> >          bInterval               0
> >        Endpoint Descriptor:
> >          bLength                 7
> >          bDescriptorType         5
> >          bEndpointAddress     0x04  EP 4 OUT
> >          bmAttributes            2
> >            Transfer Type            Bulk
> >            Synch Type               None
> >            Usage Type               Data
> >          wMaxPacketSize     0x0200  1x 512 bytes
> >          bInterval               0
> >
> >
> > And the output of:
> >
> > $ lsusb -D /dev/bus/usb/001/001
> > Device: ID 1d6b:0002 Linux Foundation 2.0 root hub
> > Couldn't open device, some information will be missing
> > Device Descriptor:
> >    bLength                18
> >    bDescriptorType         1
> >    bcdUSB               2.00
> >    bDeviceClass            9 Hub
> >    bDeviceSubClass         0 Unused
> >    bDeviceProtocol         0 Full speed (or root) hub
> >    bMaxPacketSize0        64
> >    idVendor           0x1d6b Linux Foundation
> >    idProduct          0x0002 2.0 root hub
> >    bcdDevice            3.06
> >    iManufacturer           3
> >    iProduct                2
> >    iSerial                 1
> >    bNumConfigurations      1
> >    Configuration Descriptor:
> >      bLength                 9
> >      bDescriptorType         2
> >      wTotalLength           25
> >      bNumInterfaces          1
> >      bConfigurationValue     1
> >      iConfiguration          0
> >      bmAttributes         0xe0
> >        Self Powered
> >        Remote Wakeup
> >      MaxPower                0mA
> >      Interface Descriptor:
> >        bLength                 9
> >        bDescriptorType         4
> >        bInterfaceNumber        0
> >        bAlternateSetting       0
> >        bNumEndpoints           1
> >        bInterfaceClass         9 Hub
> >        bInterfaceSubClass      0 Unused
> >        bInterfaceProtocol      0 Full speed (or root) hub
> >        iInterface              0
> >        Endpoint Descriptor:
> >          bLength                 7
> >          bDescriptorType         5
> >          bEndpointAddress     0x81  EP 1 IN
> >          bmAttributes            3
> >            Transfer Type            Interrupt
> >            Synch Type               None
> >            Usage Type               Data
> >          wMaxPacketSize     0x0004  1x 4 bytes
> >          bInterval              12
> >
> >
> >
> > and
> >
> > $ lsusb -D /dev/bus/usb/001/024
> > Device: ID 0bb4:0c02 High Tech Computer Corp. Dream / ADP1 / G1 /
> > Magic / Tattoo (Debug) Couldn't open device, some information will be
> > missing Device Descriptor:
> >    bLength                18
> >    bDescriptorType         1
> >    bcdUSB               2.00
> >    bDeviceClass            0 (Defined at Interface level)
> >    bDeviceSubClass         0
> >    bDeviceProtocol         0
> >    bMaxPacketSize0        64
> >    idVendor           0x0bb4 High Tech Computer Corp.
> >    idProduct          0x0c02 Dream / ADP1 / G1 / Magic / Tattoo (Debug)
> >    bcdDevice            2.22
> >    iManufacturer           1
> >    iProduct                2
> >    iSerial                 3
> >    bNumConfigurations      1
> >    Configuration Descriptor:
> >      bLength                 9
> >      bDescriptorType         2
> >      wTotalLength           55
> >      bNumInterfaces          2
> >      bConfigurationValue     1
> >      iConfiguration          0
> >      bmAttributes         0xe0
> >        Self Powered
> >        Remote Wakeup
> >      MaxPower              256mA
> >      Interface Descriptor:
> >        bLength                 9
> >        bDescriptorType         4
> >        bInterfaceNumber        0
> >        bAlternateSetting       0
> >        bNumEndpoints           2
> >        bInterfaceClass         8 Mass Storage
> >        bInterfaceSubClass      6 SCSI
> >        bInterfaceProtocol     80 Bulk (Zip)
> >        iInterface              0
> >        Endpoint Descriptor:
> >          bLength                 7
> >          bDescriptorType         5
> >          bEndpointAddress     0x81  EP 1 IN
> >          bmAttributes            2
> >            Transfer Type            Bulk
> >            Synch Type               None
> >            Usage Type               Data
> >          wMaxPacketSize     0x0200  1x 512 bytes
> >          bInterval               0
> >        Endpoint Descriptor:
> >          bLength                 7
> >          bDescriptorType         5
> >          bEndpointAddress     0x02  EP 2 OUT
> >          bmAttributes            2
> >            Transfer Type            Bulk
> >            Synch Type               None
> >            Usage Type               Data
> >          wMaxPacketSize     0x0200  1x 512 bytes
> >          bInterval               1
> >      Interface Descriptor:
> >        bLength                 9
> >        bDescriptorType         4
> >        bInterfaceNumber        1
> >        bAlternateSetting       0
> >        bNumEndpoints           2
> >        bInterfaceClass       255 Vendor Specific Class
> >        bInterfaceSubClass     66
> >        bInterfaceProtocol      1
> >        iInterface              0
> >        Endpoint Descriptor:
> >          bLength                 7
> >          bDescriptorType         5
> >          bEndpointAddress     0x83  EP 3 IN
> >          bmAttributes            2
> >            Transfer Type            Bulk
> >            Synch Type               None
> >            Usage Type               Data
> >          wMaxPacketSize     0x0040  1x 64 bytes
> >          bInterval               0
> >        Endpoint Descriptor:
> >          bLength                 7
> >          bDescriptorType         5
> >          bEndpointAddress     0x04  EP 4 OUT
> >          bmAttributes            2
> >            Transfer Type            Bulk
> >            Synch Type               None
> >            Usage Type               Data
> >          wMaxPacketSize     0x0200  1x 512 bytes
> >          bInterval               0
> >
> >
> > All I want to do is to be able to mount the usb as a storage device and
> > then edit files in it.
> >
> > Many thanks again and best wishes,
> > Ranjan
> >
> I didn't catch your original email, so please excuse if I answer a 
> question you didn't ask.
> 
> You want to mount a usb device that for some reason doesn't automount?
> 
> Try these commands in a console window:
> 
> [1] unplug the usb device
> 
> [2] > ls /dev
> 
> [3] plug in the device
> 
> [4] > ls /dev
> 
> Now identify the new device in /dev by comparing the output from [2] and 
> [4].

The output differs by sdb and sdc


> There should be a new device (probably) named /dev/sd?n - where "?" is a 
> letter ("a" - "z") and "n" is a number.
> There should be multiple devices, the device without a number, and 1 or 
> more devices, one for each partition
> in the devices's filesystem. If the device has no partitions, the you 
> only get /dev/sd?.
> 
> On my box, I always get devices "/dev/sdd" and "/dev/sdd1", but it 
> depends on the storage devices in your system.
> 
> This information should also be in /var/log/messages.

This matches the information above:

Nov 22 20:27:18 kharkai kernel: [25927.936207] sd 27:0:0:0: [sdb]
Attached SCSI removable disk 
Nov 22 20:27:18 kharkai kernel:
[25927.937450] sd 27:0:0:1: [sdc] Attached SCSI removable disk

> 
> If a new device doesn't appear in /dev, then someone smarter than me 
> will be required.
> 
> [5] > mkdir <some-directory>  -  I usually do > mkdir X

mkdir /mnt/myusb

> [6] > sudo mount /dev/sd?n  (or /dev/sd?) <some-directory>
> 
> If it fails to mount, then you should check the mount manpage for some 
> options that might help ( -t ), but
> mount usually does the right thing.

sudo mount  /dev/sdb /mnt/myusb 

yields the error:

mount: /dev/sdb: mount failed: Invalid argument


(same with /dev/sdc)

Not sure what to use with the -t argument. Here is the output of 

sudo mount -l


$ sudo mount -l
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime,seclabel)
devtmpfs on /dev type devtmpfs
(rw,nosuid,seclabel,size=1001772k,nr_inodes=250443,mode=755) devpts
on /dev/pts type devpts
(rw,nosuid,noexec,relatime,seclabel,gid=5,mode=620,ptmxmode=000) tmpfs
on /dev/shm type tmpfs (rw,nosuid,nodev,seclabel) tmpfs on /run type
tmpfs (rw,nosuid,nodev,seclabel,mode=755) /dev/sda2 on / type ext4
(rw,relatime,seclabel,data=ordered) [_Fedora-17-x86_6] securityfs
on /sys/kernel/security type securityfs
(rw,nosuid,nodev,noexec,relatime) selinuxfs on /sys/fs/selinux type
selinuxfs (rw,relatime) tmpfs on /sys/fs/cgroup type tmpfs
(rw,nosuid,nodev,noexec,seclabel,mode=755) cgroup
on /sys/fs/cgroup/systemd type cgroup
(rw,nosuid,nodev,noexec,relatime,release_agent=/usr/lib/systemd/systemd-cgroups-agent,name=systemd)
cgroup on /sys/fs/cgroup/cpuset type cgroup
(rw,nosuid,nodev,noexec,relatime,cpuset) cgroup
on /sys/fs/cgroup/cpu,cpuacct type cgroup
(rw,nosuid,nodev,noexec,relatime,cpuacct,cpu) cgroup
on /sys/fs/cgroup/memory type cgroup
(rw,nosuid,nodev,noexec,relatime,memory) cgroup
on /sys/fs/cgroup/devices type cgroup
(rw,nosuid,nodev,noexec,relatime,devices) cgroup
on /sys/fs/cgroup/freezer type cgroup
(rw,nosuid,nodev,noexec,relatime,freezer) cgroup
on /sys/fs/cgroup/net_cls type cgroup
(rw,nosuid,nodev,noexec,relatime,net_cls) cgroup
on /sys/fs/cgroup/blkio type cgroup
(rw,nosuid,nodev,noexec,relatime,blkio) cgroup
on /sys/fs/cgroup/perf_event type cgroup
(rw,nosuid,nodev,noexec,relatime,perf_event) systemd-1
on /proc/sys/fs/binfmt_misc type autofs
(rw,relatime,fd=26,pgrp=1,timeout=300,minproto=5,maxproto=5,direct)
configfs on /sys/kernel/config type configfs (rw,relatime) mqueue
on /dev/mqueue type mqueue (rw,relatime,seclabel) tmpfs on /media type
tmpfs (rw,nosuid,nodev,noexec,relatime,seclabel,mode=755) hugetlbfs
on /dev/hugepages type hugetlbfs (rw,relatime,seclabel) debugfs
on /sys/kernel/debug type debugfs (rw,relatime) /dev/sda5 on /home type
ext4 (rw,relatime,seclabel,data=ordered) [/usr/local1] /dev/sda6
on /usr/local type ext4 (rw,relatime,seclabel,data=ordered) fusectl
on /sys/fs/fuse/connections type fusectl (rw,relatime) gvfs-fuse-daemon
on /run/user/maitra/gvfs type fuse.gvfs-fuse-daemon
(rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)



> 
> You could also post the output of [6] to this list and someone will 
> figure it out.
> 
> Regards,
> 
> John
> 

Many thanks again and best wishes!
Ranjan

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