Results 1 to 7 of 7

Thread: FSCK Cancel on startup.

  1. #1
    Junior Member
    Join Date
    Feb 2004
    Posts
    72

    FSCK Cancel on startup.

    I didnt know where to post this thread, so i decided on posting it in the general section, as its pretty general.

    Basically my /home directory exists on its own partition, just so i can reinstall UBUNTU every 6 months without having to loose all of my setings and data. Anyway on startup it always says that /home has errors and does a FSCK scan, this will fail, i then have to do CTRL + D and the system will continue to load as normal, and /home will work perfectly.

    This means i am having to baby sit my machine as it starts. Does anyone know of a way of cancelling the FSCK, or just telling the machine that the disk doesnt have errors, it occurs just after the startupprat that says "Checking all file systems".

    Any help would bemuch appreciated.

    GVWilliams
    | Distribution : Ubuntu == Dapper |
    | Cedega |

  2. #2
    Advisor Outlaw's Avatar
    Join Date
    May 2001
    Location
    Clifton Park, NY
    Posts
    630
    Check out your /etc/fstab

    Code:
    # /etc/fstab: static file system information.
    #
    # <file system> <mount point>   <type>  <options>       <dump>  <pass>
    proc            /proc           proc    defaults          0       0
    /dev/hda3       /               reiserfs defaults,noatime 0       1
    /dev/hda2       /boot           reiserfs defaults,noatime 0       2
    /dev/hda5       /home           reiserfs defaults,noatime 0       2
    /dev/hda9       /opt            reiserfs defaults,noatime 0       2
    /dev/hda10      /srv            reiserfs defaults,noatime 0       2
    /dev/hda8       /tmp            reiserfs defaults,noatime 0       2
    /dev/hda6       /usr            reiserfs defaults,noatime 0       2
    /dev/hda7       /var            reiserfs defaults,noatime 0       2
    /dev/hda1       none            swap    sw              0       0
    /dev/hdc        /media/cdrom0   iso9660 ro,user,noauto  0       0
    /dev/fd0        /media/floppy0  auto    rw,user,noauto  0       0
    Change the second trailing number for your home directory. In my case I would change the '2' to a '0' so /home will be skipped.

    However, you may want to unmount home and manually run fsck on it before next boot and try to resolve the failure that you referred to.

  3. #3
    Junior Member
    Join Date
    Feb 2004
    Posts
    72
    Hello.

    I dont want to do that, because then my /home directory wont be mounted then.

    The scan will defenately fail, i dont know why. It always does. I wanty to be able to mount it, but without having the system try and scan it. Because when it fails it does not continue, and i have to be sitting here to press CTRL + D

    its very frustrating.

    I am just looking for a way of telling the system that the disk is fine, and that there is no need to SCCAN it.

    Thanx
    | Distribution : Ubuntu == Dapper |
    | Cedega |

  4. #4
    Advisor Outlaw's Avatar
    Join Date
    May 2001
    Location
    Clifton Park, NY
    Posts
    630
    The partition will mount, it just will be skipped for further fsck.

  5. #5
    Moderator
    Good Guru
    Compunuts's Avatar
    Join Date
    May 2001
    Location
    California
    Posts
    3,935
    Quote Originally Posted by Outlaw
    Change the second trailing number for your home directory. In my case I would change the '2' to a '0' so /home will be skipped.
    Yeah, if you do that, then FSCK will never bother to check your /home for errors but it will continue to mount for you to use.

    However, you may want to unmount home and manually run fsck on it before next boot and try to resolve the failure that you referred to.
    I would take that advise if I were you. There are a number of things that prevents your disk to boot error free but in fact it is going down that way. It might be telling you that either your superblocks have wrong info or either your physical disk has errors. If you do manual FSCK, then either the system will correct the errors or it will mark the OS not to use that sector to store data on it.
    LinuxVillage - The truely community run Linux/Floss forum !

    No IT BS !!

  6. #6
    Moderator
    Good Guru
    Schotty's Avatar
    Join Date
    Jul 2001
    Location
    Milwaukee, WI
    Posts
    5,758

    Lightbulb

    Quote Originally Posted by Gaweph
    Hello.

    I dont want to do that, because then my /home directory wont be mounted then.
    Yes it will. That is only for the order of fsck running. 0's arent run ever. 1's are first, 2's second etc.

    The scan will defenately fail, i dont know why. It always does. I wanty to be able to mount it, but without having the system try and scan it. Because when it fails it does not continue, and i have to be sitting here to press CTRL + D
    what spot is it failing on? You may have a corrupt file that is not needed. What I would do is this

    1) Boot off of a live disc that supports your filesystem (reiserfs, ext, jfs, xfs etc)

    2) Run fsck off of the live cd on that partition. See if that does the trick.

    3) if not, do what Outlaw stated and change the 2 to a 0 for now, remembering that the drive is tecnically unclean, and the data really is unreliable until it is (probably a damn cache file from firefox or an email attatchment, thats my luck always).

    4) Report back with what happened. Something is wrong, and sooner or later will bite you in the rear.

    its very frustrating.

    I am just looking for a way of telling the system that the disk is fine, and that there is no need to SCCAN it.

    Thanx
    Thats called fixing it

  7. #7
    Junior Member
    Join Date
    Feb 2004
    Posts
    72
    Hello.

    Sorry if it seems that i have not been interested in this post.

    I have been very very busy latelly. Tomorrow or monday i will try the manual scan, Im sure it wil work. if not then il do the 0 --> 2 thing.

    Thank you very much everyone for the advice.

    Im back for the hols so il have lots of time to sort out my PC, i have just upgraded from Brezy to Dapper evelopment aswell. its good stuff, and it was relativelly easy.

    Going off topic here, so byebye.
    | Distribution : Ubuntu == Dapper |
    | Cedega |

Similar Threads

  1. install and use the Recovery Console in Windows XP
    By regix in forum Windows - General Topics
    Replies: 14
    Last Post: 01-04-2005, 05:35 AM
  2. Redhat 9 reboots by it self
    By in forum Linux - General Topics
    Replies: 22
    Last Post: 10-14-2003, 02:54 PM
  3. Boot Process Hangs in RH9
    By rrunolfson in forum Linux - General Topics
    Replies: 5
    Last Post: 06-03-2003, 08:21 PM
  4. very basic fsck question
    By RedHatNewbie in forum Linux - General Topics
    Replies: 8
    Last Post: 02-14-2003, 10:14 PM
  5. Loading modules on startup
    By shaun680 in forum Redhat / Fedora
    Replies: 4
    Last Post: 11-03-2002, 03:22 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •