Mount a folder with a space on LinuxHow can I bind mount a directory with a space in it?Mount Windows CIFS...
Impossible darts scores
Are there any vegetarian astronauts?
How to positively portray high and mighty characters?
Calculating the partial sum of a expl3 sequence
Does ultrasonic bath cleaning damage laboratory volumetric glassware calibration?
Does the posterior necessarily follow the same conditional dependence structure as the prior?
Is adding a new player (or players) a DM decision, or a group decision?
In the Marvel universe, can a human have a baby with any non-human?
Is there a maximum distance from a planet that a moon can orbit?
What are the penalties for overstaying in USA?
Could Sauron have read Tom Bombadil's mind if Tom had held the Palantir?
Mount a folder with a space on Linux
C-152 carb heat on before landing in hot weather?
Pull-up sequence accumulator counter
How can I repair scratches on a painted French door?
How to get cool night-vision without lame drawbacks?
Why is the Turkish president's surname spelt in Russian as Эрдоган, with г?
How to determine what is the correct level of detail when modelling?
Does image quality of the lens affect "focus and recompose" technique?
Cascading Repair Costs following Blown Head Gasket on a 2004 Subaru Outback
When is it ok to add filler to a story?
How do I parse the Zhou Enlai quote 为了中华之崛起而读书?
Ending: accusative or not?
Links to webpages in books
Mount a folder with a space on Linux
How can I bind mount a directory with a space in it?Mount Windows CIFS Share with smbclient?Allowing users to mount /dev/loop0linux shutdown hang with wifi cifs mountsHow can I mount a remote folder to my local directoryprevent chown/chmod access denied errors with cifs mountUnuntu 12.0.4 LTS Boots to some unknown mount pointLinux (Ubuntu) CIFS mount with restrictive umaskCreate CIFS mount read/write for multiple users in group userswindows network drive linux mount requires sudo after mountedWSL drvfs mount issues — user mapping not recognised?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
I've been trying to get to some Access DB files (I know, didn't know this still existed either) from a Windows (7) machine onto my Linux Mint (19) machine.
Up 'til now, I've never had to mount something with a space in it, I've always done:
$ sudo mount - cifs //192.168.1.123/folder /mnt -o user=some,pass=user
but now I need to mount "Program Files" as it would seem the DB files are stored in the Common Data directory (for whatever reason).
I initially tried wrapping the mount target in quotes, which didn't work. I also tried adding a backslash before the space, again nothing.
After a quick Google's I came across this post and changed my command to this:
$ sudo mount - cifs //192.168.1.123/Program40Files /mnt/ -o user=some,pass=user
but this outputs:
mount: bad usage
Try 'mount --help' for more information.
So it would seem I'm up against the wall on this one, how do I go about mounting a Windows directory that has a space in the name?
linux mount
add a comment |
I've been trying to get to some Access DB files (I know, didn't know this still existed either) from a Windows (7) machine onto my Linux Mint (19) machine.
Up 'til now, I've never had to mount something with a space in it, I've always done:
$ sudo mount - cifs //192.168.1.123/folder /mnt -o user=some,pass=user
but now I need to mount "Program Files" as it would seem the DB files are stored in the Common Data directory (for whatever reason).
I initially tried wrapping the mount target in quotes, which didn't work. I also tried adding a backslash before the space, again nothing.
After a quick Google's I came across this post and changed my command to this:
$ sudo mount - cifs //192.168.1.123/Program40Files /mnt/ -o user=some,pass=user
but this outputs:
mount: bad usage
Try 'mount --help' for more information.
So it would seem I'm up against the wall on this one, how do I go about mounting a Windows directory that has a space in the name?
linux mount
The40syntax is for fstab, not for shell command line.
– grawity
6 hours ago
add a comment |
I've been trying to get to some Access DB files (I know, didn't know this still existed either) from a Windows (7) machine onto my Linux Mint (19) machine.
Up 'til now, I've never had to mount something with a space in it, I've always done:
$ sudo mount - cifs //192.168.1.123/folder /mnt -o user=some,pass=user
but now I need to mount "Program Files" as it would seem the DB files are stored in the Common Data directory (for whatever reason).
I initially tried wrapping the mount target in quotes, which didn't work. I also tried adding a backslash before the space, again nothing.
After a quick Google's I came across this post and changed my command to this:
$ sudo mount - cifs //192.168.1.123/Program40Files /mnt/ -o user=some,pass=user
but this outputs:
mount: bad usage
Try 'mount --help' for more information.
So it would seem I'm up against the wall on this one, how do I go about mounting a Windows directory that has a space in the name?
linux mount
I've been trying to get to some Access DB files (I know, didn't know this still existed either) from a Windows (7) machine onto my Linux Mint (19) machine.
Up 'til now, I've never had to mount something with a space in it, I've always done:
$ sudo mount - cifs //192.168.1.123/folder /mnt -o user=some,pass=user
but now I need to mount "Program Files" as it would seem the DB files are stored in the Common Data directory (for whatever reason).
I initially tried wrapping the mount target in quotes, which didn't work. I also tried adding a backslash before the space, again nothing.
After a quick Google's I came across this post and changed my command to this:
$ sudo mount - cifs //192.168.1.123/Program40Files /mnt/ -o user=some,pass=user
but this outputs:
mount: bad usage
Try 'mount --help' for more information.
So it would seem I'm up against the wall on this one, how do I go about mounting a Windows directory that has a space in the name?
linux mount
linux mount
asked 8 hours ago
treyBaketreyBake
1141 silver badge12 bronze badges
1141 silver badge12 bronze badges
The40syntax is for fstab, not for shell command line.
– grawity
6 hours ago
add a comment |
The40syntax is for fstab, not for shell command line.
– grawity
6 hours ago
The
40 syntax is for fstab, not for shell command line.– grawity
6 hours ago
The
40 syntax is for fstab, not for shell command line.– grawity
6 hours ago
add a comment |
1 Answer
1
active
oldest
votes
This probably should be sudo mount -t cifs ..., note the t.
There are various ways to deal with spaces and special characters (see man bash for details), one way is to use single quotes:
sudo mount -t cifs '//192.168.1.123/Program Files' /mnt/ -o user=some,pass=user
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
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: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
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%2fsuperuser.com%2fquestions%2f1451737%2fmount-a-folder-with-a-space-on-linux%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
This probably should be sudo mount -t cifs ..., note the t.
There are various ways to deal with spaces and special characters (see man bash for details), one way is to use single quotes:
sudo mount -t cifs '//192.168.1.123/Program Files' /mnt/ -o user=some,pass=user
add a comment |
This probably should be sudo mount -t cifs ..., note the t.
There are various ways to deal with spaces and special characters (see man bash for details), one way is to use single quotes:
sudo mount -t cifs '//192.168.1.123/Program Files' /mnt/ -o user=some,pass=user
add a comment |
This probably should be sudo mount -t cifs ..., note the t.
There are various ways to deal with spaces and special characters (see man bash for details), one way is to use single quotes:
sudo mount -t cifs '//192.168.1.123/Program Files' /mnt/ -o user=some,pass=user
This probably should be sudo mount -t cifs ..., note the t.
There are various ways to deal with spaces and special characters (see man bash for details), one way is to use single quotes:
sudo mount -t cifs '//192.168.1.123/Program Files' /mnt/ -o user=some,pass=user
answered 7 hours ago
dirktdirkt
9,7543 gold badges13 silver badges23 bronze badges
9,7543 gold badges13 silver badges23 bronze badges
add a comment |
add a comment |
Thanks for contributing an answer to Super User!
- 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%2fsuperuser.com%2fquestions%2f1451737%2fmount-a-folder-with-a-space-on-linux%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
The
40syntax is for fstab, not for shell command line.– grawity
6 hours ago