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 08-13-2020, 11:47 AM   #16
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,840

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308

it looks ok (I mean the fstab).

how did you try to access it at all? Would be nice to explain what did you try exactly.
 
Old 08-13-2020, 12:16 PM   #17
ultra99
Member
 
Registered: Aug 2004
Distribution: openSUSE Tumbleweed
Posts: 125

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by pan64 View Post
it looks ok (I mean the fstab).

how did you try to access it at all? Would be nice to explain what did you try exactly.
1. It doesn't appear in Files.
2. It is already mounted, look at Disks, first screenshot.
3. I click on "/mnt/dataDrive" and I get a permission error, second screenshot.


Added screenshot of Mount Options, third attachment.
Attached Thumbnails
Click image for larger version

Name:	Screenshot from 2020-08-13 13-13-46.png
Views:	13
Size:	55.9 KB
ID:	33853   Click image for larger version

Name:	Screenshot from 2020-08-13 13-15-32.png
Views:	15
Size:	18.4 KB
ID:	33854   Click image for larger version

Name:	Screenshot from 2020-08-13 13-18-19.png
Views:	8
Size:	43.9 KB
ID:	33855  

Last edited by ultra99; 08-13-2020 at 12:18 PM.
 
Old 08-13-2020, 12:18 PM   #18
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,840

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
ok, what is the output of: ls -ld /mnt/dataDrive
probably the solution is: sudo chmod 777 /mnt/dataDrive
 
Old 08-13-2020, 12:20 PM   #19
ultra99
Member
 
Registered: Aug 2004
Distribution: openSUSE Tumbleweed
Posts: 125

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by pan64 View Post
ok, what is the output of: ls -ld /mnt/dataDrive
probably the solution is: sudo chmod 777 /mnt/dataDrive
output:
Code:
~ >>> ls -ld /mnt/dataDrive                                                                                                                                       
drwx------ 32 1002 1002 4096
 
Old 08-13-2020, 12:56 PM   #20
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,840

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
so try that chmod command, I hope that helps
 
Old 08-13-2020, 01:23 PM   #21
sgosnell
Senior Member
 
Registered: Jan 2008
Location: Baja Oklahoma
Distribution: Debian Stable and Unstable
Posts: 1,943

Rep: Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542
/mnt is not owned by you, but by root. You need to mount the drive on a point that you own, such as in your home directory. Maybe /home/ultra99/dataDrive, or whatever name you like. Or you can use chown to make you the owner of /mnt/dataDrive. Either will work, chown is probably quicker and easier.

Last edited by sgosnell; 08-13-2020 at 01:25 PM.
 
Old 08-13-2020, 01:26 PM   #22
ultra99
Member
 
Registered: Aug 2004
Distribution: openSUSE Tumbleweed
Posts: 125

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by pan64 View Post
so try that chmod command, I hope that helps
It did, actually!!
However, I don't see the drive in Files. I can access it no problem from Disks > click on "Mounted at /mnt/dataDrive".

If I go into Disk > Edit Mount Options > Show in user interface and check it, I see the drive in Files. However, it asks for a password.
 
Old 08-13-2020, 02:47 PM   #23
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,487

Rep: Reputation: Disabled
Your drive appears to be /dev/sda1 so mount that to a directory that you own via an entry in /etc/fstab.

Code:
mkdir /home/yourname/data
Now add it to /etc/fstab

Code:
/dev/sda1 /home/yourname/data ext4 defaults,noatime 1 2
 
Old 08-13-2020, 03:07 PM   #24
rnturn
Senior Member
 
Registered: Jan 2003
Location: Illinois (SW Chicago 'burbs)
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,801

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Quote:
Originally Posted by ultra99 View Post
Here are the steps that I took (my quick guide for the future):

<snip>
! would add step 6:

Code:
6:

$ su - root
# cd /mnt
# chown -R ultra99:ultra99 ANYTHING
# ^D
or
Code:
6:

$ su - root
# cd /mnt
# chown -R ultra99:users ANYTHING
# ^D
depending on how your account is set up.

You'll own everything in that mount point after this.
 
Old 08-13-2020, 11:22 PM   #25
Honest Abe
Member
 
Registered: May 2018
Distribution: CentOS 7, OpenSUSE 15
Posts: 420
Blog Entries: 1

Rep: Reputation: 202Reputation: 202Reputation: 202
@pan64, a full 777 on that directory ?

Based on what type of data is present on that drive, ownership or access should be determined whether a 750, 755, 750 with ACL or full fledged chmod (as @rnturn pointed out) is needed.


(Don't mean to poke, I have seen your answers elsewhere and have personally benefitted from your inputs a lot, so I point this out with respect)
 
Old 08-14-2020, 01:22 AM   #26
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,840

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
Quote:
Originally Posted by Honest Abe View Post
@pan64, a full 777 on that directory ?

Based on what type of data is present on that drive, ownership or access should be determined whether a 750, 755, 750 with ACL or full fledged chmod (as @rnturn pointed out) is needed.


(Don't mean to poke, I have seen your answers elsewhere and have personally benefitted from your inputs a lot, so I point this out with respect)
Obviously 777 was only a test and was not a complete solution. Only the next step. We need to go further as it was already made.
 
  


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
Access To Encrypted SSD Partition With Native Password in SSD>SATA Enclosure skidvicious Linux - Hardware 5 12-03-2015 04:40 PM
[SOLVED] I have a SSD a 500GB drive and a 2TB drive and want to move Ubuntu from 500GB to SSD greatormesby Linux - Newbie 12 07-06-2015 09:58 AM
To SSD or not to SSD jlinkels Linux - Hardware 14 10-02-2012 07:36 AM
SSD raid1 vs SSD raid10 advice ? wonker Linux - Hardware 8 05-23-2012 01:46 AM

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

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