Do entries in /etc/fstab control what points devices partitions are automatically mounted to?
My question is about how to change the points where devices and partitions automatically mount to upon being detected.
The file /etc/fstab
contains the entry
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0
for mounting floppy disks at /media/floppy0
. I don't have a floppy drive on my computer, so I don't know the behavior of this. But, I have also included this line in my fstab
file:
/dev/sr0 /CDROM udf,iso9660 user,noauto,exec,utf8 0 0
I want to know if this will make CDs mount at /CDROM
instead of some point in /media/<user>
.
linux mount fstab
add a comment |
My question is about how to change the points where devices and partitions automatically mount to upon being detected.
The file /etc/fstab
contains the entry
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0
for mounting floppy disks at /media/floppy0
. I don't have a floppy drive on my computer, so I don't know the behavior of this. But, I have also included this line in my fstab
file:
/dev/sr0 /CDROM udf,iso9660 user,noauto,exec,utf8 0 0
I want to know if this will make CDs mount at /CDROM
instead of some point in /media/<user>
.
linux mount fstab
You do know that/dev/fd0
isn't the CD-ROM right?
– Gabriel
Jan 13 '16 at 21:42
@Gabriel I fixed it.
– Melab
Jan 14 '16 at 0:21
You specifiednoauto
so the CDROM will not automatically get mounted.
– user2121874
Jan 14 '16 at 0:31
1
/etc/fstab
has priority... See also What is the difference between mounting in fstab and by mounting in file manager
– don_crissti
Jan 14 '16 at 0:31
add a comment |
My question is about how to change the points where devices and partitions automatically mount to upon being detected.
The file /etc/fstab
contains the entry
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0
for mounting floppy disks at /media/floppy0
. I don't have a floppy drive on my computer, so I don't know the behavior of this. But, I have also included this line in my fstab
file:
/dev/sr0 /CDROM udf,iso9660 user,noauto,exec,utf8 0 0
I want to know if this will make CDs mount at /CDROM
instead of some point in /media/<user>
.
linux mount fstab
My question is about how to change the points where devices and partitions automatically mount to upon being detected.
The file /etc/fstab
contains the entry
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0
for mounting floppy disks at /media/floppy0
. I don't have a floppy drive on my computer, so I don't know the behavior of this. But, I have also included this line in my fstab
file:
/dev/sr0 /CDROM udf,iso9660 user,noauto,exec,utf8 0 0
I want to know if this will make CDs mount at /CDROM
instead of some point in /media/<user>
.
linux mount fstab
linux mount fstab
edited 20 mins ago
Rui F Ribeiro
40.1k1479136
40.1k1479136
asked Jan 13 '16 at 21:19
MelabMelab
90711323
90711323
You do know that/dev/fd0
isn't the CD-ROM right?
– Gabriel
Jan 13 '16 at 21:42
@Gabriel I fixed it.
– Melab
Jan 14 '16 at 0:21
You specifiednoauto
so the CDROM will not automatically get mounted.
– user2121874
Jan 14 '16 at 0:31
1
/etc/fstab
has priority... See also What is the difference between mounting in fstab and by mounting in file manager
– don_crissti
Jan 14 '16 at 0:31
add a comment |
You do know that/dev/fd0
isn't the CD-ROM right?
– Gabriel
Jan 13 '16 at 21:42
@Gabriel I fixed it.
– Melab
Jan 14 '16 at 0:21
You specifiednoauto
so the CDROM will not automatically get mounted.
– user2121874
Jan 14 '16 at 0:31
1
/etc/fstab
has priority... See also What is the difference between mounting in fstab and by mounting in file manager
– don_crissti
Jan 14 '16 at 0:31
You do know that
/dev/fd0
isn't the CD-ROM right?– Gabriel
Jan 13 '16 at 21:42
You do know that
/dev/fd0
isn't the CD-ROM right?– Gabriel
Jan 13 '16 at 21:42
@Gabriel I fixed it.
– Melab
Jan 14 '16 at 0:21
@Gabriel I fixed it.
– Melab
Jan 14 '16 at 0:21
You specified
noauto
so the CDROM will not automatically get mounted.– user2121874
Jan 14 '16 at 0:31
You specified
noauto
so the CDROM will not automatically get mounted.– user2121874
Jan 14 '16 at 0:31
1
1
/etc/fstab
has priority... See also What is the difference between mounting in fstab and by mounting in file manager– don_crissti
Jan 14 '16 at 0:31
/etc/fstab
has priority... See also What is the difference between mounting in fstab and by mounting in file manager– don_crissti
Jan 14 '16 at 0:31
add a comment |
1 Answer
1
active
oldest
votes
The mount
command looks at /etc/fstab
, but there is no requirement that an arbitrary command that mounts a filesystem has to look at /etc/fstab
. And there are many such commands.
From man mount
If only the directory or the device is given, for example:
mount /dir
then mount looks for a mountpoint (and if not found then for a device) in the /etc/fstab file.
In particular, software for automatically mounting filesystems may not issue a mount
command. So, no. You need to look at the particular software that is doing the mounting.
If you give more information about how your automatic mounting is configured, then it may be possible to give more specific information.
The operating system is Ubuntu 15.10.
– Melab
Jan 14 '16 at 0:20
Yes, but how is your automounting configured? Looking at the logs when you plug in a device will probably tell you. Try/var/log/messages
and/var/log/syslog
to start with.
– Faheem Mitha
Jan 14 '16 at 0: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%2f255180%2fdo-entries-in-etc-fstab-control-what-points-devices-partitions-are-automaticall%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
The mount
command looks at /etc/fstab
, but there is no requirement that an arbitrary command that mounts a filesystem has to look at /etc/fstab
. And there are many such commands.
From man mount
If only the directory or the device is given, for example:
mount /dir
then mount looks for a mountpoint (and if not found then for a device) in the /etc/fstab file.
In particular, software for automatically mounting filesystems may not issue a mount
command. So, no. You need to look at the particular software that is doing the mounting.
If you give more information about how your automatic mounting is configured, then it may be possible to give more specific information.
The operating system is Ubuntu 15.10.
– Melab
Jan 14 '16 at 0:20
Yes, but how is your automounting configured? Looking at the logs when you plug in a device will probably tell you. Try/var/log/messages
and/var/log/syslog
to start with.
– Faheem Mitha
Jan 14 '16 at 0:23
add a comment |
The mount
command looks at /etc/fstab
, but there is no requirement that an arbitrary command that mounts a filesystem has to look at /etc/fstab
. And there are many such commands.
From man mount
If only the directory or the device is given, for example:
mount /dir
then mount looks for a mountpoint (and if not found then for a device) in the /etc/fstab file.
In particular, software for automatically mounting filesystems may not issue a mount
command. So, no. You need to look at the particular software that is doing the mounting.
If you give more information about how your automatic mounting is configured, then it may be possible to give more specific information.
The operating system is Ubuntu 15.10.
– Melab
Jan 14 '16 at 0:20
Yes, but how is your automounting configured? Looking at the logs when you plug in a device will probably tell you. Try/var/log/messages
and/var/log/syslog
to start with.
– Faheem Mitha
Jan 14 '16 at 0:23
add a comment |
The mount
command looks at /etc/fstab
, but there is no requirement that an arbitrary command that mounts a filesystem has to look at /etc/fstab
. And there are many such commands.
From man mount
If only the directory or the device is given, for example:
mount /dir
then mount looks for a mountpoint (and if not found then for a device) in the /etc/fstab file.
In particular, software for automatically mounting filesystems may not issue a mount
command. So, no. You need to look at the particular software that is doing the mounting.
If you give more information about how your automatic mounting is configured, then it may be possible to give more specific information.
The mount
command looks at /etc/fstab
, but there is no requirement that an arbitrary command that mounts a filesystem has to look at /etc/fstab
. And there are many such commands.
From man mount
If only the directory or the device is given, for example:
mount /dir
then mount looks for a mountpoint (and if not found then for a device) in the /etc/fstab file.
In particular, software for automatically mounting filesystems may not issue a mount
command. So, no. You need to look at the particular software that is doing the mounting.
If you give more information about how your automatic mounting is configured, then it may be possible to give more specific information.
answered Jan 13 '16 at 21:45
Faheem MithaFaheem Mitha
23k1881136
23k1881136
The operating system is Ubuntu 15.10.
– Melab
Jan 14 '16 at 0:20
Yes, but how is your automounting configured? Looking at the logs when you plug in a device will probably tell you. Try/var/log/messages
and/var/log/syslog
to start with.
– Faheem Mitha
Jan 14 '16 at 0:23
add a comment |
The operating system is Ubuntu 15.10.
– Melab
Jan 14 '16 at 0:20
Yes, but how is your automounting configured? Looking at the logs when you plug in a device will probably tell you. Try/var/log/messages
and/var/log/syslog
to start with.
– Faheem Mitha
Jan 14 '16 at 0:23
The operating system is Ubuntu 15.10.
– Melab
Jan 14 '16 at 0:20
The operating system is Ubuntu 15.10.
– Melab
Jan 14 '16 at 0:20
Yes, but how is your automounting configured? Looking at the logs when you plug in a device will probably tell you. Try
/var/log/messages
and /var/log/syslog
to start with.– Faheem Mitha
Jan 14 '16 at 0:23
Yes, but how is your automounting configured? Looking at the logs when you plug in a device will probably tell you. Try
/var/log/messages
and /var/log/syslog
to start with.– Faheem Mitha
Jan 14 '16 at 0: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%2f255180%2fdo-entries-in-etc-fstab-control-what-points-devices-partitions-are-automaticall%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
You do know that
/dev/fd0
isn't the CD-ROM right?– Gabriel
Jan 13 '16 at 21:42
@Gabriel I fixed it.
– Melab
Jan 14 '16 at 0:21
You specified
noauto
so the CDROM will not automatically get mounted.– user2121874
Jan 14 '16 at 0:31
1
/etc/fstab
has priority... See also What is the difference between mounting in fstab and by mounting in file manager– don_crissti
Jan 14 '16 at 0:31