[syslinux] Hiding partitions at boot time

Martin Str|mberg ams at ludd.ltu.se
Tue Apr 4 22:45:31 PDT 2017


On Tue, Apr 04, 2017 at 10:24:06AM +0100, Stuart Foster via Syslinux wrote:
> Is it possible on booting one of the Windows systems to hide completely the
> other Windows systems partitions, I have experimented with the chain.c32
> "hide" commands but I have failed to find a satisfactory solution.
...
> fdisk -l :
> 
> Disk /dev/sda: 119.2 GiB, 128035676160 bytes, 250069680 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
> Disklabel type: dos
> Disk identifier: 0x430f27bc
> 
> Device     Boot     Start       End   Sectors  Size Id Type
> /dev/sda1  *         2048     67583     65536   32M 83 Linux
> /dev/sda2           67584 131137535 131069952 62.5G  7 HPFS/NTFS/exFAT
> /dev/sda3       131137536 139526143   8388608    4G 82 Linux swap / Solaris
> /dev/sda4       139526144 250069679 110543536 52.7G 83 Linux
> 
> 
> Disk /dev/sdb: 111.8 GiB, 120034123776 bytes, 234441648 sectors
> Units: sectors of 1 * 512 = 512 bytes
> Sector size (logical/physical): 512 bytes / 4096 bytes
> I/O size (minimum/optimal): 4096 bytes / 4096 bytes
> Disklabel type: dos
> Disk identifier: 0x1d747409
> 
> Device     Boot  Start       End   Sectors   Size Id Type
> /dev/sdb1  *      2048    264191    262144   128M  7 HPFS/NTFS/exFAT
> /dev/sdb2       264192 234435599 234171408 111.7G  7 HPFS/NTFS/exFAT

According to <http://www.syslinux.org/wiki/index.php?title=Doc/chain>
it seems it might.

What happens if you change this?

Part of your config file:
> label LFS10
>     menu label Windows 10
Remove: >     kernel chain.c32
Remove: >     append hd1 1
	chain hd0 hideall break
	chain hd1 hide 1
> menu separator
> label LFSxp
>     menu label Windows XP
Remove: >     kernel chain.c32
Remove: >     append hd0 2
      chain hd1 hideall break
      chain hd0 hide 2


If you should have chain or chain.c32 isn't clear at the web page.


-- 
MartinS


More information about the Syslinux mailing list