Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
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.
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):
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.