LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Second Internal Hard drive detected but cannot access (https://www.linuxquestions.org/questions/linux-hardware-18/second-internal-hard-drive-detected-but-cannot-access-948944/)

ryu 06-07-2012 12:06 AM

Second Internal Hard drive detected but cannot access
 
I have formatted my second internal hard drive, and partitioned it using GParted.
I can see it in the "files" window, and am able to unmount (and mount) it, but i cannot edit it - add files.

When i open it in files, there is a lost+found folder, but when i right-click, i cannot: create new document, create new folder, or paste anything in the harddrive.

can anyone help me? thanks

otoomet 06-07-2012 02:42 AM

I think you do not have sufficient permissions. Usually the root directory of a hard drive is owned by root and obviously you are not allowed to do any modifications (including creating folders). I don't know if you can do it by mouse clicks, but you should open terminal, "cd" to the corresponding dir, and create a personal folder like "sudo mkdir my_personal_directory" (it asks for your password). Thereafter you have to give yourself the right permissions like "chown your_user_name.your_user_name my_personal_directory".

ryu 06-07-2012 09:04 PM

thanks for your help..
i think youre right!
i followed your instructions, created a folder "abc" with my password.
With the chown command, (My username is "ryu", so i typed "chown ryu.ryu abc")
it printed out a line after
"chown: changing ownership of `abc': Operation not permitted"


do you know how i can fix this?
I'll reformat the harddrive or something if i need to, theres nothing on there.

yancek 06-07-2012 11:26 PM

If you don't have user permissions you will have to run the command as root or use sudo, depending on which distribution of Linux you have. That would be the reason you got the error you posted.

otoomet 06-08-2012 03:08 AM

yes, you shoud say "sudo chown ryu.ryu abc"

Afterwards you should be able to create files in abc dir under your usual account.

ryu 06-09-2012 08:12 AM

thanks for your help!


All times are GMT -5. The time now is 10:34 PM.