D
D
del9937882018-07-16 01:30:30
Windows
del993788, 2018-07-16 01:30:30

How to split a flash drive into two partitions with grub2 and ntfs?

Hello. There is a 64 GB flash drive. I want to divide it into two parts:
1. The first part will store files in the NTFS file system.
2. The second part of the fat32, it will store grub2 for booting live linux
. I don't care about the second part of the flash drive, but the first one should be displayed in Windows Explorer.
How to implement this?
The problem is that gurb2 doesn't want to boot if the NTFS part has the status "Main Disk". If the NTFS part is made "Logical", then it will no longer be displayed in Windows Explorer. Vicious circle.
What I tried and what I came up with:

Using Partition Wizzard Server, I divided the flash drive into 2 partitions. The first is NTFS, the second is FAT32. I successfully uploaded my files to NTFS. The NTFS partition is displayed by default in Windows Explorer, since only the first and primary partition is displayed in Windows Explorer. If you change the NTFS partition to Logical, and the Second FAT32 partition to Primary, then only the second partition with FAT32 will start to be displayed, and the first one will not be displayed. When the second partition began to appear, I uploaded grub2 and linux to it. Rebooted and grub2 started up. Then I went back to Partition Wizzard Server (PWS) and made the NTFS partition the main one again, and FAT32 the logical one. Thus, I displayed NTFS again, and hid FAT32, but grub2 no longer wanted to boot.
Later it turned out that in PWS you can make both sections the main ones, which I did. Since the NTFS partition is the first one, it was displayed as it is, but now the second partition has also begun to have the “main” status. After that, I tried to boot into grub2 and saw the following picture: everything worked on a computer with uefi, but on a PC with bios, grub2 did not start.
I need GRUB2 in order to use linux slax on computers with UEFI and BIOS. Without grub2, Linux Slax will only run on bios.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
del993788, 2018-07-17
@del993788

The problem was solved like this: NTFS and FAT32 are both basic, NTFS is the first, the FAT32 disk has the “active” status.
This is all done in the Partition Wizzard server program
5b4e4b6d4f0b8644757437.jpeg

C
CityCat4, 2018-07-16
@CityCat4

Get two flash drives ... It seems not the year 2000, when buying a flash drive was an event of a planetary scale ...

R
res2001, 2018-07-16
@res2001

1.As far as I know, in previous versions of Windows, partitions were hidden simply by indicating them in the partition table not in the first place, i.e. only the first section was displayed from the flash drive (about which they write the same at the Ezhyg link ).
In Win10, after some big update, this was removed and now all partitions are visible on the flash drive.
2. There is no point in logical partitions when there are up to 4 partitions on the disk.
3. UEFI and Legacy BIOS are loaded using different mechanisms.
3.1.UEFI uses the EFI partition on the disk and the boot *.efi files located in this partition to boot.
An EFI partition is a partition with a FAT16 or FAT32 file system. Boot efi files must be in a strictly defined place in the file system where UEFI looks for them.
3.2.Legacy boot - uses the old MBR (master boot record) mechanism. MBR is the zero sector on the disk. In order for this to work, you need to make one of the sections active, this section cannot be logical, only the main one. It is from the active partition that the OS is loaded further. In addition, you need to write the MBR to the disk - a certain code that performs further loading. MBR is written to sector 0 of the disk, it is not part of the file system (i.e. it cannot be written by copying the file somewhere), a special file is needed to write it. soft. Rough has its own MBR, Windows has its own, and so on.
4. Loading from a flash drive in both UEFI and legacy mode is successfully solved by many. For example, there is a WinPE diagnostic assemblywhere it is decided. For disk partitioning, MBR recording, etc. actions there, the bootice utility is used. You can download the archive from adminpe, there is an instruction on how to make a bootable flash drive with several partitions and, in my opinion, grub is also used there.
By the way, it was convenient to hide partitions in bootice - it is implemented there with one button - it simply rewrites the partition table, where the partitions are listed in the correct order. True, this is no longer relevant.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question