Find the answer to your Linux question:
Results 1 to 6 of 6
Well the thing is everytime i plug in my pendrive in system .. i have to copy paste a particular file into my folder to work on the terminal screen. ...
  1. #1
    Just Joined!
    Join Date
    Aug 2009
    Posts
    11

    Question How to access pendrive using terminal

    Well the thing is everytime i plug in my pendrive in system ..
    i have to copy paste a particular file into my folder to work on the terminal screen.

    I know it sounds ridiculous , but how do i access my pendrive files directly from my terminal screen.?

  2. #2
    Just Joined! Farmer Mike's Avatar
    Join Date
    Sep 2006
    Location
    Peyton Colorado
    Posts
    48
    The pendrive should mount under /media. Mine shows up as LEXAR MEDIA, and since the command line will stop at the space, I put it in quotes like so:

    cd /media/"LEXAR MEDIA"
    or
    ls -al /media/"LEXAR MEDIA"

  3. #3
    Linux Newbie
    Join Date
    Nov 2007
    Location
    Planet Earth
    Posts
    152
    Hi,

    If there is no a 'media' folder (may be different in some distros) you can use the 'df' command to see the current mounted filesystems (disk usage actually)

    Hugo
    EOF

  4. #4
    Just Joined!
    Join Date
    Aug 2009
    Posts
    11

    Exclamation

    In the GUI the pen drive shows up ..... but i want to access using the terminal screen.

    for example in windows
    the default drive will be like
    C:\ (provided ur OS is installed in it )

    but if i write

    C:\ D: the drive changes . It becomes

    D:\ and i can access all the files in that particular drive.

    can i do something like that .....

  5. #5
    Just Joined! vishesh's Avatar
    Join Date
    Jul 2009
    Location
    Delhi
    Posts
    33

    udevmonitor

    start udevmonitor command
    root#udevmonitor
    now insert pern drive, just check name device file for your pen drive (may be /dev/sdb1)
    now mount it
    root#mkdir /mnt/pendrive
    root#mount -t vfat /dev/sdb1 /mnt/pendrive
    here vfat is file system, i suppose pen drive formatted in windows
    thnks
    Say NO to Microsoft

  6. #6
    Just Joined!
    Join Date
    Aug 2009
    Posts
    11
    Well it worked ..

    But wiithout the udevmonitor command.

    Could u enlighten me on wat does that command particularly works.

Posting Permissions

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