LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 10-29-2006, 09:03 AM   #1
mickey0
LQ Newbie
 
Registered: Oct 2006
Distribution: Kubuntu Dapper
Posts: 18

Rep: Reputation: 0
problem with usb pen


Hello eveybody,
my problem is explain below here; I'm using ubuntu 6.06 lts
and when I insert my pen nothing happen; udev is installed; usbmount too; could anyone suggest me? thanks
Code:
sudo fdisk -l
Password:

Disk /dev/hda: 60.0 GB, 60011642880 bytes
255 heads, 63 sectors/track, 7296 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1        2662    21382483+   7  HPFS/NTFS
/dev/hda2            4317        7296    23936850    f  W95 Ext'd (LBA)
/dev/hda3            2663        4316    13285755   83  Linux
/dev/hda5            4317        4383      538114+  82  Linux swap / Solaris
/dev/hda6            4384        7296    23398641    7  HPFS/NTFS

Partition table entries are not in disk order

Disk /dev/sda: 1027 MB, 1027080192 bytes
253 heads, 32 sectors/track, 247 cylinders
Units = cylinders of 8096 * 512 = 4145152 bytes

This doesn't look like a partition table
Probably you selected the wrong device.

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   ?           1         248     1002992    b  W95 FAT32
Partition 1 has different physical/logical endings:
     phys=(249, 252, 32) logical=(247, 196, 32)
Code:
dmesg|tail -40
[17179604.692000] Bluetooth: L2CAP ver 2.8
[17179604.692000] Bluetooth: L2CAP socket layer initialized
[17179604.692000] Bluetooth: RFCOMM socket layer initialized
[17179604.692000] Bluetooth: RFCOMM TTY layer initialized
[17179604.692000] Bluetooth: RFCOMM ver 1.7
[17179606.832000] [drm] Initialized drm 1.0.1 20051102
[17179606.844000] ACPI: PCI Interrupt 0000:01:00.0[A] -> Link [LNKA] -> GSI 11 (level, low) -> IRQ 11
[17179606.848000] [drm] Initialized radeon 1.24.0 20060225 on minor 0
[17179607.560000] agpgart: Found an AGP 2.0 compliant device at 0000:00:00.0.
[17179607.560000] agpgart: Putting AGP V2 device at 0000:00:00.0 into 1x mode
[17179607.560000] agpgart: Putting AGP V2 device at 0000:01:00.0 into 1x mode
[17179607.812000] [drm] Setting GART location based on new memory map
[17179607.812000] [drm] Loading R300 Microcode
[17179607.812000] [drm] writeback test succeeded in 2 usecs
[17179609.076000] NET: Registered protocol family 10
[17179609.076000] lo: Disabled Privacy Extensions
[17179609.076000] ADDRCONF(NETDEV_UP): eth1: link is not ready
[17179609.076000] IPv6 over IPv4 tunneling driver
[17179695.748000] usb 4-3: new high speed USB device using ehci_hcd and address 3
[17179696.004000] Initializing USB Mass Storage driver...
[17179696.004000] scsi0 : SCSI emulation for USB Mass Storage devices
[17179696.008000] usb-storage: device found at 3
[17179696.008000] usb-storage: waiting for device to settle before scanning
[17179696.008000] usbcore: registered new driver usb-storage
[17179696.008000] USB Mass Storage support registered.
[17179701.008000]   Vendor: FLASH     Model: DISK              Rev: 1100
[17179701.008000]   Type:   Direct-Access                      ANSI SCSI revision: 00
[17179701.020000] usb-storage: device scan complete
[17179701.068000] Driver 'sd' needs updating - please use bus_type methods
[17179701.068000] SCSI device sda: 2006016 512-byte hdwr sectors (1027 MB)
[17179701.072000] sda: Write Protect is off
[17179701.072000] sda: Mode Sense: 43 00 00 00
[17179701.072000] sda: assuming drive cache: write through
[17179701.076000] SCSI device sda: 2006016 512-byte hdwr sectors (1027 MB)
[17179701.080000] sda: Write Protect is off
[17179701.080000] sda: Mode Sense: 43 00 00 00
[17179701.080000] sda: assuming drive cache: write through
[17179701.080000]  sda: unknown partition table
[17179701.160000] sd 0:0:0:0: Attached scsi removable disk sda
[17179701.176000] sd 0:0:0:0: Attached scsi generic sg0 type 0
 
Old 10-29-2006, 11:07 AM   #2
rose_bud4201
Member
 
Registered: Aug 2002
Location: St Louis, MO
Distribution: Xubuntu, RHEL, Solaris 10
Posts: 929

Rep: Reputation: 30
If I'm reading this correctly, when you say "nothing happens", that's because you're looking for your USB key to automatically mount when you insert it?

What happens when you manually mount it- are there any error messages?

Try this thread from the Ubuntu forums about using rox to automatically mount certain devices; it may be closer to what you're looking for.
 
Old 10-29-2006, 11:43 AM   #3
mickey0
LQ Newbie
 
Registered: Oct 2006
Distribution: Kubuntu Dapper
Posts: 18

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by rose_bud4201
What happens when you manually mount it- are there any error messages?
Code:
sudo mount -t vfat /dev/sda /media/usb0
mount: wrong fs type, bad option, bad superblock on /dev/sda,
       missing codepage or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so
'sda' is only device in /dev with that suffix (there aren't any other sda* )
 
Old 10-30-2006, 03:55 AM   #4
mickey0
LQ Newbie
 
Registered: Oct 2006
Distribution: Kubuntu Dapper
Posts: 18

Original Poster
Rep: Reputation: 0
hi, the thing strange is that: what does that mean?
Code:
dmesg |tail
[17182683.044000] sda: assuming drive cache: write through
[17182683.048000] SCSI device sda: 2006016 512-byte hdwr sectors (1027 MB)
[17182683.048000] sda: Write Protect is off
[17182683.048000] sda: Mode Sense: 43 00 00 00
[17182683.048000] sda: assuming drive cache: write through
[17182683.048000]  sda: unknown partition table
[17182683.128000] sd 0:0:0:0: Attached scsi removable disk sda
[17182683.152000] sd 0:0:0:0: Attached scsi generic sg0 type 0
[17182859.380000] FAT: invalid media value (0xa5)
[17182859.380000] VFS: Can't find a valid FAT filesystem on dev sda.
and why doesn't this command show anything?
Code:
dmesg |grep sd[abc][1-9]
 
Old 10-30-2006, 07:58 AM   #5
soggycornflake
Member
 
Registered: May 2006
Location: England
Distribution: Slackware 10.2, Slamd64
Posts: 249

Rep: Reputation: 31
Quote:
and why doesn't this command show anything?
Code:

dmesg |grep sd[abc][1-9]

You've answered your own question:

Quote:
[17179701.080000] sda: unknown partition table
Quote:
Disk /dev/sda: 1027 MB, 1027080192 bytes
253 heads, 32 sectors/track, 247 cylinders
Units = cylinders of 8096 * 512 = 4145152 bytes

This doesn't look like a partition table
Probably you selected the wrong device.
Maybe the device got corrupted? Dump the mbr and see if it looks sane:

Code:
dd if=/dev/sda bs=512 count=1 | hexdump
 
Old 10-30-2006, 09:43 AM   #6
mickey0
LQ Newbie
 
Registered: Oct 2006
Distribution: Kubuntu Dapper
Posts: 18

Original Poster
Rep: Reputation: 0
the usb pen is OK under windows.......this is output of dd command; (it seems ok...)
Code:
dd if=/dev/sda bs=512 count=1 | hexdump
0000000 c033 c08e d88e d08e 00bc fc7c f48b 00bf
0000010 b906 0100 a5f2 44ea 0006 8b00 58d5 10b4
0000020 e4f6 ae05 8b04 8af0 0174 4c8b bb02 7c00
0000030 01b8 cd02 7213 8116 febf 5501 75aa ea0e
0000040 7c00 0000 fa80 7481 b202 8b80 bfea 07be
0000050 04b9 3200 8af6 0445 003c 0b74 053c 0774
0000060 3d80 7480 fe19 83c6 10c7 e9e2 f60a 0674
0000070 9cbe eb06 9004 b4be e806 000e feeb c68a
0000080 3104 be50 0699 1bbb 5306 acfc 2450 b47f
0000090 cd0e 5810 80a8 f274 0dc3 a00a 0a0d 6f4e
00000a0 6120 7463 7669 2065 6170 7472 7469 6f69
00000b0 2e6e ae2e 0a0d 6150 7472 7469 6f69 206e
00000c0 6f6e 2074 6f66 6e75 2e64 ae2e 0000 0000
00000d0 0000 0000 0000 0000 0000 0000 0000 0000
*
00001b0 0000 0000 0000 0000 0b0a 0d0c 0000 0101
00001c0 0001 fc0b f920 0020 0000 9be0 001e 0000
00001d0 0000 0000 0000 0000 0000 0000 0000 0000
*
00001f0 0000 0000 0000 0000 0000 0000 0000 aa55
1+0 records in
1+0 records out
512 bytes (512 B) copied, 0,032572 seconds, 15,7 kB/s
0000200
 
Old 10-30-2006, 11:58 AM   #7
mickey0
LQ Newbie
 
Registered: Oct 2006
Distribution: Kubuntu Dapper
Posts: 18

Original Poster
Rep: Reputation: 0
hi,
I can see that my pen is see from the system but mount isn't possible
Code:
lsusb -v -s 004

Bus 004 Device 004: ID 090c:1000 Feiya Technology Corp. Memory Bar
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0        64
  idVendor           0x090c Feiya Technology Corp.
  idProduct          0x1000 Memory Bar
  bcdDevice           11.00
  iManufacturer           1
  iProduct                2
  iSerial                 3
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           32
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0x80
      (Bus Powered)
    MaxPower              100mA
    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             255
      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             255
can't get device qualifier: Operation not permitted
can't get debug descriptor: Operation not permitted
cannot read device status, Operation not permitted (1)
Can lastest errors help you to help me? thanks
 
Old 10-30-2006, 01:20 PM   #8
soggycornflake
Member
 
Registered: May 2006
Location: England
Distribution: Slackware 10.2, Slamd64
Posts: 249

Rep: Reputation: 31
Quote:
Partition 1 has different physical/logical endings:
phys=(249, 252, 32) logical=(247, 196, 32)
According to fdisk, the partition entry is corrupted.

Code:
0101 0001 fc0b f920 0020 0000 9be0 001e
I can't make this add up either, but I've been up for 20 hours, so things are starting to look fuzzy.

The layout is described here.
 
Old 10-30-2006, 08:24 PM   #9
mickey0
LQ Newbie
 
Registered: Oct 2006
Distribution: Kubuntu Dapper
Posts: 18

Original Poster
Rep: Reputation: 0
hi, hi solved problem formatting pen under linux:
Code:
mkfs.vfat -n nome -I -F 32 /dev/sda
now I can mount it and and I see it under windows so; probabily some errors formatting from windows ? (but it worked under win!!!)
thanks
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
problem mounting USB pen drive Gogul VectorLinux 2 04-25-2006 03:42 AM
usb pen problem boombastic Linux - Hardware 1 09-08-2004 11:53 AM
Problem Mounting a USB Pen lawrencegoodman Linux - Hardware 1 02-19-2004 05:01 PM
USB pen drive problem Superboer12 Linux - Hardware 1 08-07-2003 02:36 PM
problem with usb pen drive dryhte Slackware 3 05-20-2003 01:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 08:39 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration