Professional Web Applications Themes

e2fsck trashed system; chroot now failing - Debian

i booted up my laptop to check my email this evening, and e2fsck declares it's been 22 mounts or more and starts chugging away. it dies, so i knoppix-boot and manually e2fsck -y the thing so i don't have to sit there and babysit it. it finishes, so i reboot and take the knoppix CD out. but it kernel-panics -- "no init found." so i knoppix back in, mount my root partition, and lo an behold, my system's trashed. instead of bin/ dev/ etc/ et cetera, i see lines upon lines of: #1030177 #163 #196286 #210 #354 #376679 #387 #886 ...

  1. #1

    Default e2fsck trashed system; chroot now failing

    i booted up my laptop to check my email this evening, and e2fsck
    declares it's been 22 mounts or more and starts chugging away. it
    dies, so i knoppix-boot and manually e2fsck -y the thing so i don't
    have to sit there and babysit it. it finishes, so i reboot and take
    the knoppix CD out.

    but it kernel-panics -- "no init found." so i knoppix back in, mount
    my root partition, and lo an behold, my system's trashed. instead of
    bin/ dev/ etc/ et cetera, i see lines upon lines of:

    #1030177 #163 #196286 #210 #354 #376679 #387 #886
    #1046529 #164 #196287 #212577 #355 #376680 #388 #887
    #1062892 #165 #196288 #212578 #356 #376681 #389 #888
    #107 #166 #196292 #212588 #357 #376682 #390 #889
    #108 #1667909 #196294 #224 #358 #376683 #391 #890
    ....

    all my system files and everything are in these directories and
    folders. it feels as though my house has been broken into and
    trashed, or something!

    so i start going through the ones that are directories, and seeing
    what i can recognize. so far i've got:

    bin boot dev etc home root sbin usr var vmlinuz

    the vmlinuz i linked myself, to boot/2.4.20-1-686.

    but still no dice. Chroot seems to be the thing with the problem:

    mount: wrong fs type, bad option, bad superblock on /devfs/root2, or
    too many mounted filesystems
    pivot_root: No such file or directory
    chroot: /sbin/init: No such file or directory
    Kernel panic: Attempted to kill init!

    i've never heard of /devfs, let alone root2.

    help? i *really* don't want to reinstall this from scratch ... but i
    will if i have to.

    thanks a lot,

    </nori>

    --
    .~. nori sccs.swarthmore.edu
    /V\ http://www.sccs.swarthmore.edu/~nori/jnl/
    // \\ maenad.net
    /( )\ www.maenad.net
    ^`~'^
    get my (*new*) key here:
    http://www.maenad.net/geek/gpg/7ede5499.asc
    (please *remove* old key 11e031f1!)


    --
    To UNSUBSCRIBE, email to debian.org
    with a subject of "unsubscribe". Trouble? Contact debian.org
    nori Guest

  2. #2

    Default Re: e2fsck trashed system; chroot now failing


    hi ya

    On Fri, 8 Aug 2003, nori heikkinen wrote:
     

    i'v always claimed, "e2fsck -y" is very very very bad ...
    as you dont know what its gonna fix or try to fix or what it fixed
    -- if i see toomany sequential blocks being fixed, i abort
    and let it boot normally ... a few times and let the os
    reboots attempt to fix itself ....

    - am also wondering if the partition was mounted when you told it to
    run e2fsck manually ...
    e2fsck should abort unconditionally or at least read but NOT
    fix anything on mounted fs

    - before running e2fsck ..
    - make sure your backups works
    - make sure you have another compatible boot media
    ( maybe knoppix didnt fix it the way it should have
    ( based on your partitions ?? ( just guessing

    manually fixing inodes is too much of pain ... best to reinstall
    and restore from backups and do not run "e2fsck -y" again from
    an incompatible/untested media

    c ya
    alvin
     


    --
    To UNSUBSCRIBE, email to debian.org
    with a subject of "unsubscribe". Trouble? Contact debian.org
    Alvin Guest

  3. #3

    Default Re: e2fsck trashed system; chroot now failing

    <snip>
    Sound like things didnt go well...
    a) boot with knoppix
    b) attempt to backup important data (email,doents..)
    c) see if you can get info for recreating your system.. CHROOT if
    possible and dpkg --get-selections
    (get other comments as I am not a GURU)
    d) see if other can suggest a way to recover enought functionality -- if
    it can be done with out killing the hd.
    I had a similar situation and was able to get the system to boot after
    some dangeroud fsck.reiser fixing and then immediately did a 'dd' hd to
    hd copy with knoppix booted. (some have said to use other methods but I
    found it worked best)
    The point is... when the boat springs a leak...save the people
    first...the boat can be replaced.
    -K


    --
    To UNSUBSCRIBE, email to debian.org
    with a subject of "unsubscribe". Trouble? Contact debian.org
    Kevin Guest

  4. #4

    Default Re: e2fsck trashed system; chroot now failing

    Hi,
    if you find any way to boot or chroot your system, you can try to
    reinstall everything (apt-get --reinstall). You shouldn't run e2fsck -y
    because it will try to fix EVERYTHING without prompting.
    regards
    Wolfgang


    --
    To UNSUBSCRIBE, email to debian.org
    with a subject of "unsubscribe". Trouble? Contact debian.org
    Wolfgang Guest

Similar Threads

  1. Flex 2.0 Trashed CF7 Installation
    By Wally Randall in forum Coldfusion Server Administration
    Replies: 1
    Last Post: March 16th, 12:31 AM
  2. Perl system() command failing under CYGWIN
    By Gordon in forum PERL Miscellaneous
    Replies: 1
    Last Post: September 10th, 01:08 PM
  3. Different versions of e2fsck on one computer
    By Doug Laidlaw in forum Linux Setup, Configuration & Administration
    Replies: 1
    Last Post: August 22nd, 12:42 PM
  4. unneeded e2fsck ?
    By Ulrich Lauther in forum Linux Setup, Configuration & Administration
    Replies: 3
    Last Post: August 8th, 03:35 PM
  5. chroot setup
    By Thomas Schweikle in forum AIX
    Replies: 0
    Last Post: July 23rd, 11:50 AM

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
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139