LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training 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 07-03-2010, 09:41 AM   #1
eliassal
Member
 
Registered: Jan 2008
Posts: 91

Rep: Reputation: 0
Angry Mounting new hard drive


Hi, I have added a new 80G hard drive, formatted it as ext4, when I do fdisk -l, I get the following

Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0001a024

Device Boot Start End Blocks Id System
/dev/sda1 1 9729 78148161 83 Linux

Disk /dev/sdb: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0007604a

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 64 512000 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sdb2 64 10263 81920000 83 Linux
/dev/sdb3 10263 10773 4096000 82 Linux swap / Solaris

I need that this disk be mounted for any user that logs to my fedora 13 as I want to place mysql databases files there.
In fstab, I have

UUID=ae72b7f7-2a24-4797-9be6-dd079a3e713a / ext4 defaults 1 1
UUID=bd2e2fe1-9c09-4804-916f-8e8cadd20550 /boot ext4 defaults 1 2
UUID=28bbcfcb-b69d-48fc-9356-1d7af846b828 swap swap defaults 0 0
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
/dev/sda1 /media/sda1 ext4 users 0 0

When I log with root, everything is ok, but when logging with other user who is in root group and has all privilges, can not neither mount the drive nor the "Create folder" menu item enabled

Another question which just came to my mind, what is the commad to assign a user exactly the same privileges as root user? I know ans have seen so many threads indicating that it is not a good practice, but I really dont care, I need to do it.

Thanks for your help
 
Old 07-03-2010, 10:15 AM   #2
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,085

Rep: Reputation: 398Reputation: 398Reputation: 398Reputation: 398
What is the output of ls -l /media/sda1 (Which I assume is your mountpoint for the new disk)
 
Old 07-03-2010, 10:40 AM   #3
ongte
Member
 
Registered: Jun 2009
Location: Penang, Malaysia
Distribution: Mageia, CentOS, Ubuntu
Posts: 468

Rep: Reputation: 72
Since it's ext4, normal file & directory permissions apply. Permissions are not defined in fstab as it is for vfat & ntfs. Once the partition is mounted, you will need to modify the permissions and ownership of the directory, in your case /media/sda1.

You can never give a normal user root permissions. You can simply make the directory world writable so that anyone can access it. If this is what you want, the command you are looking for is:
Quote:
# chmod 777 /media/sda1
This must be run as root.
 
  


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
Help on mounting Hard Disk Drive and CD-ROM drive in Dapper. ussr_1991 Ubuntu 2 08-19-2007 12:33 AM
mounting other hard drive lilili Slackware 23 01-07-2006 04:24 PM
mounting other hard drive? lilili Linux - Newbie 6 01-07-2006 02:25 PM
mounting other hard drive? lilili Linux - General 4 01-06-2006 03:47 PM
Mounting hard drive Runt888 Linux - Newbie 1 08-29-2001 03:02 AM


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