Mount NTFS at starting with fstab file

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
gDloq

Mount NTFS at starting with fstab file

Post by gDloq »

Hello everybody,
I was totally disappointed about Windows so I decide to join the Linux community. I really enjoy my Linux experience and I would like to solve my problems and misunderstanding to improve my Linux skills ^^
I searched on different topics and I am really sorry if I ask a question which was solved before.
So let's start to speak about my problem. I have a dual boot Windows 10 / Linux mint 17 (ahah I need Windows to game :( ) and I have some problems with my NTFS disks from windows. I left the fast startup from WIndows so now I can mount my NTFS disk when I have launched my Linux but I don't arrive to mount them during the Linux starting. They mount when I want to communicate with them. So I tried to edit the fstab file. I found the specific number with blkid. I specified that the disk is in NTFS type and I order to mount it to my /media/my_profile/disk_name_that_I_want (it is an example not the real path. I think my problems come from my <options> <dump> <pass>. I tried this line:
defaults,nosuid,nodev,uhelper=udisks2,uid=1000,gid=1000,dmask=0077,fmask=0177 0 0
I tried some others lines but the results were all time the same at my starting:
https://www.dropbox.com/s/f1k6h42kewsl9 ... t.jpg?dl=0
If I could have a working solution, more an explaining about what I did wrong and how it is working it could be very kind.
Regards,
A new Linux converted :D
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
marz12

Re: Mount NTFS at starting with fstab file

Post by marz12 »

Hello,
I had the same error message when Windows was not fully shut down (You should avoid hibernation or Fast Restart).
Maybe this could help you
http://ubuntuforums.org/showthread.php?t=2294919

(BTW in /etc/fstab I have
UUID=46CA9C46CA9C33E1 /media/ntfs ntfs defaults,windows_names,locale=en_US.utf8 0 0
)

Regards.
User avatar
Flemur
Level 20
Level 20
Posts: 10096
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

Re: Mount NTFS at starting with fstab file

Post by Flemur »

FWIW, another example - there're apparently a million ways to mount an NTFS partition.

Code: Select all

sudo mkdir /mnt/NTFS
sudo chown username:username /mnt/NTFS
(Rumor has it that the 2nd cmd doesn't matter).

fstab line:

Code: Select all

LABEL=NTFS    /mnt/NTFS    ntfs    user,windows_names  0 0
And that partition just has data, no windows install. LABEL was given with gparted.
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?
gDloq

Re: Mount NTFS at starting with fstab file

Post by gDloq »

I deactivated all my options on my windows how you could see on the picture below:
https://www.dropbox.com/s/9fte58gndyiq1 ... g.jpg?dl=0
(Sorry my windows is in French)
I tried the line that you use on your fstab file and linux is still asking me to pass the disk mount to launch... So it is not working for now.

Thank you for your support,
Regards,
Gautier

PS: Sorry my browser was not refresh and I didn't see some answering....
marz12

Re: Mount NTFS at starting with fstab file

Post by marz12 »

Hello,
your settings seem to be OK...

Once you're in Linux, did you try to mount the ntfs partition manually? What error message do you get?

According to this https://doc.ubuntu-fr.org/tutoriel/comm ... partitions (as you speak french!)
maybe you'll have to run CHKDSK in Windows to check your windows partition
https://windowsinstructed.com/run-chkdsk-windows/

Regards

[Edit, about Windows only!] In Windows, you've chosen to "do nothing" when you press the Power button. Maybe you would prefer to set the option "full shutdown", because as far as I know Windows, you may encounter some blocked situations, in which the Power button is the only solution... :D
Dave B
Level 4
Level 4
Posts: 392
Joined: Thu Jan 08, 2015 10:49 pm
Location: UK

Re: Mount NTFS at starting with fstab file

Post by Dave B »

"Controls the order in which fsck checks the device/partition for errors at boot time. The root device should be 1. Other partitions should be 2, or 0 to disable checking."
https://help.ubuntu.com/community/Fstab

Controls are the last two digits of an fstab entry.
0 0 (disable checking)
0 1 (root device (in our case, Mint OS))
0 2 (entries automatically (as long as all settings are correct) mounted in sequence)

For example:
To hide a Windows OS partition, this simple fstab entry works well.

Code: Select all

UUID=(replace with UUID string) /mnt/Windows ntfs noauto 0 0
To add an NTFS partition, the tried and tested fstab entry would be.

Code: Select all

UUID=(replace with UUID string) /media/Storage ntfs uid=1000,gid=1000,dmask=027,fmask=137,windows_names 0 2
"Storage" replaced with any suitable name (no spaces allowed). "windows_names" is optional, handy to catch illegal Windows file names if exchanging files on a dual boot system.

Tip: Using "ntfs" is fine, there's no added benefit from using "ntfs-3g", since "ntfs" symlinks to "ntfs-3g".

David
Locked

Return to “Xfce”