LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 08-29-2013, 05:55 AM   #1
brunobrunt
LQ Newbie
 
Registered: Aug 2013
Posts: 2

Rep: Reputation: Disabled
Mounting my external hard drive


Hi, am new bee to the Linux environment and will love to ask a question.am trying to mount my toshiba external hard drive. 1st I create a directory in the /media directory named toshiba,I now try to mount it and it gives me: can find /dev/ sda/ media/ toshiba in the / etc/ fstab or / etc/ mtab. please what do I do? Thanks brunobrunt.
 
Old 08-29-2013, 06:03 AM   #2
Jamesfredette
LQ Newbie
 
Registered: Aug 2013
Posts: 12

Rep: Reputation: Disabled
better to contact the desk support for this query i am sure u would get delighted with this thing and would get a genuine solution related to linux
 
Old 08-29-2013, 06:17 AM   #3
Razaliel
LQ Newbie
 
Registered: Jul 2013
Distribution: Debian testing
Posts: 21

Rep: Reputation: 5
Hi, to find out what is the name of your external HDD, type:

sudo fdisk -l

and you'll find your HDD with a name /dev/sdb1 or something like that. To mount it:

mount /dev/sdb1 /media/toshiba

to unmount it use:

umount /media/toshiba
 
Old 08-29-2013, 06:36 AM   #4
brunobrunt
LQ Newbie
 
Registered: Aug 2013
Posts: 2

Original Poster
Rep: Reputation: Disabled
Hi, we'll I have tried it again and it keeps telling me can't find /dev/sda1/ media/toshiba in /etc/fstab or /etc/mtab.can someone help me. Thanks.
 
Old 08-29-2013, 06:39 AM   #5
Razaliel
LQ Newbie
 
Registered: Jul 2013
Distribution: Debian testing
Posts: 21

Rep: Reputation: 5
Can you please post the output of sudo fdisk -l, the command(copy&paste please) that you type to mount your HDD and finally your fstab file.
 
Old 08-29-2013, 10:24 AM   #6
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 6,872

Rep: Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249
One doesn't mount 'hard drive' but rather filesystems. In addition to the output requested above, what filesystem do you have on the drive? Strange that it would be sda/sda1 which would generally refer to the first hard drive rather than a secondary/external drive.
 
Old 08-29-2013, 04:27 PM   #7
edorig
Member
 
Registered: Apr 2013
Location: France
Distribution: Slackware; Scientific Linux
Posts: 107

Rep: Reputation: Disabled
Quote:
Originally Posted by brunobrunt View Post
Hi, am new bee to the Linux environment and will love to ask a question.am trying to mount my toshiba external hard drive. 1st I create a directory in the /media directory named toshiba,I now try to mount it and it gives me: can find /dev/ sda/ media/ toshiba in the / etc/ fstab or / etc/ mtab. please what do I do? Thanks brunobrunt.
You must be careful to type a space between /dev/sda and /media/toshiba. Otherwise, the mount command assumes
that you are trying to mount the device /dev/sda/media/toshiba and searches for the mount point for that device in /etc/fstab. The error message simply indicates that the search has failed.

Besides that problem, for Linux /dev/sda is the whole device, partition tables included. You generally mount a partition such as /dev/sda1 (in an unpartitioned disk, there is no other partition. A partitioned disk will have
other partitions /dev/sda2 etc...). So the correct command is mount /dev/sda1 /media/toshiba.

Please look at the online documentation of mount and fstab by typing man mount and man fstab.
You can also read the documentation of filesystems in Linux System Administrator Guide.
 
Old 08-29-2013, 09:50 PM   #8
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mint, OpenBSD
Posts: 11,358
Blog Entries: 12

Rep: Reputation: 2739Reputation: 2739Reputation: 2739Reputation: 2739Reputation: 2739Reputation: 2739Reputation: 2739Reputation: 2739Reputation: 2739Reputation: 2739Reputation: 2739
fstab and mounting were among the more difficult concepts for me to understand when I started with Linux.

You need to know how the system is seeing the partition you wish to mount; the fdisk -l command mentioned above will tell you that. Then you need a mount point, which you already have created. Then you need to string them together properly. You may also need additional arguments, depending on what you need to accomplish.

Here is the best fstab tutorial I have found (though it stops short of UUIDs). It should help a lot with those concepts.

http://www.tuxfiles.org/linuxhelp/fstab.html

(When I tested this post, the link above was having issues, so here's a link to another excellent article).

Here's a bit from my /etc/fstab for mounting a partition on my external HDD. The first line, the one that's remarked out, shows the entry I used to have. The second line shows the entry as I edited it to use the UUID (when I'm doing this sort of editing, I keep the old entry in case I mess up the new one):

Code:
# /dev/sdb5       /media/sdb5     ext3    rw,user,auto    0      1
UUID=7900ade7-de36-41e5-88b5-2d7aaa8adcd4       /media/sdb5     ext3    rw,user,auto    0      1

Last edited by frankbell; 08-29-2013 at 09:54 PM.
 
Old 08-29-2013, 10:04 PM   #9
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
What 0S are you running?
What fs type?
Is it windows, linux or mac?
Have you checked dmesg to see what is registering there?
Also if is an external drive it would probably show up as usb0 if it is the only usb device plugged in.
 
  


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
External Hard Drive not Mounting beetleman64 Linux - Hardware 1 05-15-2010 11:02 AM
mounting external hard drive perrywillis@cox.net SUSE / openSUSE 5 10-16-2006 02:22 AM
Mounting my external hard drive... Azzath Linux - Hardware 8 02-26-2005 04:27 AM
mounting an external hard drive adin Linux - Hardware 1 01-04-2005 05:18 AM
external hard drive mounting. gonus Debian 5 08-27-2004 03:51 PM


All times are GMT -5. The time now is 12:06 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