LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 12-02-2022, 11:57 PM   #1
wmeler
Member
 
Registered: Dec 2003
Distribution: Linux Mint 21 (Cinnamon)
Posts: 234

Rep: Reputation: 20
NTFS Bad Permissions on Partition


Earlier tonight I realized that my main/boot partition (sda5) ran out of space. So, I moved the data on sda6 temporarily and deleted the sda6 partition to make room for sda5 to expand. I expanded sda5 with gparted and then created sda6 as NTFS using "Disks" which comes stock with Linux Mint. Then, I re-created a smaller sda6 and updated grub and fstab, though not correctly at first. I managed to get back into my system after a while (booting from and into sda5).

But then, I downloaded hplip stuff to my NTFS partition on sda6 which is mounted to /data.

And realized I was having weirdness.
(Using Linux Mint 21 if you care.)

Problem is, the permissions are all messed up--and for sub-directories as well. I'd like this to always be available to my normal permissions user "wmeler." I am the only person using this laptop. I want it as NTFS so I can access the directory in Windows as this is a Dual Boot laptop.

Here's what the permissions look like:

wmeler@wander:/$ ls -al /data
total 9
drwxrwx--- 1 root plugdev 4096 Dec 2 22:45 .
drwxr-xr-x 22 root root 4096 Dec 2 22:43 ..
drwxrwx--- 1 root plugdev 512 Dec 2 23:25 downloads


Here's a bit more on how the partition is being mounted in case it matters:

wmeler@wander:/etc/default$ sudo blkid
/dev/sda2: LABEL="Windows" BLOCK_SIZE="512" UUID="B0FC6032FC5FF0D8" TYPE="ntfs" PARTUUID="d4f04c7f-02"
/dev/sda5: UUID="bb9e4ab8-b91b-4bd9-8198-6015ab08c02e" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="d4f04c7f-05"
/dev/sda3: LABEL="HP_RECOVERY" BLOCK_SIZE="512" UUID="A6CE00F0CE00BA97" TYPE="ntfs" PARTUUID="d4f04c7f-03"
/dev/sda1: LABEL="SYSTEM" BLOCK_SIZE="512" UUID="7CB2E8C8B2E887CA" TYPE="ntfs" PARTUUID="d4f04c7f-01"
/dev/sda6: LABEL="DATA" BLOCK_SIZE="512" UUID="06EA83ED2E587A8B" TYPE="ntfs" PARTUUID="d4f04c7f-06"



wmeler@wander:/etc$ cat fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda5 during installation
UUID=bb9e4ab8-b91b-4bd9-8198-6015ab08c02e / ext4 errors=remount-ro 0 1
# /data was on /dev/sda6 during installation
UUID=06EA83ED2E587A8B /data ntfs defaults,umask=007,gid=46 0 0

# /windows was on /dev/sda2 during installation
UUID=B0FC6032FC5FF0D8 /windows ntfs defaults,umask=007,gid=46 0 0
/swapfile none swap sw 0 0

Last edited by wmeler; 12-03-2022 at 12:34 AM. Reason: more info.
 
Old 12-03-2022, 01:21 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,846

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
that is the umask I think. Why do you use ntfs on a linux at all?
 
Old 12-03-2022, 04:08 AM   #3
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,504

Rep: Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490
Standard Linux permissions (rwx) aren't used on windows or systems and accessing depends upon what you have in the /etc/fstab file using umask, fmask, dmask. The link below gives a detailed explanation of it. I would also suggest that you not auto-mount the windows system partition as there is not reason to modify system files from Linux and can create problems. If you scroll down the page, there is a section on allowing a user to mount.

https://wiki.archlinux.org/title/NTF...fault_settings
 
1 members found this post helpful.
Old 12-03-2022, 11:11 PM   #4
wmeler
Member
 
Registered: Dec 2003
Distribution: Linux Mint 21 (Cinnamon)
Posts: 234

Original Poster
Rep: Reputation: 20
Thanks for the replies.

Found a solution here in case anyone else is having problems too:


https://forums.linuxmint.com/viewtop...65454#p2265454
 
1 members found this post helpful.
Old 12-14-2022, 10:58 AM   #5
rclark
Member
 
Registered: Jul 2008
Location: Montana USA
Distribution: KUbuntu, Fedora (KDE), PI OS
Posts: 480

Rep: Reputation: 179Reputation: 179
Quote:
Why do you use ntfs on a linux at all?
That would be my question too. Use a 'linux' compatible file system like ext4 (usually the default format). The only time I use ntfs is on 'external' drives which I know 'may' be plugged in at some point to a Windows machine. Otherwise just format ext4 and go.
 
  


Reply

Tags
mount, mounting, ntfs, partition, partitions



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
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
Bad, Bad, BAD! (Firefox is basically ditching html5 video support) smeezekitty General 11 05-05-2010 06:29 PM
Bad disk, bad disk controller, or bad memory? NULL Pointer Linux - General 2 03-01-2009 05:21 PM
Bad mount of .mdf - "wrong fs type, bad option, bad superblock, on /dev/loop0" Maybe-not Linux - General 2 02-29-2008 01:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 01:29 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