LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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
 
LinkBack Search this Thread
Old 07-09-2010, 03:25 PM   #1
johan1391
LQ Newbie
 
Registered: Jul 2010
Distribution: Arch Linux
Posts: 11

Rep: Reputation: 0
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?
 
Old 07-09-2010, 04:17 PM   #2
BeacoN
Member
 
Registered: Nov 2008
Distribution: Linux Mint
Posts: 56

Rep: Reputation: 17
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.
 
Old 07-09-2010, 04:55 PM   #3
johan1391
LQ Newbie
 
Registered: Jul 2010
Distribution: Arch Linux
Posts: 11

Original Poster
Rep: Reputation: 0
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?
 
Old 07-09-2010, 05:35 PM   #4
johan1391
LQ Newbie
 
Registered: Jul 2010
Distribution: Arch Linux
Posts: 11

Original Poster
Rep: Reputation: 0
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?

Last edited by johan1391; 07-09-2010 at 05:49 PM. Reason: Updated information.
 
Old 07-09-2010, 05:58 PM   #5
johan1391
LQ Newbie
 
Registered: Jul 2010
Distribution: Arch Linux
Posts: 11

Original Poster
Rep: Reputation: 0
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.
 
Old 07-09-2010, 05:59 PM   #6
BeacoN
Member
 
Registered: Nov 2008
Distribution: Linux Mint
Posts: 56

Rep: Reputation: 17
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.
 
Old 07-09-2010, 06:01 PM   #7
BeacoN
Member
 
Registered: Nov 2008
Distribution: Linux Mint
Posts: 56

Rep: Reputation: 17
heh-no problem. glad to help.
 
Old 07-09-2010, 06:18 PM   #8
Kenny_Strawn
Senior Member
 
Registered: Feb 2010
Location: /usa/ca/orange_county/lake_forest
Distribution: ArchBang, Google Android 2.1 + Motoblur (on Motortola Flipside), Google Chrome OS (on Cr-48)
Posts: 1,791
Blog Entries: 62

Rep: Reputation: 54
Quote:
Originally Posted by johan1391 View Post
My question is how do I become a root user in that same directory?
Code:
[linux@linux:/media/Macintosh HD]$ su -m
 
Old 07-09-2010, 08:19 PM   #9
johan1391
LQ Newbie
 
Registered: Jul 2010
Distribution: Arch Linux
Posts: 11

Original Poster
Rep: Reputation: 0
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...

Last edited by johan1391; 07-09-2010 at 08:37 PM.
 
Old 07-09-2010, 09:25 PM   #10
jefro
Guru
 
Registered: Mar 2008
Posts: 10,275

Rep: Reputation: 1258Reputation: 1258Reputation: 1258Reputation: 1258Reputation: 1258Reputation: 1258Reputation: 1258Reputation: 1258Reputation: 1258
Looks like you are missing the HD
 
Old 07-09-2010, 09:33 PM   #11
claudius753
Member
 
Registered: Jan 2004
Distribution: Mac OS X 10.6.4 "Snow Leopard", Win 7, Ubuntu 10.04
Posts: 322

Rep: Reputation: 31
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
 
Old 07-22-2010, 10:25 PM   #12
johan1391
LQ Newbie
 
Registered: Jul 2010
Distribution: Arch Linux
Posts: 11

Original Poster
Rep: Reputation: 0
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?
 
Old 07-23-2010, 09:27 AM   #13
schneidz
Senior Member
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-19-live-usb/ aix
Posts: 3,562

Rep: Reputation: 522Reputation: 522Reputation: 522Reputation: 522Reputation: 522Reputation: 522
^ 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

Last edited by schneidz; 07-23-2010 at 09:36 AM.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
After transferring from mac drive, can't change permissions Splin Linux - Newbie 4 03-05-2008 03:14 AM
live distro that will read MAC hard drive. roofninja Linux - Distributions 2 01-29-2008 11:24 AM
change permissions of the second hard drive jmding Linux - Hardware 6 12-19-2006 03:42 PM
Ask for help: change permissions of the second hard drive jmding Linux - Hardware 4 12-18-2006 12:50 PM


All times are GMT -5. The time now is 08:01 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration