This is a discussion on chroot problems within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> Last week I installed WinXP64 on my box. This week I need to use my slackware 11, so I ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Last week I installed WinXP64 on my box. This week I need to use my slackware 11, so I got my install dvd, boot the computer using it to reinstall lilo. Kernel used: huge26.s # cd mnt/ # mkdir slack # mount /de/sda3 slack/ # chroot slack/ chroot: cannot execute \bin\sh : exec format error I also tried # chroot /dev/sda3 /bin/bash chroot: cannot change root directory to /dev/sda3 : not a directory # chroot /mnt/slack /bin/bash chroot: cannot execute \bin\bash : exec format error sata.i root=/dev/sda3 noinitrd ro kmod: failed to exec /sbin/modprobe -k -s binfmt -464c,errno = 8 huge26.s root=/dev/sda3 noinitrd ro request_module: runaway loop modprobe binfmt -464c What's wrong with chroot ? How can I fix this ? |
| |||
| Darcy Bittencourt wrote: > chroot: cannot execute \bin\sh : exec format error Looks to me like you didn't actually boot the Slackware CD. My guess is you're trying to run chroot from within Windows (does windows _have_ a chroot?) -- ---------------------------------------------------------------------- Sylvain Robitaille syl@alcor.concordia.ca Systems and Network analyst Concordia University Instructional & Information Technology Montreal, Quebec, Canada ---------------------------------------------------------------------- |
| |||
| On 24 Apr 2007 20:13:22 -0700, Darcy Bittencourt <d4rkt3mpl4r@gmail.com> wrote: >Last week I installed WinXP64 on my box. >This week I need to use my slackware 11, so I got my install dvd, boot >the computer using it to reinstall lilo. > >Kernel used: huge26.s > ># cd mnt/ ># mkdir slack ># mount /de/sda3 slack/ ># chroot slack/ lilo -r /mnt/slack No chroot required, otherwise 'chroot /mnt/slack' and continue on your merry way... Grant. -- http://bugsplatter.mine.nu/ |
| |||
| Darcy Bittencourt wrote on 04/24/07 20:13: > Last week I installed WinXP64 on my box. > This week I need to use my slackware 11, so I got my install dvd, boot > the computer using it to reinstall lilo. > > Kernel used: huge26.s > > # cd mnt/ > # mkdir slack > # mount /de/sda3 slack/ > # chroot slack/ > > chroot: cannot execute \bin\sh : exec format error > > > I also tried > > > # chroot /dev/sda3 /bin/bash > > chroot: cannot change root directory to /dev/sda3 : not a directory > > > # chroot /mnt/slack /bin/bash > > chroot: cannot execute \bin\bash : exec format error > > > > sata.i root=/dev/sda3 noinitrd ro > kmod: failed to exec /sbin/modprobe -k -s binfmt -464c,errno = 8 > > > huge26.s root=/dev/sda3 noinitrd ro > request_module: runaway loop modprobe binfmt -464c > > > What's wrong with chroot ? > How can I fix this ? Looks like the Linux partition is corrupted. I don't know enough about 64-bit Windows, but it may have done some weird stuff to the master boot record. If you can't fix that with lilo, you may have to reinstall Slack. |
| |||
| Once upon a time,Wed, 25 Apr 2007 03:23:45 +0000 to be exact, Sylvain Robitaille wrote: > My guess is you're trying to run chroot from within Windows (does > windows _have_ a chroot?) Nah, dos doesn't have a chroot. dos doesn't have anything. only a hand full of barely documented commands that always seem to overwrite your MBR. Roel |
| |||
| Once upon a time,Tue, 24 Apr 2007 20:13:22 -0700 to be exact, Darcy Bittencourt wrote: > Kernel used: huge26.s > > # cd mnt/ > # mkdir slack > # mount /de/sda3 slack/ /dev/sda3 i presume? > # chroot slack/ > > chroot: cannot execute \bin\sh : exec format error why are the slashes in the wrong direction? > I also tried > > > # chroot /dev/sda3 /bin/bash > > chroot: cannot change root directory to /dev/sda3 : not a directory This doesn't work. /dev/sda3 is a device file, not the mount point. > # chroot /mnt/slack /bin/bash > > chroot: cannot execute \bin\bash : exec format error This, on the other hand is sensible. maybe WinXP64 changed partition numbers? verify (using fdisk -l) that the partition table is the same. this can also show some errors. Roel |
| ||||
| lilo -r /mnt/slack I'll try this. > > maybe WinXP64 changed partition numbers? verify (using fdisk -l) that the > partition table is the same. this can also show some errors. > > Roel If the partition numbers were changed I won't be able to mount it. # mount /de/sda3 /mnt/slack I can mount the partition without problems. The problem is with the chroot. |
| Thread Tools | |
| Display Modes | |
|
|