VirtualBox

If you are a Windows user, have you ever wondered how difficult it is to work with or experiment with tinycore?

Thisisbacausemanypeoplewouldfinditinconvenienttobootintotinycoreeverytimetheyneedtomakeasmallchange,cookupapackage,orsimplyexperiment.

Ihaveagreatsuggestionthatwouldeaseyourpains.YoucanactuallyboottinycorewithinavirtualmachinelikeSunVirtualBox.ThiswillallowyoutobootTinyCoreasa"window"withinyourexistingOS,andevenworksonWindows!

Thereare3waysofdoingthis,ofwhichthelastoneIlikebest.

ThelastoneisaHybridBootsetup,allowingbootingTinyCorefromadiskpartitionaftertheBIOS,andalsowithinWindowsitselfasaVirtualBoxVMinstancereadingfromthesamediskpartition.

Note:ThistutorialemphasizesonSafety.Thereisveryverylittlechanceofcorruptingyourhard-driveorexistingOperatingSystem.Forexample,VBoxManagecommandsrestrictswritetoonlythenewpartition.

Windows Host Os

Method 1: VBox Boot from Mounted Tinycore ISO

The tutorial here will be focused on getting you up and running the simplest way.

Method 2: VBox Boot from Tinycore Virtual Disk

The tutorial here will be slightly more complicated as you would needto initialize a .vdi virtual-disk file, then perform installation ofTinycore on the virtual disk.

Method 3: VBox Boot from Tinycore Virtual Physical Parition

The tutorial here will be slightly more tedious, but not morecomplicated, exploiting a lesser known feature that allows VBox to bootfrom a physical partition residing on your disk.

ThisproducesaHybridBootsetupwhereyoucanbootTinycorewithinWindowsandalsonormallyfromBIOS(togainthebestperformance).ParagonExt2Browser(read&write)isusedtoallowyoutocopyfilesinandoutofTinycore(fromwithinWindows).

STEPS

Part A

  1. EUSEAS Partition Manager Home (freeware) is used to shrink theexisting NTFS partition by a meager 2GB. Other partition managers likegparted can be used. Then, a new unformatted partition is created inthe free space.
  2. The VBox Partition Pointer file (.vmdk) is created with
    VBoxManageinternalcommands createrawvmdk -filename PhysicalDrive0-Partition2.vmdk-rawdisk \\.\PhysicalDrive0 -partitions 2 -mbr C:\grub.mbr -register
    (grub.mbr here is an empty "notepad" file we created.) (Win Vista:console/cmd with Administrator access is required for this step) Read more on VBoxManageTiny Core Linux > VirtualBox

PartB

Note:ThispartrequiresunderstandingoftheOfficialTCInstallGuide.Allstepsareexactlythesameastheofficialinstallguide,exceptyouaredoingitfromWindowsthroughtheVM.Thepartitiondoesnotneedthebootableflag,thusyoucanskipthewholepartregardingcfdisk.Forbeginners,itwouldbegoodtofollowalongthenicescreenshotsintheofficialguide.

  1. We then boot Tinycore in VirtualBox from the Mounted Tinycore ISO. (Win Vista: Start VirtualBox as Administrator)
  2. And do
    fdisk /dev/sda
    to delete & recreate partition 2, then
    mkfs.ext3 /dev/sda2
  3. Grub extension is first installed from the Appbrowser. Bootfiles are then copied from /mnt/hdc/boot to /mnt/sda2/boot. Grubspecial files also. The /mnt/sda2/boot/grub/menu.lst is created. Youcan also add the xvesa option to the kernel option of grub to set thedesktop resolution
    kernel /boot/bzImage quiet xvesa=800x600x24
    so when it runs in a window it fits on the screen. The vga option only affects the terminal.
  4. Grub is initialized with root (hd0,1) and setup (hd0,2) and setup (hd0).
  5. Lastly, the grub MBR is extracted with
    dd if=/dev/sda2 of=/home/tc/grub.mbr bs=512 count=1
    .

Part C

  1. Paragon Ext2Browser is installed giving us access to the ext3partition we created from within Windows. We copy out the/home/tc/grub.mbr to C:/grub.mbr
  2. Finally, we edit boot.ini (WinXp) or use bcdedit (Vista) or EasyBCDTiny Core Linux > VirtualBox to create a record in Windows Bootloader to allow us to boot into grub when in the "Choose your operating System" Screen. Read this linkTiny Core Linux > VirtualBox to find out how.
  3. Shiretoko, Xfe, Xfw extensions are installed to give the common user some ease.

Helpneeded

  • Itwouldbeniceifsomeonecancreateanautomated(tce.installed)batchscriptforPartB,packageitupaanextension(whichhasadepongrubextension),andsubmitittotheonlinerepository.ThiswouldmakeTinycoremoreaccessibletothemassesoutthere.
  • Thetutorialaboveneedmoredetailedelaboration,whichIhopeanyonewhotriesthetutorialcanhelpcomplete.
  • PeoplewithingeniousideasofhowPortableVirtualBoxcanbeusedtodeliveraUSBflashdiskthatbootsTC.TheTCcanbefromahiddenext3partitionontheUSBflashdisk,notnecessarilyfromafile.
  • Method3canalsobeadaptedtothecasethatyoualreadyhaveanexistingTinycoreinstalledinapartition,butnowwouldliketobootitinVirtualBoxonWindows.