Partition ownership help

Asked by TdiGuy

I have a multi partition hard drive even moreso then linux creates. I have a large partition that I want to use as storage this partition is recognized by ubuntu as /media/sda5 currently this is owned by root and i cant seem to change ownership. I am completly green to linux and ubuntu i have been trying to use the chown command but i keep seeing that it is read onle.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
TdiGuy
Solved:
Last query:
Last reply:
Revision history for this message
corey1981 (corey1981) said :
#1

Can you provide what type of partition it is? fat32, ext3, ntfs etc.
Also, chown changes the ownership of a file, chmod changes whether it is read only, writeable etc. can you provide the output from ls -lah from the directory that the partition is mounted in?

Revision history for this message
TdiGuy (hmeetis) said :
#2

It is a NTFS partition
ls -lah isdr
-xr-x--- 1 root plugdev 4.0K 2007-09-28 03:02 .
drwxr-xr-x 5 root root 4.0K 2007-04-15 07:56 ..
dr-xr-x--- 1 root plugdev 0 2007-09-09 14:11 3e518ef2887ebfcd0bdf842ded0c76
dr-xr-x--- 1 root plugdev 0 2007-09-22 14:21 Documents and Settings
dr-xr-x--- 1 root plugdev 4.0K 2007-09-09 13:12 Drivers
dr-xr-x--- 1 root plugdev 0 2007-09-09 11:43 Lotro
-r-xr-x--- 2 root plugdev 2.8G 2007-02-09 06:44 lotrosetup_beta21.exe
dr-xr-x--- 1 root plugdev 0 2007-09-09 13:24 MSOCache
dr-xr-x--- 1 root plugdev 4.0K 2007-09-21 23:07 Program Files
dr-xr-x--- 1 root plugdev 0 2007-09-11 01:52 RECYCLER
dr-xr-x--- 1 root plugdev 4.0K 2007-09-10 00:50 Study material
dr-xr-x--- 1 root plugdev 4.0K 2007-09-28 03:01 System Volume Information
dr-xr-x--- 1 root plugdev 0 2007-09-10 23:14 XPcd
dr-xr-x--- 1 root plugdev 0 2007-09-13 18:48 XPDist
I have found out how to become the root thankfully but i want to change ownership of the whole drive to my main account.

Revision history for this message
TdiGuy (hmeetis) said :
#3

I am thinking the easy way to manipulate the partition is if i could change ownership then i can use the gui to manipulate files and directorys as i wish and simply change ownership of directories i dont want to get touched to root ownership and leave others in my main account name.

Revision history for this message
corey1981 (corey1981) said :
#4

I think the reason that it all shows as root is because you have mounted
that partition as root, with no other permissions. You don't want to go
changing the permissions inside of your windows partition willi nilli

On 9/28/07, TdiGuy <email address hidden> wrote:
>
> Question #14180 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/14180
>
> TdiGuy gave more information on the question:
> I am thinking the easy way to manipulate the partition is if i could
> change ownership then i can use the gui to manipulate files and
> directorys as i wish and simply change ownership of directories i dont
> want to get touched to root ownership and leave others in my main
> account name.
>
> --
> You received this question notification because you are a direct
> subscriber of the question.
>

Revision history for this message
TdiGuy (hmeetis) said :
#5

its not my windows partition its just one of my partitions that happens to be ntfs formated. I have my hard drive partitioned several ways i have a partition just for the xp operating system and a partition for the majority of my programs and files and documents and other junk then the partitions that were needed to have ubuntu. I know better then to do anything with the 8mb partition that windows sets aside or the partitions that ubuntu / grub use to boot the partition i want to change is just where i store things but it doesnt do me much good if i cant access it or create directories on it.
And when you say I mounted it as root you really refer to ubuntu the partition was automatically recognized on install and for some reason ubuntu thinks that its a good idea to give the user absolutly no controll over the other partitions rather annoying.

Revision history for this message
TdiGuy (hmeetis) said :
#6

I have been trying to edit the permissions by editing the fstab file but i cant seem to get it correct. What syntax would allow me full control or to take ownership? fstab for the device in question is. I have tryed changeing defaults to rw,user and it did not even recognize the drive
# /dev/hda5

UUID=1C14AB1914AAF4C4 /media/hda5 ntfs defaults,user,nls=utf8,umask=007,gid=46 0 1

Revision history for this message
Wrwrwr (wrwrwr) said :
#7

The way to go probably is to use ntfs-3g instead of ntfs driver. Make a copy of fstab and try using "ntfs-config". Install it through synaptic or adept if needed.

Another thing is that with same fstab line as yours i have read-write access to my ntfs partitions, so maybe it's mounted read-only because of some errors?

Revision history for this message
TdiGuy (hmeetis) said :
#8

I have no clue what you are talking about. I have been using ubuntu for about 8 hours now.

Revision history for this message
TdiGuy (hmeetis) said :
#9

ok i just did a lot of pokeing around for packages and found a util that will elt me read and write to a ntfs partition. and a neat util that lets me resize partitions and such. along with airsnort and some other programs. thank you all.