Install to USB problem

Here you can post about non-standard installation methods
(for example when using grub4dos).
Post Reply
aszabo
White ninja
White ninja
Posts: 5
Joined: 25 Feb 2012, 18:24
Location: Hungary

Install to USB problem

Post#1 by aszabo » 25 Feb 2012, 18:28

I have installed the Portesu XFCE rc1 to my USB stick, but when I am booting from it I get the following error:

ERROR
Couldn't copy '/sbin/init' file
You need at least 100KB free space inside initrd!!

How can I solve this?

User avatar
fanthom
Site Admin
Site Admin
Posts: 4618
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland, currently - Cork, IE
Contact:

Re: Install to USB problem

Post#2 by fanthom » 25 Feb 2012, 18:59

Welcome on board aszabo,

this is really rare error (and should never happen) so would be perfect if you could make a photo of the screen just after failure and upload it to imageshack.com
that would tell me a lot.

additionally please answer following questions:
1) which XFCE edition is it (32 or 64bit)
2) did you get any md5sum errors during installation? (md5sums are not checked when you performed installation from Windows) how did you install porteus on the stick?
3) are you able to recreate error at every boot?
4) did you try to reinstall porteus on the stick? (please make sure you have at least 000-kernel.xzm and 001-core.xzm modules placed in /porteus/base folder)
5) did you add any extra cheatcodes to /boot/porteus.cfg ?
6) have you added anything to initrd or it's the original one?

that's all the info which i need for now :)
Please add [Solved] to your thread title if the solution was found.

aszabo
White ninja
White ninja
Posts: 5
Joined: 25 Feb 2012, 18:24
Location: Hungary

Re: Install to USB problem

Post#3 by aszabo » 25 Feb 2012, 22:00

Hi,

thanks for the answer.
Well, to your questions:

1.) 32bit
2.) No error, I installed it under Linux (of course Slackware :roll: )
3.) Yes, I got this error two times.
4.) Not yet, but I will do it. The 000-kernel.xzm and 001-core.xzm modules are in /porteus/base folder.
5.) No, I did not change anything on it.
6.) No, the initrd was the original one.

Yet something to the problem:
I tried to boot the iso file from grub, but I got the same error in this case too.
The grub config I used for iso boot is:
menuentry "Porteus 1.2" {
set isofile="(hd0,5)/iso/Porteus-1.2.iso"
set root="(hd0,5)"
loopback loop $isofile
linux /porteus/boot/vmlinuz from=$isofile ramdisk_size=6666 root=/dev/ram0 rw vga=791
initrd /porteus/boot/initrd.xz
}

Thanks for the help.

User avatar
brokenman
Site Admin
Site Admin
Posts: 5574
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v3.2rcX all desktops
Location: Brazil
Contact:

Re: Install to USB problem

Post#4 by brokenman » 25 Feb 2012, 23:33

Code: Select all

menuentry "Porteus 1.2" {
set isofile="(hd0,5)/iso/Porteus-1.2.iso"
set root="(hd0,5)"
loopback loop $isofile
[b]linux /porteus/boot/vmlinuz from=$isofile ramdisk_size=6666 root=/dev/ram0 rw vga=791[/b]
initrd /porteus/boot/initrd.xz
}
Please remove ramdisk_size=6666 as this is now handled at a different level.

Here is my grub entry:

Code: Select all

title Porteus v1.2rc1
kernel (hd0,4)/os/porteus-v1.2/boot/vmlinuz from_dev=/dev/sda5 from_dir=/os/porteus-v1.2/porteus
initrd=(hd0,4)/os/porteus-v1.2/boot/initrd.xz
boot
How do i become super user?
Wear your underpants on the outside and put on a cape.

aszabo
White ninja
White ninja
Posts: 5
Joined: 25 Feb 2012, 18:24
Location: Hungary

Re: Install to USB problem

Post#5 by aszabo » 25 Feb 2012, 23:50

OK, I try it but this could be the solution only for iso boot. At USB boot there is no Grub, and the problem still exists.

User avatar
Ahau
King of Docs
King of Docs
Posts: 1331
Joined: 28 Dec 2010, 15:18
Distribution: LXDE & Xfce 32/64-bit
Location: USA

Re: Install to USB problem

Post#6 by Ahau » 26 Feb 2012, 00:44

Welcome, aszabo!

Which bootloader did you install in the usb stick, lilo or extlinux? Perhaps I messed up one of the configs at the last minute...if you made any customizations to the bootloaders there, please show us the config you're using.

Please try plugging the usb stick into your slack box and running the 'chkbase' script inside the /porteus/ folder to check the md5's on all of the modules again. Also, try booting with the 'debug' cheatcode, which will give you a command prompt after the kernel and initrd are loaded but before the modules are activated. Then, cd to /mnt and verify that your USB device is mounted there and the modules are visible inside mnt/sdXY/porteus/base (replace XY with your usb's drive and partition info). If the drive is not mounted at this point, you might want to add 'delay=10' as a cheatcode as well (this really shouldn't be needed with fanthom's current linuxrc, but it wouldn't hurt).

Thanks for your patience, I know it's no fun trying a new distro and having it fail to boot right away.
Please take a look at our online documentation, here. Suggestions are welcome!

aszabo
White ninja
White ninja
Posts: 5
Joined: 25 Feb 2012, 18:24
Location: Hungary

Re: Install to USB problem

Post#7 by aszabo » 26 Feb 2012, 07:24

Hi Ahau,

I installed it in both ways, first with bootloader extlinux then with lilo, the result is the same. I haven't made any costumizations in the bootloader.

I checked the md5's with 'chkbase' script, all is ok.
In which file should I change the cheatcode? And after this changing do I have to run the script 'lin_start_here.sh' again?

Thanks.

User avatar
fanthom
Site Admin
Site Admin
Posts: 4618
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland, currently - Cork, IE
Contact:

Re: Install to USB problem

Post#8 by fanthom » 26 Feb 2012, 09:37

In which file should I change the cheatcode?
please show us /boot/porteus.cfg and tell which booting option are you using.
And after this changing do I have to run the script 'lin_start_here.sh' again?
this is not necessary

3 other questions:
1) what filesystem are you using on the stick?
2) did you try 'Always Fresh' mode?
3) are there any other errors printed on the screen before:
"Couldn't copy '/sbin/init' file ... " ?
Please add [Solved] to your thread title if the solution was found.

aszabo
White ninja
White ninja
Posts: 5
Joined: 25 Feb 2012, 18:24
Location: Hungary

Re: Install to USB problem

Post#9 by aszabo » 26 Feb 2012, 12:10

/boot/porteus.cfg, but as mentioned I didn't change it:
=======
LABEL xfce
MENU LABEL Graphics mode (XFCE)
KERNEL /boot/vmlinuz
APPEND initrd=/boot/initrd.xz vga=791 xfce changes=/porteus/
TEXT HELP
Run Porteus the best way we can.
Try to autoconfigure graphics
card and use the maximum
allowed resolution
ENDTEXT

LABEL no-compositing
MENU LABEL XFCE--no compositing
KERNEL /boot/vmlinuz
APPEND initrd=/boot/initrd.xz vga=791 xfce autoexec=xf-compositing~off changes=/porteus/
TEXT HELP
Run Porteus the same as above.
compositing will be turned off
which will disable transparency
and shadow effects.
ENDTEXT

LABEL fresh
MENU LABEL Always Fresh
KERNEL /boot/vmlinuz
APPEND initrd=/boot/initrd.xz xfce nomagic
TEXT HELP
Normally Porteus saves all changes
to the /porteus/changes/ directory
on the boot media (if writable)
and restores them next boot.
Use this option to start a fresh
system, changes are not read from
or written to any device
ENDTEXT

LABEL copy2ram
MENU LABEL Copy To RAM
KERNEL /boot/vmlinuz
APPEND initrd=/boot/initrd.xz vga=791 xfce copy2ram
TEXT HELP
Run Porteus the same as above,
but first copy all data to RAM
to get a huge speed increase
(needs >768MB)
ENDTEXT

LABEL vesa
MENU LABEL Graphics VESA mode
KERNEL /boot/vmlinuz
APPEND initrd=/boot/initrd.xz autoexec=vesa-mode xfce changes=/porteus/
TEXT HELP
Run Porteus with XFCE, but skip
the graphics card autoconfig.
This forces 1024x768 resolution
using a standard VESA driver
ENDTEXT
=========
The filesystem is VFAT on the stick.
Yes, I tried it but no success.
Other lines above it:
cp: can't create '/union/var/log/porteus-livedbg': No such file or directory
live system is ready now - starting Porteua
cp: can't stat '/union/sbin/init': No such file or directory
And then the mentioned error lines.

User avatar
fanthom
Site Admin
Site Admin
Posts: 4618
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland, currently - Cork, IE
Contact:

Re: Install to USB problem

Post#10 by fanthom » 26 Feb 2012, 12:34

cp: can't create '/union/var/log/porteus-livedbg': No such file or directory
seems that aufs was not settled correctly thus no xmz modules were mounted in /union.
if you have tried 'always fresh' mode and still go the same error then i'm out of clues.
the only explanation is that you have damaged RAM - which i doubt.
on the other hand there could be something with VFAT filesystem and corrupted xzm modules (but you have said that md5sums are ok).

my last advices:
1) reformat the stick with VFAT (or better ext2 - just to check if it makes any difference)
2) try standard 32bit lxde/kde edition (to make sure it's nothing XFCE ISO related)
3) try Porteus on another PC (to make sure it's not RAM fault in your PC)
4) i have no other idea at the moment...

this is the first time when i see such case in my 2 years experience with slax-remix/porteus.
it's really weird...
OTOH - weird cases are interesting :)

let us know if any of my advices helped.
Please add [Solved] to your thread title if the solution was found.

User avatar
brokenman
Site Admin
Site Admin
Posts: 5574
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v3.2rcX all desktops
Location: Brazil
Contact:

Re: Install to USB problem

Post#11 by brokenman » 26 Feb 2012, 16:37

try delay cheatcode too!
How do i become super user?
Wear your underpants on the outside and put on a cape.

User avatar
Ahau
King of Docs
King of Docs
Posts: 1331
Joined: 28 Dec 2010, 15:18
Distribution: LXDE & Xfce 32/64-bit
Location: USA

Re: Install to USB problem

Post#12 by Ahau » 26 Feb 2012, 19:00

The easiest way to use a cheatcode for one time use (like debug or delay=) is to press tab at the extlinux menu and then enter your cheatcode, or to press the up and down arrows in the lilo menu to highlight the entry, then type it in after the other boot text.

More info here: http://porteus.org/info/docs/57-general ... -them.html
Please take a look at our online documentation, here. Suggestions are welcome!

User avatar
Hamza
Warlord
Warlord
Posts: 1847
Joined: 28 Dec 2010, 07:41
Distribution: Porteus
Location: France

Re: Install to USB problem

Post#13 by Hamza » 28 Feb 2012, 08:42

By default, Porteus should wait some seconds if it's not able to find out the boot device/data device...At least it is what I get when I try to boot up on an "old" hardware
NjVFQzY2Rg==

Post Reply