Page 1 of 1

Porteus on a USB flash (Grub4DOS) NTFS

Posted: 03 Feb 2011, 00:47
by laikexpert
Porteus on a USB flash (Grub4DOS) NTFS

Porteus 32bit
Image

I have USB flash 16GB NTFS formated
and i have Grub4DOS
I did the following


1.) Download the Porteus 32bit ISO image:
http://porteus.org/index.php#

2.) Create a folder porteus on a USB flash drive.

3.) Take from the downloaded ISO, files
vmlinuz
initrd.lz (from the folder boot)
and all content (from the folder porteus)
will be placed in a folder porteus.

(extract the files from the ISO can programs Ultra-ISO or WinRar)

4.) In the main menu.lst add a:
title Porteus ==>
configfile (hd0,0)/boot/menus/porteus.lst


5.) In the folder /Boot/menus/ (Create a folder on a USB flash drive)
to file porteus.lst (Create a file on a USB flash drive)
add:
splashimage (hd0,0)/BOOT/Splash/slacktux.xpm.gz
foreground 000000
background ffffff

timeout 30
default 0

title Porteus Graphics mode (KDE)
find --set-root /grldr
kernel /porteus/vmlinuz max_loop=255 ramdisk_size=6666 root=/dev/ram0 rw autoexec=xconf;telinit~4 fromusb
initrd /porteus/initrd.lz

title Porteus Graphics mode (KDE),Copy To RAM
find --set-root /grldr
kernel /porteus/vmlinuz max_loop=255 ramdisk_size=6666 root=/dev/ram0 rw copy2ram autoexec=xconf;telinit~4 fromusb
initrd /porteus/initrd.lz

title Porteus Graphics mode (LXDE)
find --set-root /grldr
kernel /porteus/vmlinuz max_loop=255 ramdisk_size=6666 root=/dev/ram0 rw autoexec=lxde;xconf;telinit~4 fromusb
initrd /porteus/initrd.lz

title Porteus Graphics mode (LXDE),Copy To RAM
find --set-root /grldr
kernel /porteus/vmlinuz max_loop=255 ramdisk_size=6666 root=/dev/ram0 rw copy2ram autoexec=lxde;xconf;telinit~4 fromusb
initrd /porteus/initrd.lz

title Porteus Graphics mode (KDE) + Save changes /porteus/
find --set-root /grldr
kernel /porteus/vmlinuz max_loop=255 ramdisk_size=6666 root=/dev/ram0 rw autoexec=xconf;telinit~4 changes=/porteus/ fromusb
initrd /porteus/initrd.lz

title Porteus Graphics VESA mode
find --set-root /grldr
kernel /porteus/vmlinuz max_loop=255 ramdisk_size=6666 root=/dev/ram0 rw autoexec=telinit~4 fromusb
initrd /porteus/initrd.lz

title Porteus Text mode
find --set-root /grldr
kernel /porteus/vmlinuz max_loop=255 ramdisk_size=6666 root=/dev/ram0 rw fromusb
initrd /porteus/initrd.lz

title Return Back <==
configfile (hd0,0)/menu.lst

title Reboot
reboot

title ShutDown
halt
5.) Download file
http://dl.dropbox.com/u/4040651/slacktux.xpm.gz
Put the file in a folder /Boot/Splash/ (Create a folder on a USB flash drive)

6.) And Porteus work like a charm.
All is OK


P.S.
Good luck
Long Live linux

Re: Porteus on a USB flash (Grub4DOS) NTFS

Posted: 03 Feb 2011, 02:01
by Ahau
Thanks, laikexpert!

Just to clarify, you already had grub4dos installed on your flashdrive, booting other distros, correct?

And, you moved the kernel and initrd into the /porteus folder to eliminate having an extra folder (/boot) in the root of your device, correct?

Re: Porteus on a USB flash (Grub4DOS) NTFS

Posted: 03 Feb 2011, 02:15
by laikexpert
Hi Ahau
Yes I have grub4dos on my USB flash for multiboot.

Yes correct.


P.S.
Long Live linux

Re: Porteus on a USB flash (Grub4DOS) NTFS

Posted: 03 Feb 2011, 22:02
by fanthom
small corrections:
'ramdisk_size=6666 root=/dev/ram0 rw' are build into kernel so can be removed from bootloader config files. run 'cat /proc/cmdline' and you will see them :)
'fromusb' - first time hear about this cheatcode, does it really pass anything to the kernel?

All HOWTO's should be published on the main site, check this:
http://forum.porteus.org/viewtopic.php?f=35&t=163

Thanks