Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
07-11-2012, 03:37 AM
|
#1
|
Member
Registered: Nov 2008
Location: Hinckley UK
Distribution: Manjaro Cinnamon
Posts: 140
Rep:
|
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...
|
|
|
07-11-2012, 03:42 AM
|
#2
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
/dev/sdb1 /media/EHD/ ntfs nls=utf8,umask=0222 0 0
|
|
|
07-11-2012, 03:47 AM
|
#3
|
Member
Registered: Jun 2012
Location: Missouri, USA
Posts: 236
Rep:
|
Quote:
Originally Posted by Bob Fletcher
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 ... 
Last edited by rosehosting.com; 07-11-2012 at 03:48 AM.
|
|
|
07-11-2012, 03:51 AM
|
#4
|
LQ Addict
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841
|
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/
Last edited by EDDY1; 07-11-2012 at 03:53 AM.
|
|
|
07-11-2012, 05:12 AM
|
#5
|
Member
Registered: Nov 2008
Location: Hinckley UK
Distribution: Manjaro Cinnamon
Posts: 140
Original Poster
Rep:
|
Quote:
Originally Posted by rosehosting.com
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..
|
|
|
07-11-2012, 05:15 AM
|
#6
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
that space between the umask and nls will break it. try the one I gave you.
|
|
|
07-11-2012, 05:33 AM
|
#7
|
Member
Registered: Nov 2008
Location: Hinckley UK
Distribution: Manjaro Cinnamon
Posts: 140
Original Poster
Rep:
|
Quote:
Originally Posted by acid_kewpie
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..
|
|
|
07-11-2012, 05:35 AM
|
#8
|
Member
Registered: Jun 2012
Location: Missouri, USA
Posts: 236
Rep:
|
Quote:
Originally Posted by Bob Fletcher
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'
|
|
|
07-11-2012, 05:57 AM
|
#9
|
Member
Registered: Nov 2008
Location: Hinckley UK
Distribution: Manjaro Cinnamon
Posts: 140
Original Poster
Rep:
|
Quote:
Originally Posted by rosehosting.com
@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
|
|
|
07-11-2012, 06:07 AM
|
#10
|
Member
Registered: Jun 2012
Location: Missouri, USA
Posts: 236
Rep:
|
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'.
|
|
1 members found this post helpful.
|
07-11-2012, 06:22 AM
|
#11
|
Member
Registered: Nov 2008
Location: Hinckley UK
Distribution: Manjaro Cinnamon
Posts: 140
Original Poster
Rep:
|
Quote:
Originally Posted by rosehosting.com
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...
|
|
|
07-12-2012, 01:40 AM
|
#13
|
Member
Registered: Nov 2008
Location: Hinckley UK
Distribution: Manjaro Cinnamon
Posts: 140
Original Poster
Rep:
|
Quote:
Originally Posted by chrism01
|
Thanks for the resources.
Robert...
|
|
|
All times are GMT -5. The time now is 02:54 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|