Author Topic: [SOLVED] Mounting ntfs partition: fstab gets rewritten after reboot  (Read 2019 times)

Offline knome

  • Full Member
  • ***
  • Posts: 72
In Control Centre > Security > Configure system security... > System Security there's an entry for WIN_PARTS_UMASK set at a value of 000. It says if you set this to -1 then the default system umask is used.

Don't know if that'll help but I thought I'd throw it in.

Offline Bald Brick

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6475
  • I'm going South
In Control Centre > Security > Configure system security... > System Security there's an entry for WIN_PARTS_UMASK set at a value of 000. It says if you set this to -1 then the default system umask is used.

Don't know if that'll help but I thought I'd throw it in.

This seems to work. We'll know for certain after a few hours. (I've restored the permissions of /etc/fstab, set WIN_PARTS_UMASK to -1, and rebooted.)
Feed the trolls!
They need it!

AMD Athlon 7450 Dual-Core Processor, 7.80 GiB RAM, Nvidia GeForce GT 120/PCIe/SSE2, OpenGL/ES-version: 3.3 0 NVIDIA 295.40, SBx00 Azalia (Intel HDA) soundcard, ‎Logitech B500 webcam, SAA7146 DVB card, HDDs: Seagate 250824AS, Western Digital WD10EAVS-00D

Offline rubentje1991

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2108
  • Rubenus Parvus MCMXCI
Smart  ;D
(only remember that when you add a hard disk, you have to give it write permissions to add it via PCLinuxOS Control Center  :))

Offline Bald Brick

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6475
  • I'm going South
tvmonster,

knome's tip seems to achieve what you want without ill effects. When looking at the permissions on the NTFS partition they, strangely enough, look precisely as if the umask had been set to 000 in /etc/fstab (read, write and execute for everyone -- not what you'd get with umask=022, which I thought was the default), but fstab remains free from umask options, and the error messages are gone.

I don't know whether fstab is still being overwritten (according to the msec log it was last modified at 7 o'clock this morning and that may have been before I rebooted), but at least nothing in it has changed: no umask option has been added.

So, thanks, knome, you may have saved tvmonster's day.

Thanks also to melodie, even if I didn't have time to test your ideas.

« Last Edit: November 07, 2010, 07:11:54 AM by Bald Brick »
Feed the trolls!
They need it!

AMD Athlon 7450 Dual-Core Processor, 7.80 GiB RAM, Nvidia GeForce GT 120/PCIe/SSE2, OpenGL/ES-version: 3.3 0 NVIDIA 295.40, SBx00 Azalia (Intel HDA) soundcard, ‎Logitech B500 webcam, SAA7146 DVB card, HDDs: Seagate 250824AS, Western Digital WD10EAVS-00D

Offline melodie

  • Hero Member
  • *****
  • Posts: 5946
  • Internet Relay Chat sur Freenode
    • PCLinuxOS Fr
Thanks also to melodie, even if I didn't have time to test your ideas.

No problem. Anyhow this is valid for PCManFM only I think, and you probably use Dolphin and Konqueror.

melodie at #lpic-fr on irc.freenode.net

Offline tvmonster

  • Jr. Member
  • **
  • Posts: 18
Re: Mounting ntfs partition: fstab gets rewritten after reboot (SOLVED)
« Reply #20 on: November 08, 2010, 01:01:03 PM »
Yes, this fix works for me, the umask is gone from fstab and it survives a reboot.

Thanks all for your efforts, much appreciated.

Will this be updated in the settings for a new clean install?
What is the procedure for that?

Rob