Re: Invisible Boot Drive?



In article <fpc9b70e93@xxxxxxxxxxxxxxxxx>,
John Drako <jbravo556@xxxxxxxxxxxxxxxxxxxx> wrote:

On Mon, 18 Feb 2008 04:50:29 -0500, David Empson wrote
(in article <1icj304.5lr0wjiq13oN%dempson@xxxxxxxxxxxxx>):

John Drako <jbravo556@xxxxxxxxxxxxxxxxxxxx> wrote:

System: Leopard 10.5.1 and 10.5.2, iMac 2.8 Ghz boot drive 750 GB

A couple of weeks before 10.5.2 came out, something weird happened:
My boot drive became invisible. It doesn't show in the finder's
sidebar and when I click on the computer's name in the sidebar, the
drive is not listed.

The only way to see it in the Finder is to go my home directory and
hit command-up arrow until I get to the top level. Only then I could
see the drive. But, it's greyed out and it has a time machine drive
icon.

That icon is odd, but it might be a red herring.

The most likely explanation is that the root directory of your hard
drive has somehow been marked as Hidden, and Finder is obediently
hiding it.

You can check whether this is the case using Terminal, and fix it if
necessary.

Launch Terminal (from /Applications/Utilities).

Enter the following command, exactly as shown here (copy and paste
it). It is case sensitve.

ls -ldO /

This does a directory listing of the root directory of your startup
volume (/), only looking at the directory itself, not its contents (d
option), in long form (l option) with flags displayed (O option).

A normal root directory should report something like this:

drwxrwxr-t 40 root admin - 1428 13 Feb 14:24 /

If the hidden flag is set, you will see this:

drwxrwxr-t 40 root admin hidden 1428 13 Feb 14:24 /

If it says "hidden" after the group name, then you can use the
following command to unhide it. You will need to be an admin user for
this one. Again, this is case senstive, so I suggest copying and
pasting.

sudo chflags nohidden /

It will ask for your password, which is your normal one for your user
account. (If you have never used sudo before, it will also display a
brief lecture about the dangers of dabbling with sudo.)

The "sudo" command means "do the following command as the super user"
(i.e. root). The "chflags" command changes flags on files, "nohidden"
means you want to remove the hidden flag, and "/" refers to the root
directory of the startup volume.

Hope this helps!

It sure did; Thanks.

That solved the problem, except for the time machine icon on the drive.
The root directory was indeed hidden. Weird.

The number after the dash (that replaced the word 'hidden') is 1360.
What is the significance of this number?

drwxrwxr-t 38 root admin - 1360 11 Feb 17:15 /

it's the total number of 512-byte blocks used by the files in the
directory

--
Tom Stiller

PGP fingerprint = 5108 DDB2 9761 EDE5 E7E3 7BDA 71ED 6496 99C0 C7CF
.



Relevant Pages

  • Re: Invisible Boot Drive?
    ... when I click on the computer's name in the sidebar, ... The most likely explanation is that the root directory of your hard ... If the hidden flag is set, ... sudo chflags nohidden / ...
    (comp.sys.mac.system)
  • Re: Write to file forbidden
    ... from the root directory. ... That would be nearly all files - hidden files would stay hidden. ... There is no big difference between sudo and gksudo in this case because, ... it operates on the ls command not on the output redirection. ...
    (Ubuntu)
  • Re: Icons (Printer, Drives)
    ... > Christoph Graber wrote: ... > The drive icon is easy, but I don't have any info for the printer icon. ... Copy the icon you want to the root directory of the target drive. ... Reboot to finish the process. ...
    (microsoft.public.windowsxp.customize)
  • Re: Write to file forbidden
    ... Smoot Carl-Mitchell wrote: ... from the root directory. ... When attempting to capture that list by saving it to a text file, ... sudo command is executed. ...
    (Ubuntu)
  • Re: favicon
    ... and use it to convert your ico file to a genuine icon. ... > i have included the image that i need as the icon, and also the icon file> that i am using that is in the root directory. ... >>>I have been emailing my servers and asking everyone else ...
    (microsoft.public.frontpage.programming)