i have set up a secondary hard drive easily enough using gparted, but it wont allow me to copy and paste anything in to it or anything, all it says is 'premission denied'
how do i resolve this?

secondary hard drive but wont allow me to put anything on it
(12 posts) (4 voices)-
Posted 13 years ago #
-
Do you have write privileges on the mount point?
Post your /etc/fstab
What filesystem did you use to format this drive?Posted 13 years ago # -
# /etc/fstab: Information about static filesystems.
#
proc /proc proc defaults 0 0
sysfs /sys sysfs defaults 0 0
devpts /dev/pts devpts defaults 0 0
tmpfs /dev/shm tmpfs defaults 0 0
#/dev/hda3 /home ext3 defaults 0 2
#/dev/hdb1 /mnt/data ext3 defaults 0 2
/dev/cdrom /media/cdrom iso9660 user,ro,noauto 0 0
/dev/hda2 swap swap default 0 0hdb1 is my secondary one, and no i dont have write privilages, how do you get it so that i can?
Posted 13 years ago # -
Open xterm, become root (su,Password: root)
Mount /dev/hdb1 to /home/tux/Documents :
root@slitaz:~#mount /dev/hdb1 /home/tux/Documents
Login as tux:
root@slitaz:~#login tux
tux@slitaz:~$
Write test:
tux@slitaz:~$ touch Documents/write.test
Verify write:
tux@slitaz:~$ ls -l Documents/
total 0
-rw-r--r-- 1 tux users 0 Aug 16 08:58 write.testIf you need more help please answer these 2 questions:
1. What filesystem is /dev/hdb1 formated with ext2,ext3,ext4,ntfs ?
2. What are the permissions of the mount point ?
The mount point is the folder on the filesystem you are mounting the drive to.
In the directions above the mount point is /home/tux/Documents
The mount point must have write privileges for either user or a group the user belongs to.
There are also options that may have to added to the mount command depending on the filesystem to allow writes.Posted 13 years ago # -
it is formatted to ext3,
the point i wish to mount it to is /home/leekachu/media if possible, i am unsure of what the permissions are, my the looks the owner has read write and execute permissions, but it never seems to let me once ive mounted it
Posted 13 years ago # -
If root is the owner, that might be why you can't access it in non-root?
Posted 13 years ago # -
@leekachu
Logged in as leekachu:
leekachu@slitaz:~$ mkdir media
Follow the directions in my previous post but
Replace:
user tux with user leekachu
/home/tux/Documents with /home/leekachu/mediaPosted 13 years ago # -
i have followed as best as i can, it is mounted to the correct point, but it is still only allowing me to read it, i cant even open the lost found folder, what is wrong with it?
Posted 13 years ago # -
i also have the write.test document in my media, but it wont let me confirm it or anything
Posted 13 years ago # -
run from terminal (Xterm):
~$ su
password: ENTER_YOUR_PASSWORD_ROOTroot@host_name:~# chown -R YOUR_USER_NAME:YOUR_USER_NAME /media/disk [and press ENTER]
root@host_name:~#Note:
/media/disk is your second harddrive when you click unmount harddrive from PCMan File Manager.Posted 13 years ago # -
YES!! THAT HAS WORKED!! thank you very very very very very for everyone who has helped me,
can someone explain what the problem was so i know for future reference?
i cannot thank you enough :)Posted 13 years ago # -
The problem was that root was the owner, and that you were trying to access it while not being in root.
chown -R recursively changed the owner.
Posted 13 years ago #
Reply
You must log in to post.