porteus と ブートローダー
Posted: 15/03/12(木) 13:22
porteusの インストールは以下の方法のUSB メモリへ porteusだけのインストールが一番わかりやすいとおもいます(同じパーティションに他のOSと同居しません。)。
なんでもいいのでLINUXを立ち上げ
Porteus-LXQt-v3.1-i486.isoをダウンロードし
mount -o loop Porteus-LXQt-v3.1-i486.iso k
root@porteus:/mnt/sda1# cd k
root@porteus:/mnt/sda1# cp -aR k/* /mnt/sdb1
cd /mnt/sdb1/boot
root@porteus:/mnt/sdb1/boot# ./Porteus-installer-for-Linux.com
Verifying archive integrity... All good.
Uncompressing Porteus Installer......
_.====.._
,:._ ~-_
'\ ~-_
\ \.
,/ ~-_
-..__..-'' PORTEUS ~~--..__
==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--
Installing Porteus to /dev/sdb1
WARNING: Make sure this is the right partition before proceeding.
Type 'ok' to continue or press Ctrl+c to exit.
ok
Flushing filesystem buffers...
Using extlinux bootloader.
Installation finished successfully.
You may reboot your PC now and start using Porteus.
Please check the /boot/docs folder for additional information about
the installation process, Porteus requirements and booting parameters.
In case of making tweaks to the bootloader config,
please edit: /mnt/sdb1/boot/syslinux/porteus.cfg file.
Press Enter to exit.
これで まことにあっけなく installは おしまいです。
つまり ブートローダーは sdbのMBRに入ったsysylinuxです。
porteus.cfg つまり syslinux.cfgで 他のOSをコントロールできるかたには
grub4dos , grub はきっといらないと思います。
事実
# ls -l /mnt/sdb1/p571/
total 130436
-rw-r--r-- 1 root root 1886180 3月 13 02:38 initrd.gz
-rw-r--r-- 1 root root 128868384 3月 13 02:39 puppy_precise_5.7.1JP.sfs
-rw-r--r-- 1 root root 2802256 3月 13 02:39 vmlinuz
とし
/mnt/sdb1/boot/syslinux/porteus.cfg
に
label puppy
menu label puppy 571jp
kernel /p571/vmlinuz
append psubdir=p571
initrd /p571/initrd.gz
を加えておくと わずか2GのUSBメモリで porteus も presice 571 jp もdual bootできるようになります。
最強のboot loader はsyslinuxかもしれません。
# df
Filesystem 1K-blocks Used Available Use% Mounted on
tmpfs 1539756 5940 1533816 1% /initrd/pup_rw
tmpfs 126852 125852 1000 100% /initrd/mnt/tmpfs
/dev/loop0 125952 125952 0 100% /initrd/pup_ro2
unionfs 1539756 5940 1533816 1% /
shmfs 733632 0 733632 0% /dev/shm
/dev/sdb1 1926096 754980 1073276 42% /mnt/sdb1
なので porteus+puppyでまだ 1.9Gで 1Gの余裕があります。(ただし proteusには日本語モジュールいれてません.)
以下は私の解釈です。
以下はHDDの場合です。
間違ってたら訂正お願いします。
つまり ブートローダーを syslinuxから
grub4dosあるいはgrubにとりもださねばなりません。
そのためここからちょと危ないことをします。
grub4dosの場合は puppy CD
grubの場合は systemrescue CDなどの容易をして 万一起動できなくなったときは
それらで復旧ですのでしんどいことがおこるかもしれませんので、
自己責任でお願いします。
cd /mnt/sda7/boot
./Porteus-installer-for-Linux.com
してブートローダーを syslinuxにします。
これで 立ち上がらなくなる可能性があります。
1)grub4dosの時は
menu.lst を 別名でコピーしてから
もう一度grub4dosconfigをします。
そして元のmenu.lstに
title porteus (sda2)
root (hd0,1)
chainloader +1
を加えます。
(これは grub4dos -> syslinuxで起動)
しかし、
presise のgrub4dosが
title Porteus-3.1 32bit (sda2/boot) ---------------------------
uuid ded5652f-6c4f-45f2-bfe4-4d92b2c5caa0
kernel /boot/syslinux/vmlinuz changes=/porteus timezone=Asia/Tokyo kmap=jp,us
initrd /boot/syslinux/initrd.xz
なのをつくってくれて これでこのままbootできるときもあります(grub4dos が直接起動?)。
2)grubの時は
grub.cfg を 別名でコピーしてから
grub-install /dev/sda
update-grub をします。
なお
cat /etc/grub.d/40_custom
で
menuentry 'Porteus Linux - Normal User' {
insmod ext2
set root='(hd0,6)'
linux /boot/syslinux/vmlinuz nomagic base_only norootcopy zram=60% noauto timezone=Asia/Tokyo login=guest
initrd /boot/syslinux/initrd.xz
}
挿入です。
だから、
例えばgrub4dosの時は
title porteus (sda2)
root (hd0,1)
chainloader +1
で archでなく porteusが まず立ち上がり
次に
003-kde.xzmを ネットから /mnt/sda2/porteus/base/
にいれておくと、http://dl.porteus.org/i486/current/modules/
/mnt/sda2/boot/syslinux/porteus.cfg を以下にしておくと
LABEL LXQt <ーこれでlxdeが立ち上がり
MENU LABEL Graphics mode (LXQt)
KERNEL vmlinuz
APPEND initrd=initrd.xz changes=/porteus noload=003-kde.xzm timezone=Asia/Tokyo kmap=jp
TEXT HELP
Run Porteus the best way we can.
Try to autoconfigure graphics
card and use the maximum
allowed resolution
ENDTEXT
LABEL kde<ーこれでKDEが立ち上がります
MENU LABEL Graphics mode (KDE)
KERNEL vmlinuz
APPEND initrd=initrd.xz changes=/porteus/ noload=003-lxqt.xzm timezone=Asia/Tokyo kmap=jp
TEXT HELP
Run Porteus the best way we can.
Try to autoconfigure graphics
card and use the maximum
allowed resolution
ENDTEXT
porteus 王国の lxde大臣か kde大臣かどちらかのご登場になります。
これはちょっとすごい。
器用な真似はです。
それにしても slackwareは debian一家に 乗っ取られたかにみえても(平家にあらずんば人にあらず)puppyを含めてすごい存在感を示してます。
なんでもいいのでLINUXを立ち上げ
Porteus-LXQt-v3.1-i486.isoをダウンロードし
mount -o loop Porteus-LXQt-v3.1-i486.iso k
root@porteus:/mnt/sda1# cd k
root@porteus:/mnt/sda1# cp -aR k/* /mnt/sdb1
cd /mnt/sdb1/boot
root@porteus:/mnt/sdb1/boot# ./Porteus-installer-for-Linux.com
Verifying archive integrity... All good.
Uncompressing Porteus Installer......
_.====.._
,:._ ~-_
'\ ~-_
\ \.
,/ ~-_
-..__..-'' PORTEUS ~~--..__
==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--
Installing Porteus to /dev/sdb1
WARNING: Make sure this is the right partition before proceeding.
Type 'ok' to continue or press Ctrl+c to exit.
ok
Flushing filesystem buffers...
Using extlinux bootloader.
Installation finished successfully.
You may reboot your PC now and start using Porteus.
Please check the /boot/docs folder for additional information about
the installation process, Porteus requirements and booting parameters.
In case of making tweaks to the bootloader config,
please edit: /mnt/sdb1/boot/syslinux/porteus.cfg file.
Press Enter to exit.
これで まことにあっけなく installは おしまいです。
つまり ブートローダーは sdbのMBRに入ったsysylinuxです。
porteus.cfg つまり syslinux.cfgで 他のOSをコントロールできるかたには
grub4dos , grub はきっといらないと思います。
事実
# ls -l /mnt/sdb1/p571/
total 130436
-rw-r--r-- 1 root root 1886180 3月 13 02:38 initrd.gz
-rw-r--r-- 1 root root 128868384 3月 13 02:39 puppy_precise_5.7.1JP.sfs
-rw-r--r-- 1 root root 2802256 3月 13 02:39 vmlinuz
とし
/mnt/sdb1/boot/syslinux/porteus.cfg
に
label puppy
menu label puppy 571jp
kernel /p571/vmlinuz
append psubdir=p571
initrd /p571/initrd.gz
を加えておくと わずか2GのUSBメモリで porteus も presice 571 jp もdual bootできるようになります。
最強のboot loader はsyslinuxかもしれません。
# df
Filesystem 1K-blocks Used Available Use% Mounted on
tmpfs 1539756 5940 1533816 1% /initrd/pup_rw
tmpfs 126852 125852 1000 100% /initrd/mnt/tmpfs
/dev/loop0 125952 125952 0 100% /initrd/pup_ro2
unionfs 1539756 5940 1533816 1% /
shmfs 733632 0 733632 0% /dev/shm
/dev/sdb1 1926096 754980 1073276 42% /mnt/sdb1
なので porteus+puppyでまだ 1.9Gで 1Gの余裕があります。(ただし proteusには日本語モジュールいれてません.)
以下は私の解釈です。
以下はHDDの場合です。
間違ってたら訂正お願いします。
つまり ブートローダーを syslinuxから
grub4dosあるいはgrubにとりもださねばなりません。
そのためここからちょと危ないことをします。
grub4dosの場合は puppy CD
grubの場合は systemrescue CDなどの容易をして 万一起動できなくなったときは
それらで復旧ですのでしんどいことがおこるかもしれませんので、
自己責任でお願いします。
cd /mnt/sda7/boot
./Porteus-installer-for-Linux.com
してブートローダーを syslinuxにします。
これで 立ち上がらなくなる可能性があります。
1)grub4dosの時は
menu.lst を 別名でコピーしてから
もう一度grub4dosconfigをします。
そして元のmenu.lstに
title porteus (sda2)
root (hd0,1)
chainloader +1
を加えます。
(これは grub4dos -> syslinuxで起動)
しかし、
presise のgrub4dosが
title Porteus-3.1 32bit (sda2/boot) ---------------------------
uuid ded5652f-6c4f-45f2-bfe4-4d92b2c5caa0
kernel /boot/syslinux/vmlinuz changes=/porteus timezone=Asia/Tokyo kmap=jp,us
initrd /boot/syslinux/initrd.xz
なのをつくってくれて これでこのままbootできるときもあります(grub4dos が直接起動?)。
2)grubの時は
grub.cfg を 別名でコピーしてから
grub-install /dev/sda
update-grub をします。
なお
cat /etc/grub.d/40_custom
で
menuentry 'Porteus Linux - Normal User' {
insmod ext2
set root='(hd0,6)'
linux /boot/syslinux/vmlinuz nomagic base_only norootcopy zram=60% noauto timezone=Asia/Tokyo login=guest
initrd /boot/syslinux/initrd.xz
}
挿入です。
だから、
例えばgrub4dosの時は
title porteus (sda2)
root (hd0,1)
chainloader +1
で archでなく porteusが まず立ち上がり
次に
003-kde.xzmを ネットから /mnt/sda2/porteus/base/
にいれておくと、http://dl.porteus.org/i486/current/modules/
/mnt/sda2/boot/syslinux/porteus.cfg を以下にしておくと
LABEL LXQt <ーこれでlxdeが立ち上がり
MENU LABEL Graphics mode (LXQt)
KERNEL vmlinuz
APPEND initrd=initrd.xz changes=/porteus noload=003-kde.xzm timezone=Asia/Tokyo kmap=jp
TEXT HELP
Run Porteus the best way we can.
Try to autoconfigure graphics
card and use the maximum
allowed resolution
ENDTEXT
LABEL kde<ーこれでKDEが立ち上がります
MENU LABEL Graphics mode (KDE)
KERNEL vmlinuz
APPEND initrd=initrd.xz changes=/porteus/ noload=003-lxqt.xzm timezone=Asia/Tokyo kmap=jp
TEXT HELP
Run Porteus the best way we can.
Try to autoconfigure graphics
card and use the maximum
allowed resolution
ENDTEXT
porteus 王国の lxde大臣か kde大臣かどちらかのご登場になります。
これはちょっとすごい。
器用な真似はです。
それにしても slackwareは debian一家に 乗っ取られたかにみえても(平家にあらずんば人にあらず)puppyを含めてすごい存在感を示してます。