LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to add/edit files to secondary hard drive (sdb1) (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-add-edit-files-to-secondary-hard-drive-sdb1-665146/)

me_lax 08-24-2008 11:44 PM

how to add/edit files to secondary hard drive (sdb1)
 
Hi!
I have been a new ubuntu user. I permanently mounted my secondary hard drive to folder e on media (/media/e). Now I have been trying to move some files from a folder(work) i created in my primary hard drive (home/user/work). I try to copy the files i have in my work folder to folder e on media but have been unsuccessful. The paste option is not activated when i get to folder e. Can someone please give me some ideas to getting this done? Thankyou

klearview 08-24-2008 11:56 PM

It looks like you've mounted sdb1 as root - and if it's owned by root, only root can write to it. You either need to paste those files as root (sudo cp /path/to/old/file /path/to/new/file) or allow ordinary users to mount the drive in /etc/fstab and change permissions on it.

me_lax 08-25-2008 12:14 AM

Thank you klearview, btw, how do i allow ordinary users to write to that drive?

klearview 08-25-2008 12:55 AM

(as root) either:

chmod 777 /your/mountpoint

or if you need the drive for only a specific user:

chown <username> /your/mountpoint

Also if you want to be able to mount/dismount the drive as ordinary user add option 'user' to that drive's line in /etc/fstab.

Check out man pages (e.g.'man mount') for the following: mount, fstab, chown, chmod.

me_lax 08-25-2008 11:45 AM

Thanks klearview


All times are GMT -5. The time now is 05:08 AM.