Page 1 of 1

[Solved]load base modules from other device

Posted: 24 Apr 2012, 09:10
by kata930
Porteus load base modules from a hard disk which is not boot disk.

Before it happened, I copied porteus folder from USB stick to local hard disk.
I did not copy boot folder.

The hard disk has those folders and files.
/porteus/base/000-core.xzm
/porteus/base/001-kernel.xzm
/porteus/base/...

When I tried to boot from the USB stick, Porteus load module from the hard drive not the USB stick.

I want Porteus to load base modules from USB stick.
But it always load from the hard disk.

There are two hard disk.
The hard disk is /dev/sdb
The USB stick is /dev/sdc

Are there any solution for that ?

p.s.
I use Porteus v1.1 32bit version.

Re: load base modules from other device

Posted: 24 Apr 2012, 11:55
by fanthom
hello kata930,

you could use from_dev=UUID: or from_dev=LABEL: cheatcodes to make sure that portues is booting from usb stick.
please run 'blkid' command as root, here is my output:

Code: Select all

/dev/sda1: UUID="ac8d44b2-3518-4bab-b56c-d98d98816f1d" TYPE="ext3" 
/dev/sda2: UUID="7fc034fb-8cf0-4930-9b01-85bf2ac8223d" TYPE="swap" 
/dev/sda3: UUID="6559f0c1-8648-4008-bb52-b4abdfec029f" TYPE="ext3" 
/dev/sda4: UUID="120a9458-07c9-4e50-a9ec-894ad115e101" TYPE="ext4"
in case of booting from sda4 the cheatcode syntax would be:

Code: Select all

from_dev=UUID:120a9458-07c9-4e50-a9ec-894ad115e101
more info about cheatcodes can be found in /boot/docs/cheatcodes.txt

Re: load base modules from other device

Posted: 25 Apr 2012, 08:32
by kata930
hello fanthom,

Thank you for quick reply.
It was good solution for me.

My boot USB stick is VFAT. so UUID is volume serial .
I added from_dev=UUID:XXXX-XXXX

The USB stick can boot successfully. :Yahoo!: