Bug 517456 - can't 'chroot /mnt/sysimage/' in rescue mode
Summary: can't 'chroot /mnt/sysimage/' in rescue mode
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: rawhide
Hardware: i386
OS: Linux
Target Milestone: ---
Assignee: Anaconda Maintenance Team
QA Contact: Fedora Extras Quality Assurance
Depends On:
TreeView+ depends on / blocked
Reported: 2009-08-14 07:15 UTC by He Rui
Modified: 2009-08-24 13:44 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2009-08-24 13:44:45 UTC
Type: ---

Attachments (Terms of Use)

Description He Rui 2009-08-14 07:15:23 UTC
Description of problem:
the previuos installation has mounted under /mnt/sysimage, but cannot execute chroot /mnt/sysimage on shell.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1.  Boot the installer using any available means (CDROM, DVD, http, ftp, or nfs) with the rescue command-line parameter
2. If doing a network installation, specify the remote installation source for grabbing stage2 anaconda (e.g. nfs, http, or ftp)
3. Instruct anaconda to scan your disks for existing installations
4. Select "OK" to mount into /mnt/sysimage for your existing installation 
5. execute 'chroot /mnt/sysimage/' in shell.
Actual results:

bash-4.0#chroot /mnt/sysimage/
chroot: cannot run command '/bin/sh': Exec format error

Expected results:
change the root partition of the rescue mode environment to the root partition of your file system successfully.

Additional info:

Comment 1 James Laska 2009-08-14 12:49:56 UTC
I wonder if this is a result of using an i386 rescue image on a system installed with x86_64?

Comment 2 Andy Lindeberg 2009-08-14 13:26:01 UTC
I would imagine so. Can you try with an image from the right architecture?

Comment 3 He Rui 2009-08-24 09:13:39 UTC
Oh sorry, i did use an i386 image to rescue the x86_64 system. Today I tested f12-Alpha-RC2-i386 from right architecture, it works fine.

Note You need to log in before you can comment on or make changes to this bug.