Showing posts with label WinPE. Show all posts
Showing posts with label WinPE. Show all posts

2014-03-17

GRUB2 multiboot ISO


GRUB2 multiboot ISO 2018 update

USB:
/boot/grub
/boot/iso
/boot/image
/boot/tc4
/boot/tc5
/boot/syslinux

get USB UUID & Label:
> blkid



/boot/grub.sh


/boot/grub/grub.env (1024byte)


/boot/grub/grub.cfg




/boo/grub/grub_hd.cfg (Harddisk)


/boo/grub/grub_fd.cfg (Floppy)



/boo/grub/grub_pe.cfg (Windows PE)

Linux:

/boo/grub/grub_tci.cfg (Tiny Core Linux)

/boo/grub/grub_sl.cfg (Slax)

/boo/grub/grub_u.cfg (Ubuntu)


/boo/grub/grub_d.cfg (Debian)


/boo/grub/grub_cd.cfg (CDLinux)


/boo/grub/grub_cr.cfg (ChromeOS)


/boo/grub/grub_s.cfg (openSUSE)


/boo/grub/grub_ce.cfg (CentOS)
* rdshell
method 1:
set rootopt="root=live:LABEL=CentOS-${ver}-${bit}-${live}"

boot into rdshell

1a: boot from RAM
# mkdir 1 2
# mount /dev/<usb partition> 1
# cp 1/boot/iso/<Centos ISO> 2
# umount 1
  (remove USB)
# exit

1b: boot from USB
# mkdir 1 2
# mount /dev/<usb partition> 1
# mount -o loop 1/boot/iso/<Centos ISO> 2
# exit

method 2:
set rootopt="root=live:${ISO_Path}/${iso}"

boot into rdshell

2a: boot from RAM
# mkdir -p boot/iso 1
# mount /dev/<usb partition> 1
# cp 1/boot/iso/<Centos ISO> boot/iso
# /init

2b: boot from USB
# mkdir -p boot 1
# mount /dev/<usb partition> 1
# ln -s /1/boot/iso /boot
# /init

2014-03-13

Tiny Core Linux WinPE

         cabextract
         coreutils
         mkisofs-tools
         mtools
         syslinux
         util-linux

wimlib
imagex

=============================

http://technet.microsoft.com/en-us/library/hh824911.aspx
http://technet.microsoft.com/en-us/library/dd744554(v=WS.10).aspx
http://technet.microsoft.com/en-us/library/dd744252(v=ws.10).aspx
http://technet.microsoft.com/en-us/library/dd744592(v=ws.10).aspx
http://technet.microsoft.com/en-us/library/dd744560(v=ws.10).aspx
http://technet.microsoft.com/en-us/library/dd744284(v=ws.10).aspx

mkdir c:\winpe
cd c:\winpe

copype.cmd x86 c:\winpe\001

cd 001
copy winpe.wim iso\sources\boot.wim

dism /Mount-Wim /WimFile:C:\winpe\001\iso\sources\boot.wim /index:1 /MountDir:C:\winpe\mp

dism /image:C:\winpe\mp /Add-Package /PackagePath:"c:\Program Files\Windows AIK\Tools\PETools\x86\WinPE_FPs\winpe-fontsupport-zh-tw.cab"
dism /image:C:\winpe\mp /Add-Package /PackagePath:"c:\Program Files\Windows AIK\Tools\PETools\x86\WinPE_FPs\winpe-hta.cab"
dism /image:C:\winpe\mp /Add-Package /PackagePath:"c:\Program Files\Windows AIK\Tools\PETools\x86\WinPE_FPs\winpe-legacysetup.cab"
dism /image:C:\winpe\mp /Add-Package /PackagePath:"c:\Program Files\Windows AIK\Tools\PETools\x86\WinPE_FPs\winpe-mdac.cab"
dism /image:C:\winpe\mp /Add-Package /PackagePath:"c:\Program Files\Windows AIK\Tools\PETools\x86\WinPE_FPs\winpe-pppoe.cab"
dism /image:C:\winpe\mp /Add-Package /PackagePath:"c:\Program Files\Windows AIK\Tools\PETools\x86\WinPE_FPs\winpe-scripting.cab"
dism /image:C:\winpe\mp /Add-Package /PackagePath:"c:\Program Files\Windows AIK\Tools\PETools\x86\WinPE_FPs\winpe-setup-client.cab"
dism /image:C:\winpe\mp /Add-Package /PackagePath:"c:\Program Files\Windows AIK\Tools\PETools\x86\WinPE_FPs\winpe-setup-server.cab"
dism /image:C:\winpe\mp /Add-Package /PackagePath:"c:\Program Files\Windows AIK\Tools\PETools\x86\WinPE_FPs\winpe-setup.cab"
dism /image:C:\winpe\mp /Add-Package /PackagePath:"c:\Program Files\Windows AIK\Tools\PETools\x86\WinPE_FPs\winpe-wds-tools.cab"
dism /image:C:\winpe\mp /Add-Package /PackagePath:"c:\Program Files\Windows AIK\Tools\PETools\x86\WinPE_FPs\winpe-wmi.cab"

dism /image:C:\winpe\mp /Add-Package /PackagePath:"c:\Program Files\Windows AIK\Tools\PETools\x86\WinPE_FPs\zh-tw\lp_zh-tw.cab"
dism /image:C:\winpe\mp /Add-Package /PackagePath:"c:\Program Files\Windows AIK\Tools\PETools\x86\WinPE_FPs\zh-tw\winpe-hta_zh-tw.cab"
dism /image:C:\winpe\mp /Add-Package /PackagePath:"c:\Program Files\Windows AIK\Tools\PETools\x86\WinPE_FPs\zh-tw\winpe-legacysetup_zh-tw.cab"
dism /image:C:\winpe\mp /Add-Package /PackagePath:"c:\Program Files\Windows AIK\Tools\PETools\x86\WinPE_FPs\zh-tw\winpe-mdac_zh-tw.cab"
dism /image:C:\winpe\mp /Add-Package /PackagePath:"c:\Program Files\Windows AIK\Tools\PETools\x86\WinPE_FPs\zh-tw\winpe-PPPOE_zh-tw.cab"
dism /image:C:\winpe\mp /Add-Package /PackagePath:"c:\Program Files\Windows AIK\Tools\PETools\x86\WinPE_FPs\zh-tw\winpe-scripting_zh-tw.cab"
dism /image:C:\winpe\mp /Add-Package /PackagePath:"c:\Program Files\Windows AIK\Tools\PETools\x86\WinPE_FPs\zh-tw\winpe-setup-client_zh-tw.cab"
dism /image:C:\winpe\mp /Add-Package /PackagePath:"c:\Program Files\Windows AIK\Tools\PETools\x86\WinPE_FPs\zh-tw\winpe-setup-server_zh-tw.cab"
dism /image:C:\winpe\mp /Add-Package /PackagePath:"c:\Program Files\Windows AIK\Tools\PETools\x86\WinPE_FPs\zh-tw\winpe-setup_zh-tw.cab"
dism /image:C:\winpe\mp /Add-Package /PackagePath:"c:\Program Files\Windows AIK\Tools\PETools\x86\WinPE_FPs\zh-tw\winpe-wds-tools_zh-tw.cab"
dism /image:C:\winpe\mp /Add-Package /PackagePath:"c:\Program Files\Windows AIK\Tools\PETools\x86\WinPE_FPs\zh-tw\winpe-wmi_zh-tw.cab"

dism /image:c:\winpe\mp /Enable-profiling

Dism /Get-MountedWimInfo

dism /Unmount-Wim /MountDir:C:\winpe\mp\ /Commit

http://technet.microsoft.com/en-us/library/dd799303(v=ws.10).aspx

Oscdimg -n -bC:\winpe\001\Etfsboot.com C:\winpe\001\ISO C:\winpe\winpe_waik_x86.iso