Linux - Laptop and NetbookHaving 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
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.
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.
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$ 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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.