LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-25-2008, 12:44 AM   #1
me_lax
LQ Newbie
 
Registered: Aug 2008
Posts: 7

Rep: Reputation: 0
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
 
Old 08-25-2008, 12:56 AM   #2
klearview
Member
 
Registered: Aug 2006
Location: London
Distribution: Debian, Kubuntu
Posts: 572

Rep: Reputation: 75
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.

Last edited by klearview; 08-25-2008 at 01:59 AM. Reason: clarification
 
Old 08-25-2008, 01:14 AM   #3
me_lax
LQ Newbie
 
Registered: Aug 2008
Posts: 7

Original Poster
Rep: Reputation: 0
Thank you klearview, btw, how do i allow ordinary users to write to that drive?
 
Old 08-25-2008, 01:55 AM   #4
klearview
Member
 
Registered: Aug 2006
Location: London
Distribution: Debian, Kubuntu
Posts: 572

Rep: Reputation: 75
(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.
 
Old 08-25-2008, 12:45 PM   #5
me_lax
LQ Newbie
 
Registered: Aug 2008
Posts: 7

Original Poster
Rep: Reputation: 0
Thanks klearview
 
  


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
Ubuntu - Secondary Hard Drive 200mg Linux - Newbie 2 02-22-2008 09:47 AM
Adding New Hard Drive as Secondary Master derek8128 Linux - Newbie 4 10-24-2005 09:46 AM
How can I mount my secondary hard drive on boot? Scorlibrian Linux - Hardware 1 02-26-2005 12:36 PM
formatting a secondary hard drive Bronzzy Linux - Newbie 2 03-27-2004 12:02 PM
Mounting a hard-drive on secondary ide linuxjuggler Linux - Newbie 1 12-16-2003 01:15 AM


All times are GMT -5. The time now is 12:56 PM.

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