You are not logged in.

#1 2012-02-11 17:03:40

aneris
Member
Registered: 2012-02-11
Posts: 8

[SOLVED] Access to a second hard drive where the owner is root

I have two hard disks. I installed Arch (KDE if it matters)  and I couldn't start gparted to format the other hard drive (which has ext4 partitions formated with live distro now).
Right now I can open both partitions. They both have lost+found folders, but I can't do anything there. The "Create new" is grey. Right click - Properties it says it is mounted on /media/ 8f650d05-3d09-4885-8e8d-452dd32270f8. The other one too. Permissions tab is completely grey too.
The owner is root. How can I get complete access to those two partitions.

Last edited by aneris (2012-02-11 19:36:11)

Offline

#2 2012-02-11 17:23:30

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Access to a second hard drive where the owner is root

Can you use these partitions as root?

Can you post some more info, like the output of 'fdisk -l', 'mount' etc.?

Offline

#3 2012-02-11 17:32:06

aneris
Member
Registered: 2012-02-11
Posts: 8

Re: [SOLVED] Access to a second hard drive where the owner is root

Well, when I try to open either one of them, it asks for my user (not root) password. I type it and then I see what is in there, but nothing else I can do about it.
As for fdisk -l :   

Disk /dev/sdb: 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: 0x000492d8

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1            2048   153597464    76797708+  83  Linux
/dev/sdb2       153597465   312576704    79489620   83  Linux

Disk /dev/sda: 163.9 GB, 163928604672 bytes
255 heads, 63 sectors/track, 19929 cylinders, total 320173056 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: 0x0004a20a

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *          63      208844      104391   83  Linux
/dev/sda2          208845      738989      265072+  82  Linux swap / Solaris
/dev/sda3          738990    51954209    25607610   83  Linux
/dev/sda4        51954210   320159384   134102587+  83  Linux

The hard driver in question is sdb.

Offline

#4 2012-02-11 18:48:32

Gcool
Member
Registered: 2011-08-16
Posts: 1,456

Re: [SOLVED] Access to a second hard drive where the owner is root

Are you able to access the disk correctly as root? What are the current permissions set to the mountpoint (/media/ 8f650d05-3d09-4885-8e8d-452dd32270f8 if I understand correctly)? Try setting the desired permissions with chmod perhaps.


Burninate!

Offline

#5 2012-02-11 18:55:53

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Access to a second hard drive where the owner is root

Try to access the disk from the commandline as root. How did you mount that disk? Can you give us the output of 'mount'?

Offline

#6 2012-02-11 19:00:31

aneris
Member
Registered: 2012-02-11
Posts: 8

Re: [SOLVED] Access to a second hard drive where the owner is root

Gcool wrote:

Are you able to access the disk correctly as root? What are the current permissions set to the mountpoint (/media/ 8f650d05-3d09-4885-8e8d-452dd32270f8 if I understand correctly)? Try setting the desired permissions with chmod perhaps.

How do I check the first?
The current permissions for both are: Owner (which is root) can view and modify, group and other can view content.
And how do I set the permissions?
And fourth, sorry if I am asking dumb questions.

Offline

#7 2012-02-11 19:06:09

desm0tes
Member
From: 127.0.0.1
Registered: 2012-02-04
Posts: 233
Website

Re: [SOLVED] Access to a second hard drive where the owner is root

Offline

#8 2012-02-11 19:31:50

aneris
Member
Registered: 2012-02-11
Posts: 8

Re: [SOLVED] Access to a second hard drive where the owner is root

desm0tes wrote:

Wow. You people are great. Thank you.
Now I can access everything. Found everything I need in the first link.
Let's see for the sake of people like me: first I typed su in the terminal, then password. Then I typed cd and pasted the full name of a partition and then chmod u(or g, o or a)=rwx (for read, write and execute permissions) and then I pasted the whole name of partition.

Once again, thank you very much. That was really fast.

Offline

Board footer

Powered by FluxBB