LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-31-2019, 06:22 PM   #1
deretsigernu
Member
 
Registered: May 2007
Distribution: Slackware 14.2/-current
Posts: 185

Rep: Reputation: 13
Can't write to NTFS partition I previously wrote to on dual-boot machine


I have a machine with Win 10 and Slackware-current. I am logged on to Slackware at the moment and want to write a file to a partition that is set up with ntfs-3g. I swear I wrote something to this partition a few days ago and that I've been writing to this partition pretty regularly.

/etc/fstab:
Quote:
/dev/sda7 swap swap defaults 0 0
/dev/sda5 / ext4 defaults 1 1
/dev/sda2 /boot/efi vfat defaults 1 0
/dev/sda4 /fat-c ntfs-3g fmask=133,dmask=022 1 0
/dev/sda6 /fat-d ntfs-3g fmask=111,dmask=000 1 0
#/dev/cdrom /mnt/cdrom auto noauto,owner,ro,comment=x-gvfs-show 0 0
/dev/fd0 /mnt/floppy auto noauto,owner 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0
tmpfs /dev/shm tmpfs nosuid,nodev,noexec 0 0
And an example of the directory I'm trying to write to on the /dev/sda6 ("/fat-d") looks like this:

Quote:
ash-5.0$ ls -l /fat-d/pictures/wildlife
total 24
drwxrwxrwx 1 root root 0 Oct 27 11:34 deer
drwxrwxrwx 1 root root 4096 Oct 27 11:34 birds
From what I know, those settings should allow me to write to the directory. I am logged in as a non-root user and have written to the the directory as the same user recently. Just a few minutes ago I tried to copy a pic from a thumb drive into the birds directory and this happened:

Quote:
bash-5.0$ cp /run/media/computer/802B-C6F0/Pa.Poecile.atricapillus_20.JPG /fat-d/pictures/wildlife/birds
cp: cannot create regular file '/fat-d/pictures/wildlife/birds/Pa.Poecile.atricapillus_20.JPG': Read-only file system
What am I missing here? How do I fix the permissions to let the non-root user write (I can still currently read) to the directory?
 
Old 10-31-2019, 06:28 PM   #2
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,502

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
Have you done any updates recently on windows? The system will often turn on fastboot/hibernation and Linux systems won't mount those partitions. Partitions often become read only when there is some corruption to the filesystem so boot windows and run chkdsk to see if that resolves the problemt
 
1 members found this post helpful.
Old 10-31-2019, 06:39 PM   #3
darkstar61
Member
 
Registered: Sep 2012
Distribution: agnOStic
Posts: 46

Rep: Reputation: 12
https://www.linuxuprising.com/2019/0...n-mounted.html
 
1 members found this post helpful.
Old 10-31-2019, 06:39 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Check your logs.
 
Old 10-31-2019, 10:16 PM   #5
deretsigernu
Member
 
Registered: May 2007
Distribution: Slackware 14.2/-current
Posts: 185

Original Poster
Rep: Reputation: 13
It looks like I didn't properly shutdown Windows. Thanks for the help, everyone!
 
3 members found this post helpful.
  


Reply

Tags
fstab, ntfs3g, partition flags, permissions, umask



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I know if it was grub or grub 2 who wrote the MBR on my machine? stf92 Linux - Software 20 05-26-2018 01:11 PM
Unable to installl Windows XP on a previously installed Linux machine navneethr Linux - Hardware 23 05-05-2013 02:45 PM
[SOLVED] k3b wrote a music CD but the machine can't read it pwabrahams Linux - Hardware 4 04-26-2011 07:38 AM
ran mkfs.vfat over top ntfs partition... any way to restore ntfs partition info? oryan_dunn Linux - Hardware 8 10-14-2010 06:08 PM
Installed FC5> Wrote over Ubuntu MBR: How do i add Ubuntu Partition to Grub Loader Free_beer Ubuntu 4 10-02-2006 06:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:39 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration