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.
yes, actually you cannot mount a drive, but a filesystem. Nothing else, but a filesystem. They are stored within partitions and partitions are used to split a drive into parts.
Sometimes we mix the two expressions (we say mount a drive, but actually we never do that, just mount a filesystem stored on that device). Usually this is the case when we have an usb stick with a single filesystem.
I have created the directory nick/Music/music, and I have put an instruction in fstab to mount SDB1. And then I have issued the command mount -a. So what else is necessary?
Once the sdb1 is mounted, you can access the files normally. Nothing else is to be done.
IF you want to see it mounted, confirmation only, type mount by itself, and mount will list all mounted file systems on your system. keep in mind, this is not necessary, just giving you a way to verify what is mounted.
I have created the directory nick/Music/music, and I have put an instruction in fstab to mount SDB1. And then I have issued the command mount -a. So what else is necessary?
would be nice to explain exactly what did you do. Which directory did you create exactly? How did you put what instruction in fstab? What's happened when you executed mount -a? Was that successful at all?
Without details hard to say anything.
would be nice to explain exactly what did you do. Which directory did you create exactly? How did you put what instruction in fstab? What's happened when you executed mount -a? Was that successful at all?
Without details hard to say anything.
I did what I said I was going to do.
In the terminal I used CD /Music then mkdir music to create the directory.
I used gksudo gedit fstab to edit the fstab file. Then I saved it.
If you using quick reply on LQ, there is a little icon, looks like a comic quote.
Press it once it enters square brace QUOTE and /QUOTE. You paste between the quote and /quote.
Quote:
Does the above mean that I should change SDB1 in the fstab file back to SDB?
No. What you have in fstab looks fine to me, as long as the UUID is correct.
If you got no output when you ran the mount -a command, that is complete success. Typically, commands only return errors, or the data they are asked for.
In the terminal I used CD /Music then mkdir music to create the directory.
I used gksudo gedit fstab to edit the fstab file. Then I saved it.
Then I typed mount -a
no, this is not the exact story. Unfortunately cd and CD are not the same things, and there are a lot of [other] things which could be important but you did not post.
So would be better to show exactly what did you type into the terminal, what's happened. Also we would like to know what was the response of these commands (if they were successfully executed or there was a message or ....).
no, this is not the exact story. Unfortunately cd and CD are not the same things, and there are a lot of [other] things which could be important but you did not post.
So would be better to show exactly what did you type into the terminal, what's happened. Also we would like to know what was the response of these commands (if they were successfully executed or there was a message or ....).
After changing fstab again to change sdb1 to sdb, I tried the mount -a command and was told that mount point /nick/Music/music does not exist. Should it be nick/Music/music, ie without the leading '/'?
After changing fstab again to change sdb1 to sdb, I tried the mount -a command and was told that mount point /nick/Music/music does not exist. Should it be nick/Music/music, ie without the leading '/'?
The mount point always should begin with / . And should exist. You can easily check it with [for example] ls -l <mount-point>:
Code:
ls -l /nick/Music/music
obviously you need to create this directory before trying to use it as mount point.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.