Find the answer to your Linux question:
Results 1 to 8 of 8
Hi I have a USB memory disk and it is not working in Linux. Here is a the command I enter: mount -t vfat /dev/sda2 /usb/mnt my sda1 is my ...
  1. #1
    mss
    mss is offline
    Just Joined! mss's Avatar
    Join Date
    Jan 2006
    Posts
    45

    USB Problems

    Hi I have a USB memory disk and it is not working in Linux.

    Here is a the command I enter:

    mount -t vfat /dev/sda2 /usb/mnt

    my sda1 is my harddrive so I am guessing sda2 should link to the USB.

    Here is the error I get:
    mount: wrong fs type, bad option, bad superblock on /dev/sda2, missing codepage or other error.

    any ideas what is wrong.

    the usb works on windows and fedora.

  2. #2
    Linux Engineer Zelmo's Avatar
    Join Date
    Jan 2006
    Location
    Riverton, UT, USA
    Posts
    1,001
    Quote Originally Posted by mss
    my sda1 is my harddrive so I am guessing sda2 should link to the USB.
    That's close. If sda1 is the hard drive, sdb1 is probably the USB. You can find out for sure what it is by plugging it in, waiting about 2 seconds, and running dmesg.
    Stand up and be counted as a Linux user!

  3. #3
    Linux Newbie
    Join Date
    Jan 2007
    Posts
    110
    Why guessing?

    Why not ask Linux to report to us if the device is available for mounting? by command
    Code:
    fdisk -l
    by looking at the disk size, partition size and partition type a Linux user should have some idea if the USB device is recognised and under what name it is called.

    /dev/sda2 is the 2nd partition of disk sda which can either be a Sata or a USB device. I doubt it is the intention of the OP to mount the 2nd partition of a USB device.

    If you don't understand the partition type, do a "fdisk /dev/sda" and press t to see all the partition type supported by Linux.

    USB memory drives are always pre-partitioned as fat16 or fat32 with type 6 and c respectively.

  4. #4
    mss
    mss is offline
    Just Joined! mss's Avatar
    Join Date
    Jan 2006
    Posts
    45
    When I do
    Code:
    fdisk -l
    nothing comes up. I typed
    Code:
    dmesg
    and this was the result.

    Code:
    hub.c: new USB device 00:1d.7-5, assigned address 2
    usb_control/bulk_msg: timeout
    usb.c: USB device not accepting new address=2 (error=-110)
    hub.c: new USB device 00:1d.7-5, assigned address 3
    usb_control/bulk_msg: timeout
    usb.c: USB device not accepting new address=3 (error=-110)

  5. #5
    Linux Newbie
    Join Date
    Jan 2007
    Posts
    110
    Debian family isn't very good at this by not telling root provilege is needed for "fdisk -l".

    Try
    Code:
    sudo fdisk -l
    There must be a hard disk or your Debian won't boot. "fdisk -l" lists every partition in every hard disk you have, including USB devices. If it is reported then you should be able to mount it.

  6. #6
    mss
    mss is offline
    Just Joined! mss's Avatar
    Join Date
    Jan 2006
    Posts
    45
    ummm, ya, i am root. but still fdisk -l (l as Lego) doesn't show anything. When i execute it, it just comes back to the prompt again. i am stumped.

  7. #7
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    excute this
    Code:
    su -
    fdisk -l






    Casper
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  8. #8
    Banned
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    1,121
    run
    Code:
    cat /proc/partitions
    to see all usable partitions

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •