The macosxhints Forums

The macosxhints Forums (http://hintsforums.macworld.com/index.php)
-   Hardware and Peripherals (http://hintsforums.macworld.com/forumdisplay.php?f=21)
-   -   "custom access" of my external hard drive problem <HELP!!> (http://hintsforums.macworld.com/showthread.php?t=107165)

Gen 11-14-2009 11:29 AM

"custom access" of my external hard drive problem <HELP!!>
 
hi all members:

this is Gen from Hong Kong.

i am having the problem of "custom access" (no access right) of my external Lacie hard drive and i cannot change the permission.

i tried the command:

Code:

id
ls -l /Volumes
ls -l “/Volumes/Gen
echo ---------------

and it displayed:

Code:

id
uid=501(genis) gid=20(staff) groups=20(staff),204(_developer),100(_lpoperator),98(_lpadmin),81(_appserveradm),80(admin),79(_appserverusr),61(localaccounts),12(everyone),101(com.apple.sharepoint.group.1),401(com.apple.access_screensharing)
82:~ genis$ ls -l /Volumes
total 8
drwxr-xr-x  1 genis  staff  4096 11 13 22:25 BOOTCAMP
lrwxr-xr-x  1 root  admin    1 11 14 01:50 Gen -> /
drw-rw-r--@ 26 genis  staff  952 10 27 21:01 Gen 1
82:~ genis$ ls -l /Volumes/Gen
lrwxr-xr-x  1 root  admin  1 11 14 01:50 /Volumes/Gen -> /
82:~ genis$ echo ---------------

then i type:

Code:

sudo chmod -R u+X /Volumes/Gen
after entering the password, then i reboot my Mac.
finally, my external drive hasn't come back for access.

could anyone please kindly let me know whats wrong with my process?!

since the forum i read was entered in 2006, i do not know if the commands are already out-dated.

i am using MAC OS X 10.6.2
imac G5

thanks every hero here!

Gen

hayne 11-14-2009 01:39 PM

Quote:

Originally Posted by Gen (Post 561480)
Code:

id
82:~ genis$ ls -l /Volumes
total 8
drwxr-xr-x  1 genis  staff  4096 11 13 22:25 BOOTCAMP
lrwxr-xr-x  1 root  admin    1 11 14 01:50 Gen -> /
drw-rw-r--@ 26 genis  staff  952 10 27 21:01 Gen 1


The above shows that "Gen" is the drive that your Mac is booted from.
I'm confused since you referred to "Gen" as an external drive. Are you booted from an external drive?

It also shows that there is another volume named "Gen 1". This is probably detritus from a previous session where you didn't properly unmount the "Gen" drive.

And then there is the "BOOTCAMP" drive (or partition). I assume that you have used BootCamp to install a Windows partition - is that correct?

Please explain clearly what drives (and partitions) you have and what they are named. And which drive your Mac is booted from.

Gen 11-15-2009 12:28 AM

hi Hayne,

let me explain clearly what my drives named.

my HD of my own imac was named "Gen" (which my MAC OS booted from)
and my external drive was also named "Gen" too.

so i think thats why it shows that there is another volume named "Gen 1"

is that correct?

i am not using the external drive for booting my MAC OS, it is only because they are having the same name. Should i change the name of my imac HD?

yes, i am also having a bootcamp drive for my window partition.

P.S# my MAC OS was unable to boot up after i change my permission last time (connected to the external drive, i think thats why my external drive get custom access), so i re-install my mac os again and all previous system was stored in my document named "previous system", will this file affect my external drive? should i delete it?


hope to hearing from you soon.
please let me know if anymore information needed!

thank you for your answer and patient.

Gen 11-15-2009 11:28 AM

3 Attachment(s)
hi Hayne,

please read my reply in blue:

Quote:

Originally Posted by hayne
The above shows that "Gen" is the drive that your Mac is booted from.
I'm confused since you referred to "Gen" as an external drive. Are you booted from an external drive?

i am not booted from a external drive.
it is because my imac HD was also name Gen which is the same as my external hard drive. should i change the name of my imac HD?

Quote:

Originally Posted by hayne
It also shows that there is another volume named "Gen 1". This is probably detritus from a previous session where you didn't properly unmount the "Gen" drive.

how can i fix this problem? please advise.

Quote:

Originally Posted by hayne
And then there is the "BOOTCAMP" drive (or partition). I assume that you have used BootCamp to install a Windows partition - is that correct?

yes.

Quote:

Originally Posted by hayne
Please explain clearly what drives (and partitions) you have and what they are named. And which drive your Mac is booted from.

my mac osx booted from my imac HD named Gen, which is the same as my external hard drive which is not able to access right now.

thank you for your answer and patient.

Genis

hayne 11-15-2009 03:29 PM

Quote:

Originally Posted by Gen (Post 561564)
i am not booted from a external drive.
it is because my imac HD was also name Gen which is the same as my external hard drive. should i change the name of my imac HD?

Yes - that would be advisable since it is very confusing to have two drives named the same.

Quote:

how can i fix this problem?
Start by unmounting/ejecting (via the File menu) the external drive. Then power it off and physically disconnect it.

Now you only have your internal drive in the picture - this will simplify things.
Please rename your internal drive (via Finder) and then run the following commands (in Terminal), and copy & paste the commands & their results back here so we can see:


df
ls -l /Volumes

Gen 11-15-2009 07:32 PM

hi Hayne,

i change the name of my imac HD and
here is the result after enter the command you given:


Last login: Mon Nov 16 08:13:53 on console
97:~ genis$ df
Filesystem 512-blocks Used Available Capacity Mounted on
/dev/disk0s2 593231872 73327960 519391912 13% /
devfs 218 218 0 100% /dev
/dev/disk0s3 31236088 8591712 22644376 28% /Volumes/BOOTCAMP
map -hosts 0 0 0 100% /net
map auto_home 0 0 0 100% /home
97:~ genis$ ls -l /Volumes

it is done when i unmounted my external hard drive.
please indicate the next step.

thank you for your time and patient.

Genis

hayne 11-15-2009 07:48 PM

Quote:

Originally Posted by Gen (Post 561612)
Code:

Last login: Mon Nov 16 08:13:53 on console
97:~ genis$ df
Filesystem    512-blocks    Used Available Capacity  Mounted on
/dev/disk0s2  593231872 73327960 519391912    13%    /
devfs                218      218        0  100%    /dev
/dev/disk0s3    31236088  8591712  22644376    28%    /Volumes/BOOTCAMP
map -hosts            0        0        0  100%    /net
map auto_home          0        0        0  100%    /home
97:~ genis$ ls -l /Volumes


You forgot to press Return after the last command - so the command:

ls -l Volumes

didn't get run.
Please run that command and show us the results (via copy & paste).

Gen 11-16-2009 07:27 AM

hi hayne,

my result after entered the command:

193:~ genis$ df
Filesystem 512-blocks Used Available Capacity Mounted on
/dev/disk0s2 593231872 73220008 519499864 13% /
devfs 218 218 0 100% /dev
/dev/disk0s3 31236088 8653064 22583024 28% /Volumes/BOOTCAMP
map -hosts 0 0 0 100% /net
map auto_home 0 0 0 100% /home
193:~ genis$ ls -l /Volumes
total 8
drwxr-xr-x 1 genis staff 4096 11 14 11:37 BOOTCAMP
lrwxr-xr-x 1 root admin 1 11 17 2009 Genis -> /
193:~ genis$

it is done when i unmounted my external hard drive.
should i mount it?
please indicate the next step.

thank you for your time and patient.

Genis

hayne 11-16-2009 10:27 AM

Quote:

Originally Posted by Gen (Post 561671)
193:~ genis$ ls -l /Volumes
total 8
drwxr-xr-x 1 genis staff 4096 11 14 11:37 BOOTCAMP
lrwxr-xr-x 1 root admin 1 11 17 2009 Genis -> /

Okay, that's good. It shows your internal drive ("Genis") and your "BOOTCAMP" drive is there and that there is no detritus like I mentioned earlier.

So we're ready to deal with the external drive. Go ahead and attach it and mount it. Then re-run the same above commands:

df
ls -l /Volumes

and show us the commands & results via copy & paste.

Gen 11-16-2009 10:48 AM

hi Hayne,

here is my result after i mount my external drive:

193:~ genis$ df
Filesystem 512-blocks Used Available Capacity Mounted on
/dev/disk0s2 593231872 73329304 519390568 13% /
devfs 223 223 0 100% /dev
/dev/disk0s3 31236088 8653064 22583024 28% /Volumes/BOOTCAMP
map -hosts 0 0 0 100% /net
map auto_home 0 0 0 100% /home
/dev/disk1s6 488353088 177432528 310920560 37% /Volumes/Gen
193:~ genis$ ls -l /Volumes
total 8
drwxr-xr-x 1 genis staff 4096 11 14 11:37 BOOTCAMP
drw-rw-r--@ 26 genis staff 952 10 27 21:01 Gen
lrwxr-xr-x 1 root admin 1 11 17 2009 Genis -> /


please kindly advise.

thank you again for your time and patient.

Genis

hayne 11-16-2009 10:54 AM

Quote:

Originally Posted by Gen (Post 561692)
193:~ genis$ ls -l /Volumes
total 8
drwxr-xr-x 1 genis staff 4096 11 14 11:37 BOOTCAMP
drw-rw-r--@ 26 genis staff 952 10 27 21:01 Gen
lrwxr-xr-x 1 root admin 1 11 17 2009 Genis -> /

The above results show that "execute" permission is missing for the drive "Gen". To fix this, run the following commands:

chmod +x /Volumes/Gen
ls -l /Volumes
echo "done"

and then show us the results as usual via copy & paste.

After that, check if you can access the "Gen" drive. I.e. is it back to normal?

Gen 11-16-2009 11:02 AM

hi Hayne,

result:

193:~ genis$ chmod +x /Volumes/Gen
chmod: Unable to change file mode on /Volumes/Gen: Operation not permitted
193:~ genis$ ls -l /Volumes
total 8
drwxr-xr-x 1 genis staff 4096 11 14 11:37 BOOTCAMP
drw-rw-r--@ 26 genis staff 952 10 27 21:01 Gen
lrwxr-xr-x 1 root admin 1 11 17 2009 Genis -> /
193:~ genis$ echo "done"
done


please kindly indicate.

thank you

Genis

Gen 11-16-2009 11:03 AM

and my external drive "Gen" is mounted but unable to access.

hayne 11-16-2009 11:11 AM

Quote:

Originally Posted by Gen (Post 561697)
193:~ genis$ chmod +x /Volumes/Gen
chmod: Unable to change file mode on /Volumes/Gen: Operation not permitted

Okay, let's get more details on what's up with the Gen drive. Please run the following command and show us the results as usual:

ls -aOle /Volumes

Gen 11-16-2009 11:12 AM

hi Hayne:

result:

193:~ genis$ ls -aOle /Volumes
total 8
drwxrwxrwt@ 5 root admin hidden 170 11 17 00:01 .
0: group:everyone deny add_file,add_subdirectory,directory_inherit,only_inherit
drwxrwxr-t@ 30 root admin - 1088 11 10 21:05 ..
drwxr-xr-x 1 genis staff - 4096 11 14 11:37 BOOTCAMP
drw-rw-r--@ 26 genis staff uchg 952 10 27 21:01 Gen
lrwxr-xr-x 1 root admin - 1 11 17 2009 Genis -> /
193:~ genis$

thanks

hayne 11-16-2009 11:17 AM

Quote:

Originally Posted by Gen (Post 561703)
193:~ genis$ ls -aOle /Volumes
total 8
drwxrwxrwt@ 5 root admin hidden 170 11 17 00:01 .
0: group:everyone deny add_file,add_subdirectory,directory_inherit,only_inherit
drwxrwxr-t@ 30 root admin - 1088 11 10 21:05 ..
drwxr-xr-x 1 genis staff - 4096 11 14 11:37 BOOTCAMP
drw-rw-r--@ 26 genis staff uchg 952 10 27 21:01 Gen
lrwxr-xr-x 1 root admin - 1 11 17 2009 Genis -> /

I'm not too sure about the implications of the "ACLs" listed for the /Volumes folder - maybe someone else will chime in here.
But let's just try the 'chmod' command prefaced with a 'sudo':

sudo chmod +x /Volumes/Gen


You will be asked for your password and given a warning message about behaving responsibly due to the 'sudo'.

Gen 11-16-2009 11:21 AM

Hi Hayne,

what should i type if i do not have any password for my system or boost my imac.

193:~ genis$ sudo chmod +x /Volumes/Gen

WARNING: Improper use of the sudo command could lead to data loss
or the deletion of important system files. Please double-check your
typing when using sudo. Type "man sudo" for more information.

To proceed, enter your password, or type Ctrl-C to abort.

Password:
193:~ genis$


thanks

Genis

hayne 11-16-2009 11:27 AM

Quote:

Originally Posted by Gen (Post 561706)
Hi Hayne,

what should i type if i do not have any password for my system or boost my imac.

I'm not sure what you mean by not having any password. Do you mean that your password is blank? If so, you just press Return when asked for the password.
(By the way, it's a bad idea to have a blank password - or any easily guessed password. It leaves you more vulnerable to malware.)
Quote:

193:~ genis$ sudo chmod +x /Volumes/Gen

WARNING: Improper use of the sudo command could lead to data loss
or the deletion of important system files. Please double-check your
typing when using sudo. Type "man sudo" for more information.

To proceed, enter your password, or type Ctrl-C to abort.

Password:
193:~ genis$
So it looks like you just pressed Return and the command worked.
So check if your Gen drive is accessible now.

Gen 11-16-2009 11:33 AM

hi Hayne,

193:~ genis$ sudo chmod +x /Volumes/Gen

WARNING: Improper use of the sudo command could lead to data loss
or the deletion of important system files. Please double-check your
typing when using sudo. Type "man sudo" for more information.

To proceed, enter your password, or type Ctrl-C to abort.

Password:
Sorry, try again.
Password:


but i really do not have any password for my imac, what should i type or do?

my external drive is still cannot be access.

thanks

hayne 11-16-2009 02:49 PM

Quote:

Originally Posted by Gen (Post 561709)
but i really do not have any password for my imac, what should i type or do?

As I said above, if you mean that your password is blank, then just press Return when asked for the password.

But I assume that's what you have been doing and it is saying "Sorry, try again". That indicates that the password you are entering is not correct.

Go into the Accounts preferences panel in System Preferences and change your password to something else (something easy to remember, but not a dictionary word or anything else easy to guess).

Then supply that new password when asked by 'sudo'.

Gen 11-16-2009 07:24 PM

hi Hayne,

here is the result:

Last login: Tue Nov 17 08:21:40 on console
2:~ genis$ sudo chmod +x /Volumes/Gen

WARNING: Improper use of the sudo command could lead to data loss
or the deletion of important system files. Please double-check your
typing when using sudo. Type "man sudo" for more information.

To proceed, enter your password, or type Ctrl-C to abort.

Password:
chmod: Unable to change file mode on /Volumes/Gen: Operation not permitted
2:~ genis$

i add a password for my imac and do the sudo command again.

please advise.

thanks

Las_Vegas 11-16-2009 10:00 PM

You cannot use the sudo command with a blank password. You must set and Admin password.

Gen 11-16-2009 10:36 PM

hi Las-Vegas,

thank you for your answer.

but i already set my new password in system preference-->account.

but it seems i cannot type anything when the terminal ask me to enter my password.(just like in my result i paste here, nothing was displayed after "password")

i do not know why.
please kindly advise if anything wrong.

thank you

Genis

hayne 11-17-2009 12:55 AM

Quote:

Originally Posted by Gen (Post 561808)
it seems i cannot type anything when the terminal ask me to enter my password.(just like in my result i paste here, nothing was displayed after "password")

That's normal - nothing is shown in Terminal when you enter a password - this is for security reasons.

So it seems that the 'sudo chmod' command ran, but you still got "Operation not permitted".
I think this must be due to the ACLs that are present on the parent (/Volumes) folder.

Maybe someone who has Snow Leopard (10.6) will chime in here to tell us what the correct ACLs for the "/Volumes" folder should be.

Gen 11-17-2009 01:33 AM

hi Hayne,

anyother method i can try now?
i am so worry about my external drive.

kindly help. please...

thanks

Genis

hayne 11-17-2009 08:07 AM

Quote:

Originally Posted by Gen (Post 561703)
193:~ genis$ ls -aOle /Volumes
total 8
drwxrwxrwt@ 5 root admin hidden 170 11 17 00:01 .
0: group:everyone deny add_file,add_subdirectory,directory_inherit,only_inherit
drwxrwxr-t@ 30 root admin - 1088 11 10 21:05 ..
drwxr-xr-x 1 genis staff - 4096 11 14 11:37 BOOTCAMP
drw-rw-r--@ 26 genis staff uchg 952 10 27 21:01 Gen
lrwxr-xr-x 1 root admin - 1 11 17 2009 Genis -> /

Oh - I must have been tired when I looked at these results before - I didn't notice the 'uchg' flag on the Gen folder.
That is probably what is causing the problem.
So let's remove it (it is a "locked" flag).

Run the following commands as usual via copy & paste and show us the results:


sudo chflags nouchg /Volumes/Gen
ls -aOle /Volumes
echo "done"

Gen 11-17-2009 09:47 AM

1 Attachment(s)
Hi Hayne,

result:

128:~ genis$ sudo chflags nouchg /Volumes/Gen
Password:
128:~ genis$

the lock next to the external drive "Gen" is removed.

please indicate the next step!

thank you

Genis

Gen 11-17-2009 09:52 AM

1 Attachment(s)
Hi Hayne,

i am able to change the permission and access right after the removal of the lock beside.

everything back to normal now!
i am so excite and really really thank you for your kindly and patient help!!!!!!!!!!!!!!!!!!!!

you save my world!
welcome to email me genis.cheung@yahoo.com when you are visiting Hong Kong. i owe you a big meal!

and thank you to Las_Vegas too.
you guys are awesome!

thanks again

Genis

hayne 11-17-2009 09:52 AM

The next step is to try again to add "execute" permission to that folder:


sudo chmod +x /Volumes/Gen
ls -aOle /Volumes
echo "done"

Gen 11-17-2009 10:39 AM

hi hayne,

if my external drive is able to be accessed right now, should i keep entering the command?

thank you again!

Genis

hayne 11-17-2009 10:54 AM

No - I posted that (post #29) in response to your "what is the next step?" in post #27.


All times are GMT -5. The time now is 09:38 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.