Unix Technical Forum

chroot problems

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 ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-20-2008, 09:48 PM
Darcy Bittencourt
 
Posts: n/a
Default chroot problems

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 ?

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-20-2008, 09:48 PM
Sylvain Robitaille
 
Posts: n/a
Default Re: chroot problems

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
----------------------------------------------------------------------
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-20-2008, 09:48 PM
Grant
 
Posts: n/a
Default Re: chroot problems

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/
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-20-2008, 09:48 PM
Joe Feise
 
Posts: n/a
Default Re: chroot problems

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-20-2008, 09:49 PM
Roel Kluin
 
Posts: n/a
Default Re: chroot problems

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-20-2008, 09:49 PM
Roel Kluin
 
Posts: n/a
Default Re: chroot problems

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


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-20-2008, 09:49 PM
Darcy Bittencourt
 
Posts: n/a
Default Re: chroot problems

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.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:45 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com