Author Topic: What\'s the best way to run fsck -y?  (Read 3086 times)

Offline Gary S

  • TS Addict
  • *****
  • Posts: 2503
    • View Profile
What\'s the best way to run fsck -y?
« on: April 22, 2003, 11:20:00 PM »
What's the best way to run fsck -y?

I had that problem with IE and 10 and i was just wondering how you all run it. Pouge says startup with the Command-S key and i was wondering if theirs a different way.    

TIA
Gary S

Offline kps

  • TS Addict
  • *****
  • Posts: 1693
    • View Profile
    • http://
What\'s the best way to run fsck -y?
« Reply #1 on: April 22, 2003, 11:29:00 PM »
You must be booted in single user mode, otherwise there's no point in doing it.

However, you can also accomplish much of the same using verify and repair disc by using DiscUtility while booted from a CD, an external drive or another partition. Just make sure you use the DiscUtility which came with the OS you're running.

Your problems with IE (which Harv helped you with), were probably preference or OS cache related. I don't think it was a file system issue, you'd have other problems if it were.

Offline Gary S

  • TS Addict
  • *****
  • Posts: 2503
    • View Profile
What\'s the best way to run fsck -y?
« Reply #2 on: April 22, 2003, 11:35:00 PM »
Thanks KPS.
Gary S

Offline kps

  • TS Addict
  • *****
  • Posts: 1693
    • View Profile
    • http://
What\'s the best way to run fsck -y?
« Reply #3 on: April 22, 2003, 12:29:00 PM »
Have a look at these utilities...but use caution in using them. I have both, but had no reason to use them yet. Read the instructions carefully to understand what does what.

Jaguar Cache Cleaner

Cache Out X

Offline Gary S

  • TS Addict
  • *****
  • Posts: 2503
    • View Profile
What\'s the best way to run fsck -y?
« Reply #4 on: April 22, 2003, 04:15:00 PM »
Kps,

Jusy for the experience I booted with Command-S. You know how at the end it's supposed to say localhost#, well it didn't. So I typed reboot instead. Does the absence of localhost# indicate anything?

I finally booted to my 10.2.1 CD and verified and the HHD. It came out OK.
Gary S

Offline tacit

  • TS Addict
  • *****
  • Posts: 1628
    • View Profile
    • http://www.xeromag.com/
What\'s the best way to run fsck -y?
« Reply #5 on: April 22, 2003, 04:20:00 PM »
"Jusy for the experience I booted with Command-S. You know how at the end it's supposed to say localhost#, well it didn't."

What did it say?

It's not supposed to say "localhost" necessarily; it's supposed to say the name of the computer followed by a #. "Localhost" is the default name of a Unix computer, so by default (unless you have specified a different name) the prompt will say "localhost."

The # indicates you are not in superuser mode. If you boot in superuser mode, the prompt is *.

So if you have named your computer "gandalf," the prompt will be

gandalf#

If you have named your computer "eris" and you are in superuser mode, the prompt will be

eris*
A whole lot about me: www.xeromag.com/franklin.html

Offline kps

  • TS Addict
  • *****
  • Posts: 1693
    • View Profile
    • http://
What\'s the best way to run fsck -y?
« Reply #6 on: April 22, 2003, 04:52:00 PM »
In single user mode Darwin reads all those files in an invisible directory called "etc". In that directory is a file called cshrc, in that file are directions that tell the system what the prompt will look like depending on the sh (shell) you're in...

code:
# System-wide .cshrc file for csh(1).

if ($?prompt) then
   set promptchars = "%#"
   if ($?tcsh) then
      set prompt = "[%m:%c3] %n%# "
   else
      set prompt = "[%m:%c3] `id -nu`%# "
   endif
endif

Since you're in single user mode it reads the "else" argument(because we're not in tcsh) and displays `id -nu` because I think Apple got rid of zsh and is now using bash in single user mode.  So your prompt probably looked like sh-2.05a#, which, is the bash version in use.

code:
[KARCOM:/bin] karl% bash -version
GNU bash, version 2.05a.0(1)-release (powerpc-apple-darwin6.0)
Copyright 2001 Free Software Foundation, Inc.

As you can see above, the prompt in the Terminal(which uses tcsh) my prompt is:
my computer name followed by the directory I'm in followed by my login mane and the % sign. I then ran the command "bash -version" to confirm that Apple has switched from zsh to bash version 2.05a.0

The # is root or the superuser in OS X, normally the prompt is % I'm afraid tacit is not correct in this case.

Offline Gary S

  • TS Addict
  • *****
  • Posts: 2503
    • View Profile
What\'s the best way to run fsck -y?
« Reply #7 on: April 22, 2003, 05:31:00 PM »
I can't remember what it said!    

Next time I'll copy it down.

I don't remember giving the computer a name .........I don't know.
Gary S

Offline Bill

  • TS Addict
  • *****
  • Posts: 4615
    • View Profile
What\'s the best way to run fsck -y?
« Reply #8 on: April 22, 2003, 07:34:00 PM »
"What's the best way to run fsck -y?"

Very carefully!
.
.
.
.
.
Especially if your spelling skills ain't that swift.
Two cans and a string powered by a big mouth

Offline kps

  • TS Addict
  • *****
  • Posts: 1693
    • View Profile
    • http://
What\'s the best way to run fsck -y?
« Reply #9 on: April 22, 2003, 07:59:00 PM »
quote:
Originally posted by Gary S:
I don't remember giving the computer a name .........I don't know.    

System Preferences-->Sharing

Offline Gary S

  • TS Addict
  • *****
  • Posts: 2503
    • View Profile
What\'s the best way to run fsck -y?
« Reply #10 on: April 23, 2003, 09:30:00 AM »
I started up with the command -S again.. The last line says:

sh-2.05a#
Gary S

Offline nrowe

  • Poster Child
  • *
  • Posts: 46
    • View Profile
What\'s the best way to run fsck -y?
« Reply #11 on: July 09, 2003, 10:41:48 AM »
B)
When I I ran fsck -y it used to fix problems, now it shows a missing thread and the wrong file sizes. Then it shows it repairing these but when you run fsck -y again it reports the same errors. I used the Disk Utility from the CD and repaired it but fsck -y still shows the same errors. Any ideas?