How to mount a drive from command line

Clash Royale CLAN TAG#URR8PPP
I normally mount my drives just by opening it from filesystem. It automatically mount when I click on a drive. But I wanted to mount a drive from command line. I did ran this command
sudo mount -o exec /media/john/Study
but I get this error
mount: /dev/sda8 already mounted or /media/john/Study busy
mount: according to mtab, /dev/sda8 is already mounted on /media/john/Study
This error show when I already mounted the Study drive by opening it from filesystem. But if I unmount the drive and then run the same command I get this error
mount: can't find /media/john/Study in /etc/fstab or /etc/mtab
How can I mount a drive from commandline?
This is very annoying to mount each time I restart or start my pc. A bonus would be if you could tell me how can I automatically mount my drives automatically when I start my pc.
linux filesystems mount
add a comment |
I normally mount my drives just by opening it from filesystem. It automatically mount when I click on a drive. But I wanted to mount a drive from command line. I did ran this command
sudo mount -o exec /media/john/Study
but I get this error
mount: /dev/sda8 already mounted or /media/john/Study busy
mount: according to mtab, /dev/sda8 is already mounted on /media/john/Study
This error show when I already mounted the Study drive by opening it from filesystem. But if I unmount the drive and then run the same command I get this error
mount: can't find /media/john/Study in /etc/fstab or /etc/mtab
How can I mount a drive from commandline?
This is very annoying to mount each time I restart or start my pc. A bonus would be if you could tell me how can I automatically mount my drives automatically when I start my pc.
linux filesystems mount
add a comment |
I normally mount my drives just by opening it from filesystem. It automatically mount when I click on a drive. But I wanted to mount a drive from command line. I did ran this command
sudo mount -o exec /media/john/Study
but I get this error
mount: /dev/sda8 already mounted or /media/john/Study busy
mount: according to mtab, /dev/sda8 is already mounted on /media/john/Study
This error show when I already mounted the Study drive by opening it from filesystem. But if I unmount the drive and then run the same command I get this error
mount: can't find /media/john/Study in /etc/fstab or /etc/mtab
How can I mount a drive from commandline?
This is very annoying to mount each time I restart or start my pc. A bonus would be if you could tell me how can I automatically mount my drives automatically when I start my pc.
linux filesystems mount
I normally mount my drives just by opening it from filesystem. It automatically mount when I click on a drive. But I wanted to mount a drive from command line. I did ran this command
sudo mount -o exec /media/john/Study
but I get this error
mount: /dev/sda8 already mounted or /media/john/Study busy
mount: according to mtab, /dev/sda8 is already mounted on /media/john/Study
This error show when I already mounted the Study drive by opening it from filesystem. But if I unmount the drive and then run the same command I get this error
mount: can't find /media/john/Study in /etc/fstab or /etc/mtab
How can I mount a drive from commandline?
This is very annoying to mount each time I restart or start my pc. A bonus would be if you could tell me how can I automatically mount my drives automatically when I start my pc.
linux filesystems mount
linux filesystems mount
asked Feb 14 '16 at 18:02
user3128796user3128796
1365
1365
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
First, if you want to permanently mount it, you must make an entry for it in /etc/fstab file like this:
/dev/sda8 /media/john/Study ext4 defaults 0 0
Second, if you just want to mount it from the command line each time, then use the full command, indicating the drive and mount point.
mount /dev/sda8 /media/john/Study
Now I get this error fuse: failed to access mountpoint /media/bcc/Study: No such file or directory
– user3128796
Feb 14 '16 at 21:16
ok then make the directory /media/bcc/Study first
– Ijaz Ahmad Khan
Feb 14 '16 at 21:20
This gives error "mount: can't find /media/bcc/Study in /etc/fstab or /etc/mtab"
– user3128796
Feb 14 '16 at 21:23
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f262217%2fhow-to-mount-a-drive-from-command-line%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
First, if you want to permanently mount it, you must make an entry for it in /etc/fstab file like this:
/dev/sda8 /media/john/Study ext4 defaults 0 0
Second, if you just want to mount it from the command line each time, then use the full command, indicating the drive and mount point.
mount /dev/sda8 /media/john/Study
Now I get this error fuse: failed to access mountpoint /media/bcc/Study: No such file or directory
– user3128796
Feb 14 '16 at 21:16
ok then make the directory /media/bcc/Study first
– Ijaz Ahmad Khan
Feb 14 '16 at 21:20
This gives error "mount: can't find /media/bcc/Study in /etc/fstab or /etc/mtab"
– user3128796
Feb 14 '16 at 21:23
add a comment |
First, if you want to permanently mount it, you must make an entry for it in /etc/fstab file like this:
/dev/sda8 /media/john/Study ext4 defaults 0 0
Second, if you just want to mount it from the command line each time, then use the full command, indicating the drive and mount point.
mount /dev/sda8 /media/john/Study
Now I get this error fuse: failed to access mountpoint /media/bcc/Study: No such file or directory
– user3128796
Feb 14 '16 at 21:16
ok then make the directory /media/bcc/Study first
– Ijaz Ahmad Khan
Feb 14 '16 at 21:20
This gives error "mount: can't find /media/bcc/Study in /etc/fstab or /etc/mtab"
– user3128796
Feb 14 '16 at 21:23
add a comment |
First, if you want to permanently mount it, you must make an entry for it in /etc/fstab file like this:
/dev/sda8 /media/john/Study ext4 defaults 0 0
Second, if you just want to mount it from the command line each time, then use the full command, indicating the drive and mount point.
mount /dev/sda8 /media/john/Study
First, if you want to permanently mount it, you must make an entry for it in /etc/fstab file like this:
/dev/sda8 /media/john/Study ext4 defaults 0 0
Second, if you just want to mount it from the command line each time, then use the full command, indicating the drive and mount point.
mount /dev/sda8 /media/john/Study
edited Jan 16 '18 at 2:54
Jeff Schaller
40.9k1056130
40.9k1056130
answered Feb 14 '16 at 20:54
Ijaz Ahmad KhanIjaz Ahmad Khan
3,47431535
3,47431535
Now I get this error fuse: failed to access mountpoint /media/bcc/Study: No such file or directory
– user3128796
Feb 14 '16 at 21:16
ok then make the directory /media/bcc/Study first
– Ijaz Ahmad Khan
Feb 14 '16 at 21:20
This gives error "mount: can't find /media/bcc/Study in /etc/fstab or /etc/mtab"
– user3128796
Feb 14 '16 at 21:23
add a comment |
Now I get this error fuse: failed to access mountpoint /media/bcc/Study: No such file or directory
– user3128796
Feb 14 '16 at 21:16
ok then make the directory /media/bcc/Study first
– Ijaz Ahmad Khan
Feb 14 '16 at 21:20
This gives error "mount: can't find /media/bcc/Study in /etc/fstab or /etc/mtab"
– user3128796
Feb 14 '16 at 21:23
Now I get this error fuse: failed to access mountpoint /media/bcc/Study: No such file or directory
– user3128796
Feb 14 '16 at 21:16
Now I get this error fuse: failed to access mountpoint /media/bcc/Study: No such file or directory
– user3128796
Feb 14 '16 at 21:16
ok then make the directory /media/bcc/Study first
– Ijaz Ahmad Khan
Feb 14 '16 at 21:20
ok then make the directory /media/bcc/Study first
– Ijaz Ahmad Khan
Feb 14 '16 at 21:20
This gives error "mount: can't find /media/bcc/Study in /etc/fstab or /etc/mtab"
– user3128796
Feb 14 '16 at 21:23
This gives error "mount: can't find /media/bcc/Study in /etc/fstab or /etc/mtab"
– user3128796
Feb 14 '16 at 21:23
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f262217%2fhow-to-mount-a-drive-from-command-line%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown