LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 01-27-2011, 02:42 PM   #1
LoDam
LQ Newbie
 
Registered: Jan 2011
Location: Fr
Distribution: ArchLinux at the moment
Posts: 25

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

Last edited by onebuck; 01-27-2011 at 04:42 PM. Reason: remove unwarranted [Solved]
 
Old 01-27-2011, 04:40 PM   #2
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 12,892
Blog Entries: 27

Rep: Reputation: 2182Reputation: 2182Reputation: 2182Reputation: 2182Reputation: 2182Reputation: 2182Reputation: 2182Reputation: 2182Reputation: 2182Reputation: 2182Reputation: 2182
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!
 
1 members found this post helpful.
Old 02-01-2011, 02:30 PM   #3
LoDam
LQ Newbie
 
Registered: Jan 2011
Location: Fr
Distribution: ArchLinux at the moment
Posts: 25

Original Poster
Rep: Reputation: 4
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!
 
1 members found this post helpful.
  


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
problem with mounting the one disk linux_sonic Slackware 3 11-13-2009 09:33 AM
Problem of mounting USB disk coffeebreak Debian 1 09-12-2005 10:37 PM
Problem of mounting USB disk coffeebreak Fedora - Installation 1 09-12-2005 10:32 PM
problem mounting a disk image zero79 Debian 2 05-03-2005 03:15 PM
problem mounting a floppy disk favor Linux - Software 4 02-05-2004 02:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:45 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