LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How do I change permissions on Mac OSX hard drive from SUSE KDE live cd? (https://www.linuxquestions.org/questions/linux-newbie-8/how-do-i-change-permissions-on-mac-osx-hard-drive-from-suse-kde-live-cd-818965/)

johan1391 07-09-2010 03:25 PM

How do I change permissions on Mac OSX hard drive from SUSE KDE live cd?
 
My mac osx hard drive does not boot anymore and I would like to get my important files off before I reformat the hard drive. I have run into a bit of an obstacle -- there seems to be some permissions setting that are barring me from accessing the files I need to. I can see the Machintosh HD and can access some files. How do I change permissions for the entire drive and all it's directories?

BeacoN 07-09-2010 04:17 PM

are you using a super-user shell?

most live cds have no password.

open a terminal and type "su -"

should give you the '#' prompt, to be sure you are the super user type 'whoami' and make sure it says root.

Should be able to do anything you darn well please that way. be careful.

johan1391 07-09-2010 04:55 PM

I did what you said in the super user terminal and checked to make sure that I was the root and I was. I then went to check if I was able to get into some of the files and I am still not allowed to view the files. For instance it allowed me to copy /media/Macintosh HD/Users/<username>/Music/musica but would not allow me access to any of my other important files including all of my school work, videos, itunes music, etc. The large majority of the directories do not allow me to view the files. The message that is displayed says: "Could not enter folder /media /Macintosh HD/Users/<username>/Pictures" and it is the same for any of the other directories. Any ideas?

johan1391 07-09-2010 05:35 PM

Update: I have been trying to change the file permissions and have been getting this:

linux@linux:/media/Macintosh HD/Users/johnpwarren> ls -l

total 8

drwxr-xr-x 1 501 cdrom 6 2010-06-14 04:31 Applications
drwxrwxrwx 1 501 cdrom 4 2010-06-17 09:11 Backup
drwx------ 1 501 cdrom 31 2010-07-08 16:51 Desktop
drwx------ 1 501 cdrom 26 2010-07-07 11:31 Documents
drwx------ 1 501 cdrom 62 2010-07-08 16:57 Downloads
drwxr-xr-x 1 501 cdrom 8 2010-07-08 17:04 Dropbox
-rw-r--r-- 1 501 cdrom 0 2010-05-23 01:14 jagex__preferences3.dat
-rw-r--r-- 1 501 cdrom 75 2010-05-23 01:16 jagex_runescape_preferences2.dat
-rw-r--r-- 1 501 cdrom 42 2010-05-23 01:14 jagex_runescape_preferences.dat
drwx------ 1 501 cdrom 49 2010-07-07 20:35 Library
drwx------ 1 501 cdrom 8 2010-07-06 23:59 Movies
drwx------ 1 501 cdrom 7 2010-07-06 23:59 Music
drwx------ 1 501 cdrom 34 2010-07-06 23:59 Pictures
drwxr-xr-x 1 501 cdrom 6 2009-09-27 01:01 Public
drwxr-xr-x 1 501 cdrom 6 2010-01-06 08:54 Sites
linux@linux:/media/Macintosh HD/Users/'username'>
chmod 755 Movies

chmod: changing permissions of `Movies': Read-only file system


linux@linux:/media/Macintosh HD/Users/'username'> chown root Applications

chown: changing ownership of `Applications': Read-only file system
linux@linux:/media/Macintosh HD/Users/'username'> ls -l
total 8
drwxr-xr-x 1 501 cdrom 6 2010-06-14 04:31 Applications
drwxrwxrwx 1 501 cdrom 4 2010-06-17 09:11 Backup
drwx------ 1 501 cdrom 31 2010-07-08 16:51 Desktop
drwx------ 1 501 cdrom 26 2010-07-07 11:31 Documents
drwx------ 1 501 cdrom 62 2010-07-08 16:57 Downloads
drwxr-xr-x 1 501 cdrom 8 2010-07-08 17:04 Dropbox
-rw-r--r-- 1 501 cdrom 0 2010-05-23 01:14 jagex__preferences3.dat
-rw-r--r-- 1 501 cdrom 75 2010-05-23 01:16 jagex_runescape_preferences2.dat
-rw-r--r-- 1 501 cdrom 42 2010-05-23 01:14 jagex_runescape_preferences.dat
drwx------ 1 501 cdrom 49 2010-07-07 20:35 Library
drwx------ 1 501 cdrom 8 2010-07-06 23:59 Movies
drwx------ 1 501 cdrom 7 2010-07-06 23:59 Music
drwx------ 1 501 cdrom 34 2010-07-06 23:59 Pictures
drwxr-xr-x 1 501 cdrom 6 2009-09-27 01:01 Public
drwxr-xr-x 1 501 cdrom 6 2010-01-06 08:54 Sites


My question is how do I become a root user in that same directory?


Update 2: I got to this part:

linux:/media # ls -l

total 4


-rw-r--r-- 1 root root 55 Jul 9 21:47 .hal-mtab
-rw------- 1 root root 0 Jul 9 21:47 .hal-mtab-lock
drwxr-xr-x 1 501 501 38 Jul 9 16:20 Macintosh HD


linux:/media # cd /Macintosh HD

-bash: cd: /Macintosh: No such file or directory


linux:/media # cd /Macintosh_HD

-bash: cd: /Macintosh_HD: No such file or directory
linux:/media #

Why will it not let me get into the drive?

johan1391 07-09-2010 05:58 PM

I figured it out, I had to change my file manager from Dolphin to File Manager - Super User Mode! All that work for something that just needed to be changed in settings! Oh well I learned a lot because of it. Thanks for the help.

BeacoN 07-09-2010 05:59 PM

you can't get into the drive because you were using a '/' in front-that tells the kernel to look in the root directory, maybe not where your shell was at the moment.

Doesn't look like a root prompt either, should have the '#' in front of it.

try this and post the output...
1-open a shell
2-become root
Code:

su -
3-verify root
Code:

whoami
4-find where mac disk is mounted
Code:

df
5-change to directory where mac disk is mounted (/media?)
Code:

cd *mac disk loc*
6-pwn all files under there
Code:

chown -R root .
(note the period at the end above)
7-give all perms to all files under there
Code:

chmod -R 777 .
Also try copying files rather than moving them. If you want to put all files under the current directory on your desktop...
Code:

cp -Ruv . ~/Desktop
please post the output of these commands-hopefully they work.

BeacoN 07-09-2010 06:01 PM

heh-no problem. glad to help.

Kenny_Strawn 07-09-2010 06:18 PM

Quote:

Originally Posted by johan1391 (Post 4028727)
My question is how do I become a root user in that same directory?

Code:

[linux@linux:/media/Macintosh HD]$ su -m

johan1391 07-09-2010 08:19 PM

Now it is not working anymore I keep getting this.
Here is my output:

linux:~ # whoami
root
linux:~ # df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/loop0 4309376 2433976 1875400 57% /
udev 1413792 292 1413500 1% /dev
/dev/sda2 487919600 208326476 279593124 43% /media/Macintosh HD
linux:~ # cd /media/Macintosh HD
-bash: cd: /media/Macintosh: No such file or directory

I've done this many times while also trying Macintosh_HD with the same result...

jefro 07-09-2010 09:25 PM

Looks like you are missing the HD

claudius753 07-09-2010 09:33 PM

It is because of the space between "Macintosh" and "HD" (I think)

Try using quotation marks.

cd "/media/Macintosh HD"

or alternatively

cd /media/Macintosh\ HD

johan1391 07-22-2010 10:25 PM

Alright, I'm back from vacation and back at it again. The HD is certainly still there as I can browse it, but it will not let me into certain directories. I am now running mint linux at the moment, is there any other sort of live cd that would be more applicable to lifting the files from my hard drive?

schneidz 07-23-2010 09:27 AM

^ knoppix is more suited for l33t h4x0rz but any live-cd/usb should do.

it would just be simpler to not use filenames with spaces in them.

Code:

also it would be easier to read your output in code tags
please show me the output of the mount command.

you mite get more milage with something like:
Code:

mount -o remount,rw /dev/sda2


All times are GMT -5. The time now is 12:25 AM.