Find the answer to your Linux question:
Results 1 to 7 of 7
is there a difference between mounting a usb flash drive and an external hard drive through usb? when i mount the external hard drive when it is connected through usb ...
  1. #1
    Just Joined! kramerP's Avatar
    Join Date
    Dec 2005
    Posts
    19

    mounting usb devices

    is there a difference between mounting a usb flash drive and an external hard drive through usb? when i mount the external hard drive when it is connected through usb i can do
    Code:
    mount /mnt/usb/
    when my /etc/fstab contains the following
    Code:
    /dev/sda1	/mnt/usb	auto	defaults,user,noauto	0	0
    and it works perfectly fine but when i try to plug in my flash drive it does not like it. can someone explain what the issue is? i tried following this example http://www.debianhelp.org/Article3529.html but it did not work either.

    thoughts/suggestions?

  2. #2
    Linux Guru antidrugue's Avatar
    Join Date
    Oct 2005
    Location
    Montreal, Canada
    Posts
    3,212
    What does
    Code:
    cat /proc/bus/input/devices
    tell you?

    Are you sure the flash drive is /dev/sda1 also?
    "To express yourself in freedom, you must die to everything of yesterday. From the 'old', you derive security; from the 'new', you gain the flow."

    -Bruce Lee

  3. #3
    Just Joined!
    Join Date
    Apr 2006
    Posts
    31
    i'll bet that your flash drive is NOT sda1,if u have an sata drive then it most likely will be something else such as sdb1.this may be something that u wanna check out before u go any farther and edit things ,potentially doing much more work than u need to and complicating the problem.

  4. #4
    Just Joined! kramerP's Avatar
    Join Date
    Dec 2005
    Posts
    19
    in response to antidrugue....

    i did not have
    Code:
    cat /proc/bus/input/devices
    but i did have
    Code:
    cat /proc/bus/usb/devices
    and the output of that is
    Code:
    T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=12  MxCh= 2
    B:  Alloc=  0/900 us ( 0%), #Int=  0, #Iso=  0
    D:  Ver= 1.00 Cls=09(hub  ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
    P:  Vendor=0000 ProdID=0000 Rev= 0.00
    S:  Product=USB UHCI Root Hub
    S:  SerialNumber=dce0
    C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr=  0mA
    I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
    E:  Ad=81(I) Atr=03(Int.) MxPS=   8 Ivl=255ms

    in response to octavius....
    and i am not sure if the flash drive is sda1. i'm honestly not sure how to tell. i read somewhere that usb drives are really recognized as scsi drives and the usb drivers simply interface between the usb stack and scsi layer, so i was just assuming that the flash usb drive would follow the same rules (maybe this is just for usb drives not flash drives - but i am not sure maybe someone can clarify). and i didn't try doing it on sda2 or sda3, i thought that sda2 and sda3 would indicate two other partitions on a the drive attached to sda and there is only one partition. if anything i would think that doing sdb1, sdc1, etc. would work before doing sda2 or sda3. maybe i'm just completely confused by all of this. clarification on this stuff would really be beneficial.

    thanks,
    k

  5. #5
    Linux Guru antidrugue's Avatar
    Join Date
    Oct 2005
    Location
    Montreal, Canada
    Posts
    3,212
    When you plug the USB flash drive, many ways to know where it is:

    Code:
    cat /proc/scsi/scsi
    Code:
    tail /var/log/messages
    Code:
    ls /dev/s*
    Code:
    fdisk -l
    "To express yourself in freedom, you must die to everything of yesterday. From the 'old', you derive security; from the 'new', you gain the flow."

    -Bruce Lee

  6. #6
    Just Joined! kramerP's Avatar
    Join Date
    Dec 2005
    Posts
    19
    since there are so many places to find what i'm looking for, could you tell me what exactly i should be looking for when i run the commands you listed so i'm not just blindly running them. thanks.

  7. #7
    Just Joined!
    Join Date
    Aug 2005
    Location
    Australia
    Posts
    39

    My recomendation

    Quote Originally Posted by antidrugue
    When you plug the USB flash drive, many ways to know where it is:

    Code:
    cat /proc/scsi/scsi
    Code:
    tail /var/log/messages
    Code:
    ls /dev/s*
    Code:
    fdisk -l
    Personally out of these I would recommend typing into a terminal the following one:

    Code:
    ls /dev/sd*
    Basically it will find all the devices attached to your computer which begin with "sd" and that should include usb drives. If you have nothing else connected to your computer except the usb disk, and one entry shows up after typing this command, then the output is the name of your usb disk. If there is more than one entry than you have a more difficult job of finding the correct name and should try the other options, which are in my opinion more complicated.

    Also what distro are you running? Just Debian or one of its derivatives like Ubuntu?

Posting Permissions

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