LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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
 
LinkBack Search this Thread
Old 12-15-2012, 05:12 PM   #1
Nbiser
Member
 
Registered: Oct 2012
Location: Maryland
Distribution: Fedora, Slackware, Debian, Ubuntu, Knoppix, Helix,
Posts: 274
Blog Entries: 7

Rep: Reputation: 41
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, 06:17 PM   #2
mreff555
Member
 
Registered: Sep 2011
Location: Philly
Distribution: Gentoo
Posts: 435

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:
Code:
mount /dev/sdb1 /media/"directory"
Before removing the drive you need to unmount it

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

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

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


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Questions re: Removable Media swarga Linux - General 4 12-31-2012 09:13 AM
HDD vs removable media ? sulekha Linux - Hardware 10 08-22-2010 08:38 PM
Fluxbox - removable media wadsworth Slackware 9 09-11-2009 11:31 PM
Removable Media zalibidas Slackware 2 01-24-2009 09:09 AM
No removable media works... phantom_cyph Linux - Hardware 3 04-29-2007 02:13 PM


All times are GMT -5. The time now is 05:11 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration