Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Linux, Unix › Help claiming ownership of hard drive
New Posts  All Forums:Forum Nav:

Help claiming ownership of hard drive

post #1 of 15
Thread Starter 
Running a fresh install of Ubuntu installed on my SSD, and I have my 2TB secondary drive mounted at /media/storage. I know this is a really noobish question, but I just can't get a clear enough answer anywhere. How do I give myself ownership of the drive so I can write to it, specifically my Steam games?

Been searching online for a while, but have yet to find a clear answer(or one that works for me).

Any help would be appreciated, and please don't think I simply haven't been trying to search for an answer, as easy as it is or not, because I have. Thanks!
Alienware 15
(11 items)
 
  
CPUGraphicsRAMHard Drive
i7-4710HQ GTX 970M 3GB 16GB 256GB M.2 SSD 
Hard DriveHard DriveOSOS
250GB m.2 SSD 1TB HDD Fedora 23 Windows 10 
MonitorKeyboardMouse
4k IPS Corsair K95 Corsair K65 
  hide details  
Reply
Alienware 15
(11 items)
 
  
CPUGraphicsRAMHard Drive
i7-4710HQ GTX 970M 3GB 16GB 256GB M.2 SSD 
Hard DriveHard DriveOSOS
250GB m.2 SSD 1TB HDD Fedora 23 Windows 10 
MonitorKeyboardMouse
4k IPS Corsair K95 Corsair K65 
  hide details  
Reply
post #2 of 15
Did you mount it manually ( command line, fstab, etc ) or did you let your file manager mount it?
post #3 of 15
Thread Starter 
Quote:
Originally Posted by Shrak View Post

Did you mount it manually ( command line, fstab, etc ) or did you let your file manager mount it?

I set it up as sdb5 mounted as /media/storage during installation.
Alienware 15
(11 items)
 
  
CPUGraphicsRAMHard Drive
i7-4710HQ GTX 970M 3GB 16GB 256GB M.2 SSD 
Hard DriveHard DriveOSOS
250GB m.2 SSD 1TB HDD Fedora 23 Windows 10 
MonitorKeyboardMouse
4k IPS Corsair K95 Corsair K65 
  hide details  
Reply
Alienware 15
(11 items)
 
  
CPUGraphicsRAMHard Drive
i7-4710HQ GTX 970M 3GB 16GB 256GB M.2 SSD 
Hard DriveHard DriveOSOS
250GB m.2 SSD 1TB HDD Fedora 23 Windows 10 
MonitorKeyboardMouse
4k IPS Corsair K95 Corsair K65 
  hide details  
Reply
post #4 of 15
This should be all you need;
Code:
sudo chown -R username: /media/storage
post #5 of 15
Thread Starter 
Quote:
Originally Posted by Shrak View Post

This should be all you need;
Code:
sudo chown -R username: /media/storage

That did the trick, +Rep! I was following the instructions on this page http://ubuntugenius.wordpress.com/2012/06/07/ubuntu-hardware-permissions-how-to-set-ownership-of-drive-or-partition-internal-external-hard-disks/ but that did nothing for me. I know a noob when it comes to linux, but I want to learn, actually just wiped Windows off my workstation to force myself to use it.
Alienware 15
(11 items)
 
  
CPUGraphicsRAMHard Drive
i7-4710HQ GTX 970M 3GB 16GB 256GB M.2 SSD 
Hard DriveHard DriveOSOS
250GB m.2 SSD 1TB HDD Fedora 23 Windows 10 
MonitorKeyboardMouse
4k IPS Corsair K95 Corsair K65 
  hide details  
Reply
Alienware 15
(11 items)
 
  
CPUGraphicsRAMHard Drive
i7-4710HQ GTX 970M 3GB 16GB 256GB M.2 SSD 
Hard DriveHard DriveOSOS
250GB m.2 SSD 1TB HDD Fedora 23 Windows 10 
MonitorKeyboardMouse
4k IPS Corsair K95 Corsair K65 
  hide details  
Reply
post #6 of 15
Quote:
Originally Posted by LordOfTots View Post

That did the trick, +Rep! I was following the instructions on this page http://ubuntugenius.wordpress.com/2012/06/07/ubuntu-hardware-permissions-how-to-set-ownership-of-drive-or-partition-internal-external-hard-disks/ but that did nothing for me.

It looks like the link you gave shows (almost) exactly the command Shrak gave:
Code:
sudo chown -R username:username /partition/mount-point

This command says to change ownership of your mount-point to you (username.) And the "username" after the colon is actually your group (there can be a group with the same name as your username, which I think is your default group.) And the -R basically means "and all directories underneath."

So you aren't exactly giving yourself ownership of the "drive" itself. The "drive" is actually /dev/sdX. You're giving yourself ownership of the directory of the mount point, just like any other directory.
Quote:
Originally Posted by LordOfTots View Post

I know a noob when it comes to linux, but I want to learn, actually just wiped Windows off my workstation to force myself to use it.

You didn't wipe windows to force yourself to learn Linux; you wiped windows to get a garbage OS off of your computer smile.gif
post #7 of 15
why not take the guess work out
Code:
cd /path/to/mount/point  # cd /media/storage  for example
sudo chown -R $USER:$GROUP .
Core I7
(13 items)
 
  
CPUMotherboardGraphicsRAM
I7 920 rev. D0 @ 4.26Ghz EVGA X58 SLI EVGA GTX 285 OCZ XMP 3x2Gb (pc3 12800) 
Hard DriveOptical DriveOSMonitor
Western Digital Caviar Black 640Gb x 2 LG GH22LS30 openSuse 12.1 x64 HP F2105 
PowerCase
CORSAIR 850TX Cooler Master ATCS 840 
  hide details  
Reply
Core I7
(13 items)
 
  
CPUMotherboardGraphicsRAM
I7 920 rev. D0 @ 4.26Ghz EVGA X58 SLI EVGA GTX 285 OCZ XMP 3x2Gb (pc3 12800) 
Hard DriveOptical DriveOSMonitor
Western Digital Caviar Black 640Gb x 2 LG GH22LS30 openSuse 12.1 x64 HP F2105 
PowerCase
CORSAIR 850TX Cooler Master ATCS 840 
  hide details  
Reply
post #8 of 15
Thread Starter 
Quote:
Originally Posted by tom.slick View Post

why not take the guess work out
Code:
cd /path/to/mount/point  # cd /media/storage  for example
sudo chown -R $USER:$GROUP .

Does that just give my user/group all around permissions for read/write?
Alienware 15
(11 items)
 
  
CPUGraphicsRAMHard Drive
i7-4710HQ GTX 970M 3GB 16GB 256GB M.2 SSD 
Hard DriveHard DriveOSOS
250GB m.2 SSD 1TB HDD Fedora 23 Windows 10 
MonitorKeyboardMouse
4k IPS Corsair K95 Corsair K65 
  hide details  
Reply
Alienware 15
(11 items)
 
  
CPUGraphicsRAMHard Drive
i7-4710HQ GTX 970M 3GB 16GB 256GB M.2 SSD 
Hard DriveHard DriveOSOS
250GB m.2 SSD 1TB HDD Fedora 23 Windows 10 
MonitorKeyboardMouse
4k IPS Corsair K95 Corsair K65 
  hide details  
Reply
post #9 of 15
Quote:
Originally Posted by LordOfTots View Post

Does that just give my user/group all around permissions for read/write?

yes, for the directory you execute the command in

make sure you are in the correct directory before you use it.
Core I7
(13 items)
 
  
CPUMotherboardGraphicsRAM
I7 920 rev. D0 @ 4.26Ghz EVGA X58 SLI EVGA GTX 285 OCZ XMP 3x2Gb (pc3 12800) 
Hard DriveOptical DriveOSMonitor
Western Digital Caviar Black 640Gb x 2 LG GH22LS30 openSuse 12.1 x64 HP F2105 
PowerCase
CORSAIR 850TX Cooler Master ATCS 840 
  hide details  
Reply
Core I7
(13 items)
 
  
CPUMotherboardGraphicsRAM
I7 920 rev. D0 @ 4.26Ghz EVGA X58 SLI EVGA GTX 285 OCZ XMP 3x2Gb (pc3 12800) 
Hard DriveOptical DriveOSMonitor
Western Digital Caviar Black 640Gb x 2 LG GH22LS30 openSuse 12.1 x64 HP F2105 
PowerCase
CORSAIR 850TX Cooler Master ATCS 840 
  hide details  
Reply
post #10 of 15
Thread Starter 
Quote:
Originally Posted by tom.slick View Post

yes, for the directory you execute the command in

make sure you are in the correct directory before you use it.

got it, thanks!
Alienware 15
(11 items)
 
  
CPUGraphicsRAMHard Drive
i7-4710HQ GTX 970M 3GB 16GB 256GB M.2 SSD 
Hard DriveHard DriveOSOS
250GB m.2 SSD 1TB HDD Fedora 23 Windows 10 
MonitorKeyboardMouse
4k IPS Corsair K95 Corsair K65 
  hide details  
Reply
Alienware 15
(11 items)
 
  
CPUGraphicsRAMHard Drive
i7-4710HQ GTX 970M 3GB 16GB 256GB M.2 SSD 
Hard DriveHard DriveOSOS
250GB m.2 SSD 1TB HDD Fedora 23 Windows 10 
MonitorKeyboardMouse
4k IPS Corsair K95 Corsair K65 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Linux, Unix
Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Linux, Unix › Help claiming ownership of hard drive