LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   fstab syntax (https://www.linuxquestions.org/questions/linux-newbie-8/fstab-syntax-4175416074/)

Bob Fletcher 07-11-2012 03:37 AM

fstab syntax
 
The more I read on the internet the more confused I become. Would someone be so good as to tell me how I would write this mount, (it works fine) into my /etc/fstab
Code:

mount /dev/sdb1 /media/EHD/ -t ntfs -o nls=utf8,umask=0222
I got it from a post on the Internet but nothing about fstab other mounts don't work and what I have put into fstab I get a 'bad line 16'

Thanks
Robert...

acid_kewpie 07-11-2012 03:42 AM

/dev/sdb1 /media/EHD/ ntfs nls=utf8,umask=0222 0 0

rosehosting.com 07-11-2012 03:47 AM

Quote:

Originally Posted by Bob Fletcher (Post 4724722)
The more I read on the internet the more confused I become. Would someone be so good as to tell me how I would write this mount, (it works fine) into my /etc/fstab
Code:

mount /dev/sdb1 /media/EHD/ -t ntfs -o nls=utf8,umask=0222
I got it from a post on the Internet but nothing about fstab other mounts don't work and what I have put into fstab I get a 'bad line 16'

Thanks
Robert...

It should be something like:

Code:

/dev/sdb1  /mnt/EHD  ntfs-3g  umask=0222, nls=utf8  0      0
EDIT: ah, beaten by @acid_kewpie ... :)

EDDY1 07-11-2012 03:51 AM

Is your system using UUID? Take a look at your /etc/fstab.
I hope this helps
http://www.cyberciti.biz/faq/linux-f...-update-fstab/

Bob Fletcher 07-11-2012 05:12 AM

Quote:

Originally Posted by rosehosting.com (Post 4724737)
It should be something like:

Code:

/dev/sdb1  /mnt/EHD  ntfs-3g  umask=0222, nls=utf8  0      0
EDIT: ah, beaten by @acid_kewpie ... :)

Thanks unfortunately it is rejected as a bad line. This is what I find so frustrating about Linux in my case I have the correct mount doing it manually but trying to write it in fstab is another thing. In the last 3 weeks you would not believe the hours I have spent trying to get a simple server operational.

The article on UUID does not seem to apply in my case as I am not using ext3 on my external drive.

Robert..

acid_kewpie 07-11-2012 05:15 AM

that space between the umask and nls will break it. try the one I gave you.

Bob Fletcher 07-11-2012 05:33 AM

Quote:

Originally Posted by acid_kewpie (Post 4724806)
that space between the umask and nls will break it. try the one I gave you.

Thats what I did here it is
Code:

/dev/sdb1  /mnt/EHD  ntfs-3g  umask=0222, nls=utf8  0      0
I just cut and past what you gave me.

Robert..

rosehosting.com 07-11-2012 05:35 AM

Quote:

Originally Posted by Bob Fletcher (Post 4724827)
Thats what I did here it is
Code:

/dev/sdb1  /mnt/EHD  ntfs-3g  umask=0222, nls=utf8  0      0
I just cut and past what you gave me.

Robert..

@acid_kewpie is saying to try with this one

Code:

/dev/sdb1 /media/EHD/ ntfs nls=utf8,umask=0222 0 0
and was speaking for the space after the ',' in 'umask=0222, nls=utf8'

Bob Fletcher 07-11-2012 05:57 AM

Quote:

Originally Posted by rosehosting.com (Post 4724828)
@acid_kewpie is saying to try with this one

Code:

/dev/sdb1 /media/EHD/ ntfs nls=utf8,umask=0222 0 0
and was speaking for the space after the ',' in 'umask=0222, nls=utf8'

YES that worked thank you so much. I still don't understand it. Also do you think that will work for any external HDD?

Robert

rosehosting.com 07-11-2012 06:07 AM

Code:

/dev/sdb1 /media/EHD/ ntfs nls=utf8,umask=0222 0 0
- /dev/sdb1 => the device which you want to mount
- /media/EHD/ => the destination where you want your device mounted
- ntfs => the filesystem type of the device you are mounting
- nls=utf8,umask=0222 => option(s) for the filesystem you are mounting


also, this line will work for your other external drives as long as their fs type is 'ntfs'.

Bob Fletcher 07-11-2012 06:22 AM

Quote:

Originally Posted by rosehosting.com (Post 4724851)
Code:

/dev/sdb1 /media/EHD/ ntfs nls=utf8,umask=0222 0 0
- /dev/sdb1 => the device which you want to mount
- /media/EHD/ => the destination where you want your device mounted
- ntfs => the filesystem type of the device you are mounting
- nls=utf8,umask=0222 => option(s) for the filesystem you are mounting


also, this line will work for your other external drives as long as their fs type is 'ntfs'.

Thanks that has helped me. Any chance you could recommend a good Linux book for newbies as books can be as confusing as Internet resources?

Robert...

chrism01 07-11-2012 07:12 PM

This is a good tutorial http://rute.2038bug.com/index.html.gz
For a large list of stuff www.tldp.org (aka The Linux Doc Proj) - written by Linux people
Loads of free to read books/manuals etc www.linuxtopia.org - published official stuff
Home networking etc HOWTOs http://www.linuxhomenetworking.com/

Bob Fletcher 07-12-2012 01:40 AM

Quote:

Originally Posted by chrism01 (Post 4725552)
This is a good tutorial http://rute.2038bug.com/index.html.gz
For a large list of stuff www.tldp.org (aka The Linux Doc Proj) - written by Linux people
Loads of free to read books/manuals etc www.linuxtopia.org - published official stuff
Home networking etc HOWTOs http://www.linuxhomenetworking.com/

Thanks for the resources.

Robert...


All times are GMT -5. The time now is 02:23 AM.