Fsck

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Kooldino
    Super MURCer
    • Nov 2002
    • 3026

    #1

    Fsck

    How can i run an FSCK on my RH9 box? If I wait until it's booted, it will warn me not to FSCK because the FS is mounted.

    I tried booting up in knoppix and running an FSCK -A, but it only took a second or so to run, so I doubt it did anything major.
  • Ribbit
    Super MURCer
    • Apr 2001
    • 1174

    #2
    Try rebooting it with shutdown -F -r now - make sure that F is uppercase!

    Or if you want to try with knoppix, try fsck -a -f - and that F is lowercase (gotta love the command line!)
    Last edited by Ribbit; 13 April 2004, 14:26.
    Blah blah blah nick blah blah confusion, blah blah blah blah frog.

    Comment

    • spadnos
      MURCer
      • Jun 2002
      • 859

      #3
      Makes you wonder how 5kr1p7 k1ddi3z can ever get anywhere with non-GUI OSes.

      - Steve

      Comment

      • Kooldino
        Super MURCer
        • Nov 2002
        • 3026

        #4
        So if I do the "shutdown -F -r now" option, I can do it straight from redhat? What do those options translate to?

        As for the knoppix "fsck -a -f", I can wait until it's fully loaded to do that?

        Comment

        • spadnos
          MURCer
          • Jun 2002
          • 859

          #5
          -F means "do an fsck on next reboot"
          -r means "reboot" (versus h for halt)
          now means "do it now", versus stating a shutdown time or delay.

          - Steve

          Comment

          • Kooldino
            Super MURCer
            • Nov 2002
            • 3026

            #6
            So what's the lower case "f" mean?

            Comment

            • Ribbit
              Super MURCer
              • Apr 2001
              • 1174

              #7
              As a shutdown argument, -f means "fast reboot", i.e. don't do an fsck even if it might be needed.

              As an fsck argument, it means "force", i.e. do a full check even if it probably isn't needed.
              Blah blah blah nick blah blah confusion, blah blah blah blah frog.

              Comment

              • spadnos
                MURCer
                • Jun 2002
                • 859

                #8
                So, for the shutdown command, "f" and "F" are effectively opposites.

                - Steve

                Comment

                • Kooldino
                  Super MURCer
                  • Nov 2002
                  • 3026

                  #9
                  LOL, wow. And people have argued with me that Unix is user friendly.

                  Comment

                  • TnT
                    Super MURCer
                    • Sep 1999
                    • 1644

                    #10
                    Actually it makes sense, lower case to do one thing, upper to do the opposite. You know that the letter f/F has to do with fsck, otherwise it is stranger to have some random letter represent it. The problem is that other OSes don't take case into consideration Well OS X does sometimes and doesn't in other times...
                    Gigabyte GA-K8N Ultra 9, Opteron 170 Denmark 2x2Ghz, 2 GB Corsair XMS, Gigabyte 6600, Gentoo Linux
                    Motion Computing M1400 -- Tablet PC, Ubuntu Linux

                    "if I said you had a beautiful body would you take your pants off and dance around a bit?" --Zapp Brannigan

                    Comment

                    • Kooldino
                      Super MURCer
                      • Nov 2002
                      • 3026

                      #11
                      Anytime where changing the case of a letter DRASTICALLY changes what it does is NOT user friendly.

                      Comment

                      • Kooldino
                        Super MURCer
                        • Nov 2002
                        • 3026

                        #12
                        OK, so I ran the fsck before i left work last night, so I didn't get to see the results. IS there a lot i can check?

                        Comment

                        • Ribbit
                          Super MURCer
                          • Apr 2001
                          • 1174

                          #13
                          What type of filesystem are they? If they're ext2/3, you can use tune2fs -l <device> and look for "last checked" or something like that.
                          Blah blah blah nick blah blah confusion, blah blah blah blah frog.

                          Comment

                          • Kooldino
                            Super MURCer
                            • Nov 2002
                            • 3026

                            #14
                            [root@winchester root]# tune2fs -l /dev/hda
                            tune2fs 1.32 (09-Nov-2002)
                            tune2fs: Bad magic number in super-block while trying to open /dev/hda
                            Couldn't find valid filesystem superblock.



                            ???

                            Comment

                            • Ribbit
                              Super MURCer
                              • Apr 2001
                              • 1174

                              #15
                              Use a partition number, e.g. /dev/hda1. /dev/hda is the whole disk.

                              mount on its own will list what's mounted where, and with what fs type. Or look in /etc/fstab.
                              Blah blah blah nick blah blah confusion, blah blah blah blah frog.

                              Comment

                              Working...