Visit the LQ Articles and Editorials section
Go Back > Forums > Linux Forums > Linux - Hardware
User Name
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?


  Search this Thread
Old 12-15-2012, 06:12 PM   #1
Registered: Oct 2012
Location: Maryland
Distribution: Fedora, Slackware, Debian, Ubuntu, Knoppix, Helix,
Posts: 302
Blog Entries: 7

Rep: Reputation: 44
How do I acess removable media in a non-X system?

I have a non-X system(Debian) and I need to get to removable devices such as thumdrives and CDs. I know that there is some simple way to do this, but I don't know how. Thanks!
Old 12-15-2012, 07:17 PM   #2
Registered: Sep 2011
Location: Philly
Distribution: Gentoo
Posts: 470

Rep: Reputation: Disabled
You will need to learn a little about the dev filesystem.

When you plug in a usb drive it is given a file handle in the form of a filename in the /dev directory
Modern hard drives on linux are usually start with "sd" which is folowed by a letter representing the physical drive and a number representing the partition. For example if your system only has one drive, there is a pretty good chance that your boot partition is "sda1".A file called "sda" represents the entire drive, including he MBR and the partition table.
Usually, a usb drive will end up being the next drive after any hard drives and cd-rom's but you really kinda have to figure that one out. try "lsblk" It will probably either be sdb1 or sdc1 on most systems.

once you find it you just need to mount it. Make an empty directory. Technically you can do this anywhere but typically This is done in /media or /mnt.

then assuming you are trying to mount the first partition on the second drive, type:
mount /dev/sdb1 /media/"directory"
Before removing the drive you need to unmount it

umount /dev/sdb1
both of these commands generally require superuser access

hope that helps
1 members found this post helpful.
Old 12-15-2012, 09:12 PM   #3
Registered: Oct 2012
Location: Maryland
Distribution: Fedora, Slackware, Debian, Ubuntu, Knoppix, Helix,
Posts: 302
Blog Entries: 7

Original Poster
Rep: Reputation: 44
Problem solved! Thanks for the help! (I just new that it was simple!)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Questions re: Removable Media swarga Linux - General 4 12-31-2012 10:13 AM
HDD vs removable media ? sulekha Linux - Hardware 10 08-22-2010 09:38 PM
Fluxbox - removable media wadsworth Slackware 9 09-12-2009 12:31 AM
Removable Media zalibidas Slackware 2 01-24-2009 10:09 AM
No removable media works... phantom_cyph Linux - Hardware 3 04-29-2007 03:13 PM

All times are GMT -5. The time now is 01:17 AM.

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