Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Having an issue with external drive access, and would be very grateful for advice.
Couldn't remove some trash on an external, after looking online probably because had emptied main trash/unable to restore then delete properly? Decided to format the external to ext4, as was smallest, and had done others, without the following issues, quite a while ago. Gparted required root, and now the external drive only has root access.
Tried everything, looking online at loads of things ... chmod, chown, umount (worked) but then couldn't do chmod/said no such file or directory. Tried more gparted, format, mount, etc. Then saw something about ntsfix ... keeps saying it's worked, but external drive not visible in caja, yet gparted shows it's there, either with root access only or as unknown, depending on whatever faff I'd just tried. Spacefm error along the way showed error about not being a mountable system. Tried sudo mkfs.ext4 and sudo mount, but still nothing. sudo nano /etc/fstab shows no signs of the external.
Just going in circles, and getting nowhere. No idea if this mess would happen for any new external drive in the future also, or if the issue is only this drive.
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,479
Rep:
It is likely just a permissions problem, you can mount it as a user if you add that parameter to the mount line in your /etc/fstab file, make sure that the directory you mount it to is owned by you as well.
Never set perms to 777 in this situation, this is not a good idea. In the windows world, people set perms to "everyone" when they can't figure out how to make something work. Not the way to do this in Linux.
all partitioning and formatting is of root user, therefore root gets permissions added onto them, then you have to change the permissions to allow other than root to access the partitions, this is not true with ntfs formatting.
Never set perms to 777 in this situation, this is not a good idea. In the windows world, people set perms to "everyone" when they can't figure out how to make something work. Not the way to do this in Linux.
Better would be 0750.
You are absolutely right!
This was only "quick and dirty".
And admitted: After a year everybody sees it was dirty and no on remembers it was quick...
└─sdb1 8:17 0 1.8T 0 part /run/media/wellspring/Passport
Unfortunately trying to format it as ntfs isn't any different, except that the drive isn't blinking. Really would prefer ext4/proper linux format, but just trying to see if anything will format this drive as not just root access.
Sorry, I should have said it's a 2tb WD My Passport Ultra, and have had it I think over 18 months+.
$ id
uid=1000(userx) gid=100(users) groups=100(users),7(lp),10(wheel),11(floppy),17(audio),18(video),19(cdrom),71(input),83(plugdev),84(power),86(netdev),93(scanner)
would then be
userx:users
or cat /etc/group to check for groups and spellings
$ id
uid=1000(userx) gid=100(users) groups=100(users),7(lp),10(wheel),11(floppy),17(audio),18(video),19(cdrom),71(input),83(plugdev),84(power),86(netdev),93(scanner)
would then be
userx:users
or cat /etc/group to check for groups and spellings
Thank you for further advice; will make a note to learn about that. I was just coming back to the thread to report that I tried formatting the drive to FAT32 and it's actually working! :-)
So, FYI: FAT and FAT32 file systems do not have the concept of permissions. If that file system is fine for you then good, but if you need ext4, you will need to set permissions on the drive.
Windows formate types do not have linux permissions, you should be able to just read/write to them.
they will NOT run a Linux executable on them either. they are Windows, not Linux.
Thank you very much for further replies. I'd tried to format it to fat32 after happening to see a video thumbnail today that said fat32 covers all platforms. Was surprised it worked, after all attempts at ext4 and ntfs etc. Previously formatting drives to ext4 didn't block normal access, so hitting whatever has changed hasn't been pleasant. Am fully linux, no dual boot, etc, but will need to settle for fat32 for this drive. Will be sure to remember about executables.
If you are only going to access this drive from Linux, ext4 is a better choice, but if you MAY access it from Windows or Mac, then FAT32 is a better choice. NTFS is a bad choice all around, unless it is only accessed from Windows.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.