Install Quirky6.0 on a DOS partition table
Currently, Quirky6.0 install on a GPT partition table. Because kernal need to find a specified linux rootfs by below boot parameters:
Code: Select all
root=PARTUUID=AA2B8242-B2F6-40CB-AFC3-5C888A55380D rootwait
Here the "AA2B8242-B2F6-40CB-AFC3-5C888A55380D" are the Partition unique GUID.
You can use gdisk with the "i" command to show the Partition unique GUID.
Since kernel 3.8 and newer it is possible to use MBR 32-bit UUID, so you can use a MBR partition table as well. Please reference to below web page:
http://wiki.gentoo.org/wiki/GRUB
The PARTUUID refer to an MBR partition using the format SSSSSSSS-PP, where SSSSSSSS is a zero-filled hex representation of the 32-bit "Disk identifier", and PP is a zero-filled hex representation of the 1-based partition number
You can use fdisk to check the MBR 32-bit UUID, it is the "Disk identifier".
Code: Select all
# fdisk -l /dev/sdc
Disk /dev/sdc: 1047 MB, 1047834112 bytes
33 heads, 61 sectors/track, 1016 cylinders, total 2046551 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xcc709394
Device Boot Start End Blocks Id System
/dev/sdc1 65280 2046000 990360+ 83 Linux
/dev/sdc4 * 32 65279 32624 14 Hidden FAT16 <32M
In my case, the Disk identifier(MBR 32-bit UUID) is cc709394
If I want to boot the sdc1, then the boot parameters will be:
root=PARTUUID=cc709394-01 rootwait
The -01 mean partition 1.
To install Quirky6.0 on a DOS partition table basically have below step:
1. Prepare a USB flash disk, use fdisk(Gparted) to create at least two(or more) partitions.
One partition for boot loader(syslinux or Grub4Dos), FAT16 file system, size about 16M or more.
The other partition for linux rootfs, f2fs file system, size bigger the 1G.
Please remembered your "Disk identifier"
2. Format the FAT16 file system with mkfs.vfat(eg: mkfs.vfat /dev/sdc1)
Format the f2fs file system with mkfs.f2fs(eg: mkfs.f2fs /dev/sdc2)
Skip this step if you use Gparted.
*3. Mount sdc1 and copy the content of the first partition of Quirky6.0 image to sdc1.
*4. Mount sdc2 and copy the content of the second partition of Quirky6.0 image to sdc2.
5. Install the boot loader, I like syslinux,(eg: syslinux -sf /dev/sdc1)
6. Edit the content of the syslinux.cfg on sdc1, change the
Code: Select all
append root=PARTUUID=AA2B8242-B2F6-40CB-AFC3-5C888A55380D rootwait
to
Code: Select all
append root=PARTUUID=SSSSSSSS-PP rootwait
Here the SSSSSSSS-PP is your "Disk identifier" and partition number.
7. Finish and ready to boot your Quirky6.0.
Remark: * For step 3 and 4, please see my next post.
As a puppy linux user, we usually have a USB boot disk with puppy linux. Use Gparted to resize your existing partitions and add a f2fs partition, then you could easy play with the Quirky6.0.
Thanks for Barry, he created puppy linux to us.
C.H.Lee