Hi,
My problem is I have a particular system which has Linux (LFS) and
Windows XP on one drive and Windows 10 on a second drive.
I use extlinux to boot my systems and all three systems boot as
expected, however in use I have found unsatisfactory interactions
between the Windows XP and the Windows 10 systems.
My question is:
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.
Attached is the text from my extlinux.conf file and the output from
fdisk -l. for reference.
The version of syslinux I am using is 6.03.
Thanks
Stuart
-------------- next part --------------
extlinux.conf:
ui vesamenu.c32
prompt 0
timeout 300
default LFSmain
menu resolution 1600 1200
menu background Pingu.png
menu title Intel PC 'Pingu' Boot Menu: V1.0
menu rows 9
menu color unsel 37;44 #ff008000 #20008000 std
menu color sel 7;37;40 #ff00f000 #20008000 std
menu separator
label LFS10
menu label Windows 10
kernel chain.c32
append hd1 1
menu separator
label LFSxp
menu label Windows XP
kernel chain.c32
append hd0 2
menu separator
label LFSmain
menu label Linux-4.10.8
linux /vmlinuz-4.10.8
append ro root=/dev/sda4 radeon.modeset=1 iommu=pt iommu=1 radeon.dpm=1
drm_kms_helper.edid_firmware=edid/1600x1200.bin
menu separator
label LFSaux
menu label Recovery
linux /vmlinuz-4.10.6
append ro root=/dev/sda4 radeon.modeset=1 iommu=pt iommu=1 radeon.dpm=1
drm_kms_helper.edid_firmware=edid/1600x1200.bin
menu separator
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
> Hi, > > My problem is I have a particular system which has Linux (LFS) and > Windows XP on one drive and Windows 10 on a second drive. > I use extlinux to boot my systems and all three systems boot as > expected, however in use I have found unsatisfactory interactions > between the Windows XP and the Windows 10 systems. > > My question is: > > 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. > > Attached is the text from my extlinux.conf file and the output from > fdisk -l. for reference. > > The version of syslinux I am using is 6.03. > > Thanks > > Stuart > > >When using 'hide' in chain.c32 you are effectively changing the 'ID' partition type. In the output of: fdisk -l the 'Id' column would show, for example, "17" instead of "07" in other primary partitions. I haven't tested what happens with primary partitions located on other connected HDDs when using this parameter. I would _guess_ that only primary partitions within the same HDD are affected, while partitions within other HDDs aren't (?). The 'hide' parameter in chain.c32 is supposed to help in booting certain OSes. Generally speaking, if you want to completely hide the presence of some partition(s) once the OS has already booted (i.e. maintain some other partitions hidden also within the normal operation of the already-booted OS), you would need to search for solutions relevant for such OS. Regards, Ady.
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/exFATAccording 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 10Remove: > kernel chain.c32 Remove: > append hd1 1 chain hd0 hideall break chain hd1 hide 1> menu separator > label LFSxp > menu label Windows XPRemove: > 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