issue auto mounting to dir w/ a space in name[SOLVED]
Forum rules
LMDE 2 has reached end of support as of 1-1-2019
LMDE 2 has reached end of support as of 1-1-2019
issue auto mounting to dir w/ a space in name[SOLVED]
have no issues mounting the drive using fstab as long as the directory's name doesn't have a space in it.
been trying to use: Storage Drive
i think the issue is in fstab, the mount location part of the line has no issues with:
/mnt/Storage
but i've tried using "Storage Drive" and Storage\020Drive and both return errors
the first indicates line 14 in fstab is bad on restart and it doesn't mount.
the second indicates dir doesn't exist and fails to mount also.
i'm sure this is just a case of my syntax in fstab. please help.
been trying to use: Storage Drive
i think the issue is in fstab, the mount location part of the line has no issues with:
/mnt/Storage
but i've tried using "Storage Drive" and Storage\020Drive and both return errors
the first indicates line 14 in fstab is bad on restart and it doesn't mount.
the second indicates dir doesn't exist and fails to mount also.
i'm sure this is just a case of my syntax in fstab. please help.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Re: issue auto mounting to dir w/ a space in name
maybe
?
P.S. HTML code in shell usually is not a good idea "Storage\020Drive"
Code: Select all
Storage\ Drive/
P.S. HTML code in shell usually is not a good idea "Storage\020Drive"
Re: issue auto mounting to dir w/ a space in name
didn't work, returns a 'line 14 in fstab is bad'.
Re: issue auto mounting to dir w/ a space in name
Did you / can you try:
Code: Select all
"Storage\ Drive/"
Re: issue auto mounting to dir w/ a space in name
didn't work either, returns same error on boot.
Re: issue auto mounting to dir w/ a space in name
That's the traditional way one adds a line in fstab where something has a space in it./mnt/Storage\020Drive
Did you actually create that mountpoint?
What is the output of this command:
Code: Select all
ls -al /mnt
Code: Select all
sudo mkdir "/mnt/Storage Drive"
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
Re: issue auto mounting to dir w/ a space in name
man fstab says
If the name of the mount point contains spaces these can be escaped
as `\040'.
Re: issue auto mounting to dir w/ a space in name
You are quite correct - my mistake. "\040", "%20" when and where to use each one always confuses me. In this case I made some kind of hybrid out of the two.HughT wrote:man fstab saysIf the name of the mount point contains spaces these can be escaped
as `\040'.
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
Re: issue auto mounting to dir w/ a space in name
total 16
drwxr-xr-x 4 root root 4096 Jun 22 13:56 .
drwxr-xr-x 22 root root 4096 Jun 22 13:12 ..
drwxr-xr-x 4 root root 4096 Jun 21 12:32 Storage
drwxr-xr-x 2 phil phil 4096 Jun 22 13:56 Storage Drive
and yes, it seems '/mnt/Storage\040Drive' works...
thanks so much!
drwxr-xr-x 4 root root 4096 Jun 22 13:56 .
drwxr-xr-x 22 root root 4096 Jun 22 13:12 ..
drwxr-xr-x 4 root root 4096 Jun 21 12:32 Storage
drwxr-xr-x 2 phil phil 4096 Jun 22 13:56 Storage Drive
and yes, it seems '/mnt/Storage\040Drive' works...
thanks so much!
Re: issue auto mounting to dir w/ a space in name[SOLVED]
you're welcome. don't forget to edit the title of your first post as SOLVED.