You are not logged in.

#1 2012-03-27 23:36:18

RollingSmoke
Member
Registered: 2012-03-27
Posts: 2

Can't mount second HDD?

#
# /etc/fstab: static file system information
#
# <file system>    <dir>    <type>    <options>    <dump>    <pass>
tmpfs        /tmp    tmpfs    nodev,nosuid    0    0
UUID=1f916711-1ee6-41d5-a4b7-df4f091e192b /boot ext2 defaults 0 1
UUID=7fdf5441-124d-4c59-8f70-67de9d2ad477 swap swap defaults 0 0
UUID=9a440287-3955-412a-b82a-9f46da978fa6 /home ext4 defaults 0 1
UUID=aff2d22f-e381-4148-8052-e8a9ee638182 / ext4 defaults 0 1


I was once able to open the hard drive but then the permissions wouldn't let me read or write. So I changed some permissions and the owner and now I can't even access the hard drive.

Just says access denied. Even when it does ask for a password, I'm only able to select between my user and not root.
33tqrra.png

Offline

#2 2012-03-28 00:09:16

bluTaz
Member
Registered: 2011-01-11
Posts: 15

Re: Can't mount second HDD?

Might help to post output of 'ls -l /media/' so we know the permissions you used, and 'fdisk -l'.


“Knowledge comes by eyes always open and working hands; and there is no knowledge that is not power.”
                    ~ Ralph Waldo Emerson

Offline

#3 2012-03-28 00:24:25

RollingSmoke
Member
Registered: 2012-03-27
Posts: 2

Re: Can't mount second HDD?

Ok we got..

total 4
dr--r--r-- 11 root root 4096 Mar 24 01:55 Media
fdisk -l

WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.


Disk /dev/sda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders, total 234441648 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: 0x00000000

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1   234441647   117220823+  ee  GPT

Disk /dev/sdb: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 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: 0x9782cd93

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *          63      417689      208813+  83  Linux
/dev/sdb2          417690     4514264     2048287+  82  Linux swap / Solaris
/dev/sdb3         4514265   106928639    51207187+  83  Linux
/dev/sdb4       106928640   976768064   434919712+  83  Linux

Offline

#4 2012-03-28 00:41:12

bluTaz
Member
Registered: 2011-01-11
Posts: 15

Re: Can't mount second HDD?

well the permissions are set for root, so as root:
#

chown username /media/Media          # Use your username to make yourself the owner
chmod 775 /media/Media               # This will give owner/group r/w/e perms. and others r/e

look at Chmod if you want to use specific permissions.


“Knowledge comes by eyes always open and working hands; and there is no knowledge that is not power.”
                    ~ Ralph Waldo Emerson

Offline

Board footer

Powered by FluxBB