You are not logged in.

#1 2010-01-24 02:17:25

willxtreme
Member
Registered: 2010-01-07
Posts: 150
Website

[SOLVED]Arch Live CD not booting

Followed step by step http://wiki.archlinux.org/index.php/Archiso to make a Live CD smile

Here's the console output as it creates the image:

mkarchiso : Configuration Settings
        working directory:   work
               image name:   none
====> Creating working directory: work
====> Installing packages to 'work/root-image/'
Cleaning up what we can
cp -r "work"/root-image/boot "work"/iso/
cp -r boot-files/* "work"/iso/boot/
mkdir -p "work"/iso/boot
mkinitcpio -c ./mkinitcpio.conf -b "work"/root-image -k 2.6.32-ARCH -g "work"/iso/boot/my-arch.img
:: Begin build
:: Parsing hook [base]
:: Parsing hook [archiso-early]
:: Parsing hook [udev]
:: Parsing hook [archiso]
:: Parsing hook [pata]
:: Parsing hook [scsi]
:: Parsing hook [sata]
:: Parsing hook [usb]
:: Parsing hook [fw]
:: Parsing hook [filesystems]
:: Parsing hook [usbinput]
:: Generating module dependencies
:: Generating image 'work/iso/boot/my-arch.img'...SUCCESS
mkdir -p "work"/overlay/etc/pacman.d
cp -r overlay "work"/
wget -O "work"/overlay/etc/pacman.d/mirrorlist http://www.archlinux.org/mirrorlist/i686/all/
--2010-01-23 21:11:07--  http://www.archlinux.org/mirrorlist/i686/all/
Resolving www.archlinux.org... 66.211.214.131
Connecting to www.archlinux.org|66.211.214.131|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 12016 (12K) [text/plain]
Saving to: "work/overlay/etc/pacman.d/mirrorlist"

100%[======================================>] 12,016      --.-K/s   in 0.1s    

2010-01-23 21:11:08 (120 KB/s) - "work/overlay/etc/pacman.d/mirrorlist" saved [12016/12016]

sed -i "s/#Server/Server/g" "work"/overlay/etc/pacman.d/mirrorlist
sed "s|@ARCH@|i686|g" isomounts > "work"/isomounts
mkdir -p work/iso/boot/isolinux
cp work/root-image/usr/lib/syslinux/*.c32 work/iso/boot/isolinux/
cp work/root-image/usr/lib/syslinux/isolinux.bin work/iso/boot/isolinux/
mkarchiso -p syslinux iso "work" ""/home/will/my-arch"/my-arch-1.00-i686".iso
mkarchiso : Configuration Settings
        working directory:   work
               image name:   /home/will/my-arch/my-arch-1.00-i686.iso
====> Generating SquashFS image for 'work/root-image'
Creating SquashFS image. This may take some time...
Image creation done in 1.87 minutes.
====> Generating SquashFS image for 'work/overlay'
Creating SquashFS image. This may take some time...
Image creation done in 0.00 minutes.
====> Making bootable image
Creating ISO image...
[root@sasoria my-arch]#

And when I boot the CD I get
Loading /boot/vmlinuz26........................................................
could not find ramdisk image: /boot/my-arch.img hmm

Last edited by willxtreme (2010-01-24 20:39:19)

Offline

#2 2010-01-24 14:47:00

willxtreme
Member
Registered: 2010-01-07
Posts: 150
Website

Re: [SOLVED]Arch Live CD not booting

Did anyone else who followed the wiki had a problem with the iso generated or would someone be kind enough to share his steps

I'd really love ArchBang live cd to become a reality big_smile
weee.jpg

When I browse the CD
my-arch.img is in the boot folder but I still get the msg in my reply above

Last edited by willxtreme (2010-01-24 15:47:48)

Offline

#3 2010-01-24 20:39:04

willxtreme
Member
Registered: 2010-01-07
Posts: 150
Website

Re: [SOLVED]Arch Live CD not booting

SOLVED
good thing I printed the wiki I saw friday morning because a name has been edited lol!

in Makefile
on my printed version I saw:

# Rules for initcpio images
initcpio: "$(WORKDIR)"/iso/boot/archiso.img
"$(WORKDIR)"/iso/boot/archiso.img: mkinitcpio.conf "$(WORKDIR)"/root-image/.arch-chroot
    mkdir -p "$(WORKDIR)"/iso/boot
    mkinitcpio -c ./mkinitcpio.conf -b "$(WORKDIR)"/root-image -k $(KVER) -g $@

but the current version is now:

# Rules for initcpio images
initcpio: "$(WORKDIR)"/iso/boot/my-arch.img
"$(WORKDIR)"/iso/boot/my-arch.img: mkinitcpio.conf "$(WORKDIR)"/root-image/.arch-chroot
    mkdir -p "$(WORKDIR)"/iso/boot
    mkinitcpio -c ./mkinitcpio.conf -b "$(WORKDIR)"/root-image -k $(KVER) -g $@

I believe it was edited for consistency and this might have worked for someone else but not for me

and in isolinux.cfg in both versions (my printed one and the current one) it's:

prompt 1
timeout 0
display my-arch.msg
DEFAULT my-arch

LABEL my-arch
KERNEL /boot/vmlinuz26
APPEND lang=en locale=en_US.UTF-8 usbdelay=5 ramdisk_size=75% initrd=/boot/my-arch.img archisolabel=XXX

LABEL memtest86+
KERNEL /boot/memtest86+-2.10.bin

I followed what I saw in my printed version and kept archiso.img in Makefile and changed in isolinux.cfg my-arch.img to archiso.img

and now it's fixed big_smile

Last edited by willxtreme (2010-01-24 20:42:38)

Offline

#4 2010-01-24 23:56:55

lukeaa
Member
Registered: 2009-12-15
Posts: 2

Re: [SOLVED]Arch Live CD not booting

I had be using archiso extensively before the grub->isolinux switch and now I seem to have the same issue.  However my files seem to be consistent.  Isolinux still complains it cannot find my-arch.img.
isolinux.cfg

prompt 1
timeout 50
display my-arch.msg
DEFAULT my-arch

LABEL my-arch
KERNEL /boot/vmlinuz26
APPEND lang=en locale=en_US.UTF-8 usbdelay=5 ramdisk_size=75% initrd=/boot/my-arch.img archisolabel=XXX

LABEL CPUInfo
KERNEL /boot/extras/x86test_zImage.bin

LABEL Hitachi DFT
KERNEL memdisk
append /boot/extras/dft.img

LABEL MEMTEST
KERNEL /boot/extras/memtest86+-2.10.bin

LABEL Reformat Drive
KERNEL memdisk
append /boot/extras/invaders.img

Makefile

#### Change these settings to modify how this ISO is built.
#  The directory that you'll be using for the actual build process.
WORKDIR=work
#  A list of packages to install, either space separated in a string or line separated in a file. Can include groups.
PACKAGES="$(shell cat packages.list) syslinux"
# The name of our ISO. Does not specify the architecture!
NAME=my-arch
# Version will be appended to the ISO.
VER=1.34
# Kernel version. You'll need this.
KVER=2.6.32-ARCH
# Architecture will also be appended to the ISO name.
ARCH?=$(shell uname -m)
# Current working directory
PWD:=$(shell pwd)
# This is going to be the full name the final iso/img will carry
FULLNAME="$(PWD)"/$(NAME)-$(VER)-$(ARCH)

# Default make instruction to build everything.
all: my-arch

# The following will first run the base-fs routine before creating the final iso image.
my-arch: base-fs
    mkarchiso -p syslinux iso "$(WORKDIR)" "$(FULLNAME)".iso

# This is the main rule for make the working filesystem. It will run routines from left to right. 
# Thus, root-image is called first and syslinux is called last.
base-fs: root-image boot-files initcpio overlay iso-mounts syslinux

# The root-image routine is always executed first. 
# It only downloads and installs all packages into the $WORKDIR, giving you a basic system to use as a base.
root-image: "$(WORKDIR)"/root-image/.arch-chroot
"$(WORKDIR)"/root-image/.arch-chroot:
root-image:
    mkarchiso -p $(PACKAGES) create "$(WORKDIR)"

# Rule for make /boot
boot-files: root-image
    cp -r "$(WORKDIR)"/root-image/boot "$(WORKDIR)"/iso/
    cp -r boot-files/* "$(WORKDIR)"/iso/boot/

# Rules for initcpio images
initcpio: "$(WORKDIR)"/iso/boot/my-arch.img
"$(WORKDIR)"/iso/boot/my-arch.img: mkinitcpio.conf "$(WORKDIR)"/root-image/.arch-chroot
    mkdir -p "$(WORKDIR)"/iso/boot
    mkinitcpio -c ./mkinitcpio.conf -b "$(WORKDIR)"/root-image -k $(KVER) -g $@

# See: Overlay
overlay:
    mkdir -p "$(WORKDIR)"/overlay/etc/pacman.d
    cp -r overlay "$(WORKDIR)"/
    wget -O "$(WORKDIR)"/overlay/etc/pacman.d/mirrorlist http://www.archlinux.org/mirrorlist/$(ARCH)/all/
    sed -i "s/#Server/Server/g" "$(WORKDIR)"/overlay/etc/pacman.d/mirrorlist

# Rule to process isomounts file.
iso-mounts: "$(WORKDIR)"/isomounts
"$(WORKDIR)"/isomounts: isomounts root-image
    sed "s|@ARCH@|$(ARCH)|g" isomounts > $@

# This routine is always executed just before generating the actual image. 
syslinux: root-image
    mkdir -p $(WORKDIR)/iso/boot/isolinux
    cp $(WORKDIR)/root-image/usr/lib/syslinux/*.c32 $(WORKDIR)/iso/boot/isolinux/
    cp $(WORKDIR)/root-image/usr/lib/syslinux/isolinux.bin $(WORKDIR)/iso/boot/isolinux/

# In case "make clean" is called, the following routine gets rid of all files created by this Makefile.
clean:
    rm -rf "$(WORKDIR)" "$(FULLNAME)".img "$(FULLNAME)".iso

.PHONY: all my-arch
.PHONY: base-fs
.PHONY: root-image boot-files initcpio overlay iso-mounts
.PHONY: syslinux
.PHONY: clean

Last edited by lukeaa (2010-01-25 00:09:08)

Offline

#5 2010-01-25 00:12:48

willxtreme
Member
Registered: 2010-01-07
Posts: 150
Website

Re: [SOLVED]Arch Live CD not booting

You might want to try to rename them too to see if it'll make a difference in both Makefile & isolinux.cfg
While it didn't work for me, in both files it was written my-arch.img but normally, as long as the names match it should work so I'm not sure why it made a difference for me but it did

Offline

#6 2010-01-25 00:49:34

lukeaa
Member
Registered: 2009-12-15
Posts: 2

Re: [SOLVED]Arch Live CD not booting

Ok yeah confirmed that.  You have to change the stuff in mkinitcpio and the isolinux.cfg to something different than my-arch.  Very strange.  I dislike isolinux a lot compared to grub haha.

Offline

#7 2010-02-05 01:24:31

Svenstaro
Administrator
From: Germany
Registered: 2008-11-19
Posts: 388

Re: [SOLVED]Arch Live CD not booting

I changed the wiki article to reflect this suggestion. It appears there is a problem with the hyphen. Probably a buggy regex somewhere. Anyhow, the current article should work just fine.

Offline

Board footer

Powered by FluxBB