SliTaz SliTaz Forum

You are not logged in.

#1 2011-08-15 22:56:20

Guest
Guest

secondary hard drive but wont allow me to put anything on it

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?

#2 2011-08-16 00:09:04

mojo
Administrator
Registered: 2011-03-29
Posts: 2,174

Re: secondary hard drive but wont allow me to put anything on it

Do you have write privileges on the mount point?

Post your /etc/fstab

What filesystem did you use to format this drive?

Offline

#3 2011-08-16 12:19:21

Guest
Guest

Re: secondary hard drive but wont allow me to put anything on it

# /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 0

hdb1 is my secondary one, and no i dont have write privilages, how do you get it so that i can?

#4 2011-08-16 13:21:23

mojo
Administrator
Registered: 2011-03-29
Posts: 2,174

Re: secondary hard drive but wont allow me to put anything on it

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.test

If 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.

Offline

#5 2011-08-16 14:49:51

Guest
Guest

Re: secondary hard drive but wont allow me to put anything on it

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

#6 2011-08-16 15:50:38

Guest
Guest

Re: secondary hard drive but wont allow me to put anything on it

If root is the owner, that might be why you can't access it in non-root?

#7 2011-08-16 16:13:40

mojo
Administrator
Registered: 2011-03-29
Posts: 2,174

Re: secondary hard drive but wont allow me to put anything on it

@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/media

Offline

#8 2011-08-16 18:43:41

Guest
Guest

Re: secondary hard drive but wont allow me to put anything on it

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?

#9 2011-08-16 18:48:29

Guest
Guest

Re: secondary hard drive but wont allow me to put anything on it

i also have the write.test document in my media, but it wont let me confirm it or anything

#10 2011-08-17 02:27:18

Saipul
Member
Registered: 2011-06-28
Posts: 87

Re: secondary hard drive but wont allow me to put anything on it

run from terminal (Xterm):

~$ su

password: ENTER_YOUR_PASSWORD_ROOT

root@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.

Offline

#11 2011-08-17 12:12:41

Guest
Guest

Re: secondary hard drive but wont allow me to put anything on it

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 smile

#12 2011-08-17 13:08:14

Guest
Guest

Re: secondary hard drive but wont allow me to put anything on it

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.

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.017 seconds, 7 queries executed - Memory usage: 1.55 MiB (Peak: 1.77 MiB) ]