LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Problem mounting disk | Problem with chown? (https://www.linuxquestions.org/questions/linux-newbie-8/problem-mounting-disk-%7C-problem-with-chown-859080/)

LoDam 01-27-2011 01:42 PM

Problem mounting disk | Problem with chown?
 
Hello,

I know I know, another thread about mounting a disk : I've searched pretty much everywhere but can't figure out what I'm doing wrong!

EDIT: Ok i figured out i needed to chown the mounting point in order to have rights on the drive. The problem is now that i can use this drive with my account, but how can I give the rights to other users on this computer?

EDIT2 : Ok I solved the problem by myself. For the other newbies out there, i just needed to use chmod instead of chown, so I could add a whole group with the r(ead)w(rite)x(ecute) permissions.

I have two hard drive on one computer, I have edited the fstab so that any user can mount it and use it easily. The disk is automatically mounted, but I can't write anything on it, or create any folder, exept in a terminal when I'm superuser.

Here's the informations you might need :

Code:


1 #
  2 # /etc/fstab
  3 # Created by anaconda on Sat Jan 22 20:57:56 2011
  4 #
  5 # Accessible filesystems, by reference, are maintained under '/dev/disk'
  6 # See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
  7 #
  8
  9 # main partition on ST31
 10 # HITACHI disk
 11 # Free space on ST31
 12 # SWAP
 13
 14 UUID=6e347a51-2921-4793-ab6f-fc13a70db349 /                      ext4    defaults        1 1
 15 UUID=c3ccff52-4d85-4fff-94ca-cd9882b7fa01 /media/Disk/Hitachi    ext4    auto,owner,users,rw 0 0
 16 UUID=273e0dbe-e05c-4883-a150-110d0f79ed6e /media/Disk/ST31        ext4    auto,owner,users,rw 0 0
 17 UUID=af7a3d0b-2895-47d4-b679-6320e5c2d51a swap                    swap    defaults        0 0
 18 tmpfs                  /dev/shm                tmpfs  defaults        0 0
 19 devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
 20 sysfs                  /sys                    sysfs  defaults        0 0
 21 proc                    /proc                  proc    defaults        0 0

fdisk -l

Code:

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders, total 312581808 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0007e5dc

  Device Boot      Start        End      Blocks  Id  System
/dev/sda1  *        2048    40962047    20480000  83  Linux
/dev/sda2        40962048    50178047    4608000  82  Linux swap / Solaris
/dev/sda3        50178048  312580095  131201024  83  Linux

Disk /dev/sdb: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders, total 488397168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00027e0d

  Device Boot      Start        End      Blocks  Id  System
/dev/sdb1            2048  488396799  244197376  83  Linux

ls /media/Disk

Code:

drwxr-xr-x. 3 root users 4096 Jan 23 13:11 Hitachi
drwxr-xr-x. 2 root users 4096 Jan 23 11:20 ST31

id Loic

Code:

uid=500(Loic) gid=100(users) groups=100(users),6(disk),10(wheel),15(man),20(games),39(video),50(ftp),63(audio),11(cdrom),500(Loic)

So the disk I'm interested using is the Hitachi, listed as sdb by fdisk. I'm using fedora 14 (32 bits)
Can anyone please help me?

Thank you (and sorry for my english)

-Loic.

onebuck 01-27-2011 03:40 PM

Hi,

Welcome to LQ!

Glad to see you worked it out for yourself.

BTW, to mark a thread as[Solved], use the thread tools to mark.

These links will aid you to gaining some understanding. Sure some may seem beyond a newbie skill level but you must start somewhere;



Linux Documentation Project
Rute Tutorial & Exposition
Linux Command Guide
Utimate Linux Newbie Guide
LinuxSelfHelp
Bash Beginners Guide
Bash Reference Manual
Advanced Bash-Scripting Guide
Linux Home Networking



The above links and others can be found at 'Slackware-Links'. More than just SlackwareŽ links!

LoDam 02-01-2011 01:30 PM

Thank you, I didn't know notice there was an option to mark a thread as solved, will remember.
And thank's for the links, sure be useful!


All times are GMT -5. The time now is 03:29 AM.