LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 01-29-2012, 02:33 PM   #1
tonewheelkev
Member
 
Registered: Jun 2011
Posts: 35

Rep: Reputation: Disabled
Question I don't own my Hard drive.....apparently!!!


Booting from LIVE CD at present, and need to move files around.
HOME shows 2 hard drives.....but the 3rd has been mounted in MEDIA, and apparently I am not the owner, and can't read anything on this DRIVE
(I need to copy/cut everything from this drive, and put it on t'other drives!!

I've been in this hole before, and for the life of me, can't remember the solution.

Please make an ole' man happy......
 
Old 01-29-2012, 02:37 PM   #2
klearview
Member
 
Registered: Aug 2006
Location: London
Distribution: Debian, Kubuntu
Posts: 572

Rep: Reputation: 75
Establish your username first:

Quote:
whoami
Then chown the drive to that username:

Quote:
sudo chown -R <username> /media/<drive_name>
where <username> is what you obtained from 'whoami' and <drive_name> is what you see in /media as your drive.
 
Old 01-29-2012, 02:48 PM   #3
tonewheelkev
Member
 
Registered: Jun 2011
Posts: 35

Original Poster
Rep: Reputation: Disabled
Here's what happened!!

ubuntu@ubuntu:~$ whoami
ubuntu
ubuntu@ubuntu:~$ sudo chown -R ubuntu / media/ 1.0TB
chown: cannot access `/home/ubuntu/.gvfs': Permission denied

.....then HUGE block of text...starting:

chown: changing ownership of `/proc/2/task/2': Operation not permitted
chown: changing ownership of `/proc/2': Operation not permitted
chown: changing ownership of `/proc/3/task/3': Operation not permitted
chown: changing ownership of `/proc/3': Operation not permitted
chown: changing ownership of `/proc/6/task/6': Operation not permitted
etc.........
 
Old 01-29-2012, 02:53 PM   #4
klearview
Member
 
Registered: Aug 2006
Location: London
Distribution: Debian, Kubuntu
Posts: 572

Rep: Reputation: 75
Be careful with what you are typing in! There is no space after '/' before 'media'. Use TAB to auto-complete paths.

Once again - be careful with the commands you execute with 'sudo' in terminal - you can mess things up irreversibly if you are not careful. Be sure to read up on basic terminal use.
 
Old 01-29-2012, 03:04 PM   #5
tonewheelkev
Member
 
Registered: Jun 2011
Posts: 35

Original Poster
Rep: Reputation: Disabled
Doh....

Many thanks....I'm on the way now
 
Old 01-29-2012, 03:08 PM   #6
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,528

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
I would strongly suggest to review the ownerships of your system.
Code:
ls -l /
Kind regards
 
Old 01-29-2012, 03:13 PM   #7
snowpine
Senior Member
 
Registered: Feb 2009
Posts: 4,244

Rep: Reputation: 1199Reputation: 1199Reputation: 1199Reputation: 1199Reputation: 1199Reputation: 1199Reputation: 1199Reputation: 1199Reputation: 1199
Quote:
Originally Posted by klearview View Post
Then chown the drive to that username:
Terrible advice; if there is a Linux filesystem on the drive, its permissions will be ruined by this; if it's a Windows filesystem it will merely accomplish nothing.

Better advice, use file-manager-as-root to browse and copy files from the forbidden drive.

Code:
gksu nautilus
 
Old 01-29-2012, 03:22 PM   #8
klearview
Member
 
Registered: Aug 2006
Location: London
Distribution: Debian, Kubuntu
Posts: 572

Rep: Reputation: 75
Quote:
Originally Posted by snowpine View Post
Terrible advice...
Actually you are right, it's reckless so mea culpa . But my excuse is that the advice was not given in a vacuum but rather as a continuation from another thread with the OP.
 
Old 01-29-2012, 04:03 PM   #9
snowpine
Senior Member
 
Registered: Feb 2009
Posts: 4,244

Rep: Reputation: 1199Reputation: 1199Reputation: 1199Reputation: 1199Reputation: 1199Reputation: 1199Reputation: 1199Reputation: 1199Reputation: 1199
Ah, sorry... I did not have the full context, carry on.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Apparently, my USB drive does not exit pseudotsuga Linux - Hardware 9 01-22-2011 01:49 PM
Fstab the hard drive so i don't have to mount it every login tkienzle Linux - Hardware 15 08-30-2010 10:44 AM
Put Hard Drive in different laptop - now wireless and sound don't work? checkmate3001 Linux - Hardware 1 02-10-2009 05:39 PM
Want to install FC 5 from a hard drive but don't know the method n need help roonjha Fedora 3 07-28-2006 01:40 PM

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

All times are GMT -5. The time now is 04:38 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration