LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-02-2009, 06:01 AM   #1
ehalsharairi
LQ Newbie
 
Registered: Oct 2009
Posts: 1

Rep: Reputation: 0
external drive


how mount external drive in linux?
 
Old 12-02-2009, 12:51 PM   #2
indiajoe
Member
 
Registered: Jan 2009
Location: India
Distribution: Porteus atma
Posts: 84

Rep: Reputation: 21
Hi
Which distro are you using?
When you connect some disto's will automatically mount it.
Otherwise open a terminal and give the command
mount /mnt/sdx
Note: /mnt/sdx should be replaced with your drive's mount location.
-Cheers
indiajoe
 
Old 12-02-2009, 04:15 PM   #3
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mint, OpenBSD
Posts: 11,328
Blog Entries: 12

Rep: Reputation: 2727Reputation: 2727Reputation: 2727Reputation: 2727Reputation: 2727Reputation: 2727Reputation: 2727Reputation: 2727Reputation: 2727Reputation: 2727Reputation: 2727
To determine drive's mount location, use the dmesg command as root. dmesg outputs a lot of information; you may have to hunt through it to find what you need.

Here's the portion of dmesg regarding my external USB drive. It tells me that the system sees the drive as drive sdb. My Ubuntu auto-mounts it, but, if I were going to mount it manually, I could type mount /dev/sdb.

Putting it my fstab is a litte more involved, but Google will turn up a lot of help for that.



Code:
[    8.228736] scsi 7:0:0:0: Direct-Access     WD       2500BEV External 1.05 PQ: 0 ANSI: 4
[    8.229085] sd 7:0:0:0: Attached scsi generic sg2 type 0
[    8.229719] sd 7:0:0:0: [sdb] 488397168 512-byte logical blocks: (250 GB/232 GiB)
[    8.230424] scsi 6:0:0:0: Direct-Access     Generic- Multi-Card       1.00 PQ: 0 ANSI: 0 CCS
[    8.230729] sd 6:0:0:0: Attached scsi generic sg3 type 0
[    8.230753] sd 7:0:0:0: [sdb] Write Protect is off
[    8.230755] sd 7:0:0:0: [sdb] Mode Sense: 21 00 00 00
[    8.230757] sd 7:0:0:0: [sdb] Assuming drive cache: write through
[    8.232216] sd 7:0:0:0: [sdb] Assuming drive cache: write through
[    8.232220]  sdb:
More about dmesg: http://www.linfo.org/dmesg.html

More about fstab: http://www.tuxfiles.org/linuxhelp/fstab.html
 
Old 12-02-2009, 07:03 PM   #4
SharpyWarpy
Member
 
Registered: Feb 2003
Location: Florida
Distribution: Fedora 18
Posts: 862

Rep: Reputation: 90
You might run
fdisk -l
to see all the available drives and their partitions. Then read up on the mount command with
man mount
Then you'll be able to figure it all out for yourself and remember it forever. Check out the "-o" switch in the mount command, it controls -- among other things -- whether you can write to the partition once it is mounted. Have fun.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
ubuntu installed on external hard drive, can't startup without external hard drive. Vanostaajen Linux - Software 23 01-20-2009 10:59 AM
external enclosure for an internal hard drive vs external USB hard drive powah Linux - Hardware 1 03-10-2006 10:03 AM
Laptop DVD drive has died, will linux boot from an external drive? Stevetgn Linux - Newbie 2 05-14-2005 06:18 PM
IRQ conflict when external drive/flash-drive is put to use Nightfrost Linux - Hardware 0 10-22-2004 05:15 AM
Installing SuSE on an external FireWire drive: YaST can't edit partitions on drive kivimaki Linux - Distributions 2 09-13-2004 09:52 PM


All times are GMT -5. The time now is 08:29 PM.

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