LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 12-27-2021, 05:07 PM   #1
hapibeli
Member
 
Registered: Apr 2011
Location: Galiano Island, BC
Distribution: Linux Mint
Posts: 68

Rep: Reputation: 10
Change permissions on 2nd internal HDD .


I have a 2nd internal HDD that I can mount, but not access as storage.( to be precise= /dev/sda1: UUID="01BC-8D32" TYPE="vfat" PARTUUID="c72ec861-01") How do I change the permissions? Thanks all.

Last edited by hapibeli; 12-27-2021 at 05:16 PM.
 
Old 12-28-2021, 12:43 AM   #2
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,810
Blog Entries: 1

Rep: Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067
Vfat filesystems don't support the concept of "permissions". The apparent permissions on a vfat mount are a fiction determined by the mount options used. Remount with appropriate options and then you will have access.
 
Old 12-28-2021, 06:10 PM   #3
hapibeli
Member
 
Registered: Apr 2011
Location: Galiano Island, BC
Distribution: Linux Mint
Posts: 68

Original Poster
Rep: Reputation: 10
mrmazda, how do I "Remount with appropriate options and then you will have access." Thank you.
 
Old 12-28-2021, 11:29 PM   #4
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,810
Blog Entries: 1

Rep: Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067
It would help to know how you it got mounted the way it is, your username, and the present permissions:
Code:
mount | grep sda1
grep sda1 /etc/fstab
grep sda1 ~/.bash_history
Please place the input & output from these commands here within code tags, and include any other information you can about how it is getting mounted now.
 
Old 12-29-2021, 05:51 PM   #5
Tonus
Senior Member
 
Registered: Jan 2007
Location: Paris, France
Distribution: Slackware-15.0
Posts: 1,405
Blog Entries: 3

Rep: Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514
I guess you are looking for

Code:
mount -o users,gid=100,uid=1000,umask=022 /dev/sdX /path/to/mountpoint
With gid the group id and uid the user id of owner of files.
Umask sets the default file permissions.
sdX identifies the device block to mount.

Last edited by Tonus; 12-29-2021 at 05:52 PM.
 
Old 12-29-2021, 05:54 PM   #6
hapibeli
Member
 
Registered: Apr 2011
Location: Galiano Island, BC
Distribution: Linux Mint
Posts: 68

Original Poster
Rep: Reputation: 10
mount | grep sdc1
/dev/sdc1 on /mnt/wwn-0x50014ee1acff52b7-part1 type vfat (rw,nosuid,nodev,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro,x-gvfs-show)

Thank you mrmazda and Tonus!
 
Old 12-29-2021, 06:27 PM   #7
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941
Generally speaking, “foreign” file systems – if they implement any “permission system” at all – have no way to understand Linux. Unless they have been set up to use some permission structure, such as LDAP/OpenDirectory, which supersedes Linux’s scheme altogether. BTW, “you will find this concern to be generally true,” regardless of the host operating system.

In the end, ”everyone must find a way to walk around in Rome, when they are not a Roman.”

Last edited by sundialsvcs; 12-29-2021 at 06:31 PM.
 
Old 12-30-2021, 11:31 AM   #8
hapibeli
Member
 
Registered: Apr 2011
Location: Galiano Island, BC
Distribution: Linux Mint
Posts: 68

Original Poster
Rep: Reputation: 10
# /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=e07d1be5-3550-41c5-8f79-1ec3383d34c3 / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/sda1 during installation
UUID=01BC-8D32 /boot/efi vfat umask=0077 0 1
/swapfile none swap sw 0 0
/dev/disk/by-id/wwn-0x50014ee1acff52b7-part1 /mnt/wwn-0x50014ee1acff52b7-part1 auto nosuid,nodev,nofail,x-gvfs-show 0 0
 
  


Reply



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
confused over terminology of internal storage and SD card storage - howto encrypt the 128GB of internal storage (2nd try) lgtrean Linux - Mobile 1 12-24-2021 12:45 PM
How to create 2nd slice and ufs filesystem into the 2nd HDD (after one existing msdos partition? vectrum *BSD 2 07-12-2020 05:26 AM
[SOLVED] 2nd SATA internal HDD, after partition, I cannot see it in OS. rockonwarock Linux - Hardware 17 12-17-2010 12:04 PM
Slackware as 2nd os on 2nd hdd chd_lad Linux - Newbie 7 04-05-2008 03:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:58 PM.

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