I'm encountering a strange problem while trying to install funtoo on my desktop. The files which I extract from the stage 3 tarball refuse to be executed. I tried the following (not in this order): Mounted filesystem --rw -o exec. fsck -f /dev/sda3 cp bin/bash /root && /root/bash cp /bin/bash . && chroot . bash -l The above command failed because bash could not find the shared object (.so) files. tar -xpf stage3* cat bin/bash find bin -exec file --mime-type '{}' \; | grep -v application/x-executable I then executed bin/gunzip as it was a shell script and it ran fine. I tried changing my PATH. I always get the same error for all operations. Here's the name of the stage 3 tarball: -rwxr-xr-x 1 root root 300494916 May 26 06:54 /mnt/gentoo/stage3-amd64-bulldozer-funtoo-stable-2015-05-25.tar.xz
Here's the error I get when executing a binary file: zsh: no such file or directory: /mnt/gentoo/bin/bash
The files show up with ls.
The version of the cd I'm using is 4.5.0. The kernel is 3.14.31 std450 amd64. A simmilar problem occurs when using knoppix from a dvd (knoppix is 32bit, version 7.2 kernel 3.9.6, this rescue cd is 64bit, booted UEFI with the black screen, default option). The error is: bash: /media/sda3/bin/bash: cannot execute binary file
If I boot it in 64bit mode it returns the same error as above (except that knoppix is using bash, of course). I suppose that it might be a bad archive, but then xz uses 64bit crc checksums so xz should have said something to tar indicative of an error. I just decompressed it with plain xz and used echo $?, there is no error. Of course you can turn off the checksum but I doubt you would have, I typically change it to sha256.
Here's my hardware list from lspci -vk :
00:00.0Host bridge:AdvancedMicroDevices,Inc.[AMD/ATI] RD890 PCI to PCI bridge (external gfx0 port B)(rev 02)Subsystem:AdvancedMicroDevices,Inc.[AMD/ATI] RD890 PCI to PCI bridge (external gfx0 port B)Flags: fast devsel
Capabilities:[f0]HyperTransport: MSI MappingEnable+Fixed+Capabilities:[c4]HyperTransport:SlaveorPrimaryInterfaceCapabilities:[40]HyperTransport:RetryModeCapabilities:[54]HyperTransport:UnitIDClumpingCapabilities:[9c]HyperTransport:#1aCapabilities:[70] MSI:Enable-Count=1/4Maskable-64bit-00:02.0 PCI bridge:AdvancedMicroDevices,Inc.[AMD/ATI] RD890 PCI to PCI bridge (PCI express gpp port B)(prog-if00[Normal decode])Flags: bus master, fast devsel, latency 0Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
I/O behind bridge:0000e000-0000efffMemory behind bridge: fea00000-feafffff
Prefetchable memory behind bridge:00000000c0000000-00000000cfffffffCapabilities:[50]PowerManagement version 3Capabilities:[58]ExpressRootPort(Slot+), MSI 00Capabilities:[a0] MSI:Enable-Count=1/1Maskable-64bit-Capabilities:[b0]Subsystem:AdvancedMicroDevices,Inc.[AMD/ATI]Device5a14Capabilities:[b8]HyperTransport: MSI MappingEnable+Fixed+Capabilities:[100]VendorSpecificInformation: ID=0001Rev=1Len=010<?>Capabilities:[190]AccessControlServicesKernel driver inuse: pcieport
Kernel modules: shpchp
00:04.0 PCI bridge:AdvancedMicroDevices,Inc.[AMD/ATI] RD890 PCI to PCI bridge (PCI express gpp port D)(prog-if00[Normal decode])Flags: bus master, fast devsel, latency 0Bus: primary=00, secondary=02, subordinate=02, sec-latency=0Memory behind bridge: fe900000-fe9fffff
Capabilities:[50]PowerManagement version 3Capabilities:[58]ExpressRootPort(Slot+), MSI 00Capabilities:[a0] MSI:Enable-Count=1/1Maskable-64bit-Capabilities:[b0]Subsystem:AdvancedMicroDevices,Inc.[AMD/ATI]Device5a14Capabilities:[b8]HyperTransport: MSI MappingEnable+Fixed+Capabilities:[100]VendorSpecificInformation: ID=0001Rev=1Len=010<?>Capabilities:[190]AccessControlServicesKernel driver inuse: pcieport
Kernel modules: shpchp
00:09.0 PCI bridge:AdvancedMicroDevices,Inc.[AMD/ATI] RD890 PCI to PCI bridge (PCI express gpp port H)(prog-if00[Normal decode])Flags: bus master, fast devsel, latency 0Bus: primary=00, secondary=03, subordinate=03, sec-latency=0
I/O behind bridge:0000d000-0000dfffMemory behind bridge: fe800000-fe8fffff
Prefetchable memory behind bridge:00000000d0000000-00000000d00fffffCapabilities:[50]PowerManagement version 3Capabilities:[58]ExpressRootPort(Slot+), MSI 00Capabilities:[a0] MSI:Enable-Count=1/1Maskable-64bit-Capabilities:[b0]Subsystem:AdvancedMicroDevices,Inc.[AMD/ATI]Device5a14Capabilities:[b8]HyperTransport: MSI MappingEnable+Fixed+Capabilities:[100]VendorSpecificInformation: ID=0001Rev=1Len=010<?>Capabilities:[190]AccessControlServicesKernel driver inuse: pcieport
Kernel modules: shpchp
00:11.0 SATA controller:AdvancedMicroDevices,Inc.[AMD/ATI] SB7x0/SB8x0/SB9x0 SATA Controller[AHCI mode](rev 40)(prog-if01[AHCI 1.0])Subsystem:GigabyteTechnologyCo.,LtdDevice b002
Flags: bus master,66MHz, medium devsel, latency 32, IRQ 19
I/O ports at f040 [size=8]
I/O ports at f030 [size=4]
I/O ports at f020 [size=8]
I/O ports at f010 [size=4]
I/O ports at f000 [size=16]Memory at feb0b000 (32-bit, non-prefetchable)[size=1K]Capabilities:[70] SATA HBA v1.0Capabilities:[a4] PCI AdvancedFeaturesKernel driver inuse: ahci
00:12.0 USB controller:AdvancedMicroDevices,Inc.[AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI0 Controller(prog-if10[OHCI])Subsystem:GigabyteTechnologyCo.,LtdDevice5004Flags: bus master,66MHz, medium devsel, latency 32, IRQ 18Memory at feb0a000 (32-bit, non-prefetchable)[size=4K]Kernel driver inuse: ohci-pci
00:12.2 USB controller:AdvancedMicroDevices,Inc.[AMD/ATI] SB7x0/SB8x0/SB9x0 USB EHCI Controller(prog-if20[EHCI])Subsystem:GigabyteTechnologyCo.,LtdDevice5004Flags: bus master,66MHz, medium devsel, latency 32, IRQ 17Memory at feb09000 (32-bit, non-prefetchable)[size=256]Capabilities:[c0]PowerManagement version 2Capabilities:[e4]Debug port: BAR=1 offset=00e0Kernel driver inuse: ehci-pci
00:13.0 USB controller:AdvancedMicroDevices,Inc.[AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI0 Controller(prog-if10[OHCI])Subsystem:GigabyteTechnologyCo.,LtdDevice5004Flags: bus master,66MHz, medium devsel, latency 32, IRQ 18Memory at feb08000 (32-bit, non-prefetchable)[size=4K]Kernel driver inuse: ohci-pci
00:13.2 USB controller:AdvancedMicroDevices,Inc.[AMD/ATI] SB7x0/SB8x0/SB9x0 USB EHCI Controller(prog-if20[EHCI])Subsystem:GigabyteTechnologyCo.,LtdDevice5004Flags: bus master,66MHz, medium devsel, latency 32, IRQ 17Memory at feb07000 (32-bit, non-prefetchable)[size=256]Capabilities:[c0]PowerManagement version 2Capabilities:[e4]Debug port: BAR=1 offset=00e0Kernel driver inuse: ehci-pci
00:14.0SMBus:AdvancedMicroDevices,Inc.[AMD/ATI]SBx00SMBusController(rev 42)Subsystem:AdvancedMicroDevices,Inc.[AMD/ATI]SBx00SMBusControllerFlags:66MHz, medium devsel
Kernel driver inuse: piix4_smbus
Kernel modules: i2c_piix4, sp5100_tco
00:14.2Audio device:AdvancedMicroDevices,Inc.[AMD/ATI]SBx00Azalia(Intel HDA)(rev 40)Subsystem:GigabyteTechnologyCo.,LtdDevice a014
Flags: slow devsel, IRQ 10Memory at feb00000 (64-bit, non-prefetchable)[size=16K]Capabilities:[50]PowerManagement version 200:14.3 ISA bridge:AdvancedMicroDevices,Inc.[AMD/ATI] SB7x0/SB8x0/SB9x0 LPC host controller (rev 40)Subsystem:AdvancedMicroDevices,Inc.[AMD/ATI] SB7x0/SB8x0/SB9x0 LPC host controller
Flags: bus master,66MHz, medium devsel, latency 000:14.4 PCI bridge:AdvancedMicroDevices,Inc.[AMD/ATI]SBx00 PCI to PCI Bridge(rev 40)(prog-if01[Subtractive decode])Flags: bus master, VGA palette snoop,66MHz, medium devsel, latency 64Bus: primary=00, secondary=04, subordinate=04, sec-latency=6400:14.5 USB controller:AdvancedMicroDevices,Inc.[AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI2 Controller(prog-if10[OHCI])Subsystem:GigabyteTechnologyCo.,LtdDevice5004Flags: bus master,66MHz, medium devsel, latency 32, IRQ 18Memory at feb06000 (32-bit, non-prefetchable)[size=4K]Kernel driver inuse: ohci-pci
00:16.0 USB controller:AdvancedMicroDevices,Inc.[AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI0 Controller(prog-if10[OHCI])Subsystem:GigabyteTechnologyCo.,LtdDevice5004Flags: bus master,66MHz, medium devsel, latency 32, IRQ 18Memory at feb05000 (32-bit, non-prefetchable)[size=4K]Kernel driver inuse: ohci-pci
00:16.2 USB controller:AdvancedMicroDevices,Inc.[AMD/ATI] SB7x0/SB8x0/SB9x0 USB EHCI Controller(prog-if20[EHCI])Subsystem:GigabyteTechnologyCo.,LtdDevice5004Flags: bus master,66MHz, medium devsel, latency 32, IRQ 17Memory at feb04000 (32-bit, non-prefetchable)[size=256]Capabilities:[c0]PowerManagement version 2Capabilities:[e4]Debug port: BAR=1 offset=00e0Kernel driver inuse: ehci-pci
00:18.0Host bridge:AdvancedMicroDevices,Inc.[AMD]Family10hProcessorHyperTransportConfigurationFlags: fast devsel
Capabilities:[80]HyperTransport:HostorSecondaryInterface00:18.1Host bridge:AdvancedMicroDevices,Inc.[AMD]Family10hProcessorAddressMapFlags: fast devsel
00:18.2Host bridge:AdvancedMicroDevices,Inc.[AMD]Family10hProcessor DRAM ControllerFlags: fast devsel
Kernel modules: amd64_edac_mod
00:18.3Host bridge:AdvancedMicroDevices,Inc.[AMD]Family10hProcessorMiscellaneousControlFlags: fast devsel
Capabilities:[f0]Secure device <?>Kernel driver inuse: k10temp
Kernel modules: k10temp
00:18.4Host bridge:AdvancedMicroDevices,Inc.[AMD]Family10hProcessorLinkControlFlags: fast devsel
01:00.0 VGA compatible controller:AdvancedMicroDevices,Inc.[AMD/ATI]CapeVerde XT [Radeon HD 7770/8760/ R7 250X](prog-if00[VGA controller])Subsystem:Micro-StarInternationalCo.,Ltd.[MSI] R7770-PMD1GD5
Flags: bus master, fast devsel, latency 0, IRQ 74Memory at c0000000 (64-bit, prefetchable)[size=256M]Memory at fea00000 (64-bit, non-prefetchable)[size=256K]
I/O ports at e000 [size=256]Expansion ROM at fea40000 [disabled][size=128K]Capabilities:[48]VendorSpecificInformation:Len=08<?>Capabilities:[50]PowerManagement version 3Capabilities:[58]ExpressLegacyEndpoint, MSI 00Capabilities:[a0] MSI:Enable+Count=1/1Maskable-64bit+Capabilities:[100]VendorSpecificInformation: ID=0001Rev=1Len=010<?>Capabilities:[150]AdvancedErrorReportingCapabilities:[270]#19Kernel driver inuse: radeon
Kernel modules: radeon
01:00.1Audio device:AdvancedMicroDevices,Inc.[AMD/ATI]CapeVerde/Pitcairn HDMI Audio[Radeon HD 7700/7800Series]Subsystem:Micro-StarInternationalCo.,Ltd.[MSI]Device aab0
Flags: fast devsel, IRQ 7Memory at fea60000 (64-bit, non-prefetchable)[disabled][size=16K]Capabilities:[48]VendorSpecificInformation:Len=08<?>Capabilities:[50]PowerManagement version 3Capabilities:[58]ExpressLegacyEndpoint, MSI 00Capabilities:[a0] MSI:Enable-Count=1/1Maskable-64bit+Capabilities:[100]VendorSpecificInformation: ID=0001Rev=1Len=010<?>Capabilities:[150]AdvancedErrorReporting02:00.0 USB controller: VIA Technologies,Inc.Device3483(rev 01)(prog-if30[XHCI])Subsystem:GigabyteTechnologyCo.,LtdDevice5007Flags: bus master, fast devsel, latency 0, IRQ 72Memory at fe900000 (64-bit, non-prefetchable)[size=4K]Capabilities:[80]PowerManagement version 3Capabilities:[90] MSI:Enable+Count=1/4Maskable-64bit+Capabilities:[c4]ExpressEndpoint, MSI 00Capabilities:[100]AdvancedErrorReportingKernel driver inuse: xhci_hcd
03:00.0Ethernet controller:RealtekSemiconductorCo.,Ltd. RTL8111/8168/8411 PCI ExpressGigabitEthernetController(rev 06)Subsystem:GigabyteTechnologyCo.,LtdMotherboardFlags: bus master, fast devsel, latency 0, IRQ 73
I/O ports at d000 [size=256]Memory at fe800000 (64-bit, non-prefetchable)[size=4K]Memory at d0000000 (64-bit, prefetchable)[size=16K]Capabilities:[40]PowerManagement version 3Capabilities:[50] MSI:Enable+Count=1/1Maskable-64bit+Capabilities:[70]ExpressEndpoint, MSI 01Capabilities:[b0] MSI-X:Enable-Count=4Masked-Capabilities:[d0]VitalProductDataCapabilities:[100]AdvancedErrorReportingCapabilities:[140]VirtualChannelCapabilities:[160]DeviceSerialNumber01-00-00-00-68-4c-e0-00Kernel driver inuse: r8169
Kernel modules: r8169
Question
ballsystemlord
I'm encountering a strange problem while trying to install funtoo
on my desktop. The files which I extract from the stage 3 tarball
refuse to be executed.
I tried the following (not in this order):
Mounted filesystem --rw -o exec.
fsck -f /dev/sda3
cp bin/bash /root && /root/bash
cp /bin/bash . && chroot . bash -l
The above command failed because bash could not find the shared
object (.so) files.
tar -xpf stage3*
cat bin/bash
find bin -exec file --mime-type '{}' \; | grep -v application/x-executable
I then executed bin/gunzip as it was a shell script and it ran fine.
I tried changing my PATH.
I always get the same error for all operations.
Here's the name of the stage 3 tarball:
-rwxr-xr-x 1 root root 300494916 May 26 06:54 /mnt/gentoo/stage3-amd64-bulldozer-funtoo-stable-2015-05-25.tar.xz
Here's the error I get when executing a binary file:
zsh: no such file or directory: /mnt/gentoo/bin/bash
The files show up with ls.
The version of the cd I'm using is 4.5.0.
The kernel is 3.14.31 std450 amd64.
A simmilar problem occurs when using knoppix from a dvd (knoppix is 32bit,
version 7.2 kernel 3.9.6, this rescue cd is 64bit, booted UEFI with the
black screen, default option).
The error is:
bash: /media/sda3/bin/bash: cannot execute binary file
If I boot it in 64bit mode it returns the same error as above (except
that knoppix is using bash, of course). I suppose that it might be a bad
archive, but then xz uses 64bit crc checksums so xz should have said
something to tar indicative of an error. I just decompressed it with
plain xz and used echo $?, there is no error. Of course you can turn off
the checksum but I doubt you would have, I typically change it to sha256.
Here's my hardware list from lspci -vk :
Link to comment
Share on other sites
1 answer to this question
Recommended Posts