Re: [SLE] fsck!!!

From: Ken Schneider (suselist_at_rtsx.com)
Date: 02/29/04

  • Next message: N1UAN Bob: "[SLE] grep"
    Date: Sat, 28 Feb 2004 19:07:57 -0500
    To: "SLE" <suse-linux-e@suse.com>
    
    

    <snip>

    >
    > A little informed but still desperate to fsck (defrag?) the system. I
    > am
    > trying to leave the machine on as much as possible here and so far
    > haven't been hit by a power outage....yet. When it does hit I am going
    > to need to know howto use this fsck thing immediately.
    >
    > So the questions remain:
    > 1. How to get to the CLI from the rescue option when booting off the
    > CD?
    > 2. How can I get fsck to walk through my fstab file if the / partition
    > isn't mounted?
    > 3. What fsck -option would be the best to check and repair the fs's and
    > also give me verbose output and a progress bar
    >
    > Hylton
    > --
    > The fscking desperate Little Helper

    1. Boot to the DVD / cd #1

    2. select rescue

    3. If asked for your language select what is right for you.

    4. Make sure that you load any/all modules for the FS that you use.

    5. Continue to boot to the rescue system.

    6. At the login prompt use root for the login.

    7. fsck any filesystems needing repair.

    Additional tasks that can be done from here

    mount your / filesystem to /mnt i.e.: mount /dev/hda# /mnt (use the number
    that is correct for your installation.

    cd /mnt

    chroot /mnt

    mount any additional filesystem you need, i.e.: /boot if on a seperate
    partition.

    At this point you can add and remove packages using rpm manually even
    kernel versions and sources required if you move your harddrive to another
    MB using a different processor.

    Run mkinitrd to create the boot environment.

    -----------------

    I require a special module to access the Ultra ATA 100 raid controller
    which is -not- provided by SuSE (or any other linux supplier) because it
    is not 100% opensource and I need to compile my own module which I can do
    in the above rescue mode and then add the module to the /lib/modules tree
    so I can boot using it.

    Another command I have found to build the modules tree so that mkinitmd
    will build the tree is:

    depmod.old -a <kernel version (2.4.166-default)> -f
    /boot/System.map-<kernel version>.

    meaning I can be running the .144 kernel version and build the modules.dep
    file for the .166 kernel which is needed to run mkinitrd for the .166
    kernel that I want ot boot to.

    Sorry to get so long winded but wanted to pass on some of my experiences.

    Ken Schneider

    -- 
    Check the headers for your unsubscription address
    For additional commands send e-mail to suse-linux-e-help@suse.com
    Also check the archives at http://lists.suse.com
    Please read the FAQs: suse-linux-e-faq@suse.com
    

  • Next message: N1UAN Bob: "[SLE] grep"

    Relevant Pages

    • Re: Debian -> Mac Mini, so close yet so far?
      ... and if I boot the CD and choose 'rescue' it all looks OK. ... But it won't boot. ... I get a Grub2 menu list - hmmm, I think it's Grub2, during the ... If I select either of my kernels (well, I guess same kernel, diff ...
      (uk.comp.os.linux)
    • Re: mkbootdisk w/FC 3
      ... > Is the rescue CD that was released with FC3 no use to you? ... disks for each time I upgrade the kernel so that I can be booting into the ... accustomed to if, for whatever reason, I can't boot in from my bootloader. ...
      (alt.os.linux.redhat)
    • Re: How do I drop to shell from rescue CD???
      ... I've used Linux years ago and I think I recall you could just ... works with this new CentOS 5.x rescue CD. ... other boot options, so you should look for that next time. ... keyword rescue as a kernel parameter. ...
      (comp.os.linux.misc)
    • Re: harddisk problem and/or fsck problem?
      ... >> fsck works. ... >> the new kernel. ... > to boot -s after installing a newly built kernel. ... system useless until you repair if if you do the installworld before ...
      (freebsd-questions)
    • Re: How to move my / partition
      ... and grab the kernel and initrd from the isolinux partition and put them ... in your /boot partition ... Next update your grub.conf file to add an entry to boot this ... title Fedora Rescue ...
      (Fedora)