3

I am using Ubuntu 16.04 and have a large USB flash drive (256 GB) that I want to use to store my data as an encrypted backup. My data is less than 100 GB, so I my idea was to partition the USB drive (say 2x128 GB) and use the disk utility to format one of the partitions as ext4 with encryption. The plan is to format the other partition as fat32 in order to use it just as an ordinary USB stick and be compatible with both Linux and Windows systems.
I found a tutorial that roughly describes this: https://medium.com/tech-notes-and-geek-stuff/how-to-encrypt-a-usb-disk-47f6a4166f03
However, I couldn't even find out how exactly to do the first step: "format the USB key as an Extended partition. This will allow you to create multiple child partitions."

How can one format the USB as an "extended partition" and how to create multiple "child partitions"?

First, I formatted the whole USB as fat32 via the Gnome Disk utility and then tried GParted and used the Resize/Move option (in menu on right click) on the whole USB. That created two parts. One has now the format fat32 but the other has no/unknown format and it seems I cannot change that. (Here is a screenshot.)
enter image description here
Any ideas how to proceed? Is that what I want even possible?

1 Answers1

4

You've over-complicated the task at hand with these "extended" and "child" partitions. You also made a mistake when you formatted the entire disk as FAT32. If you format the entire disk as one partition, you will have no room for another partition.

The solution is quite simple.

  • First, open the Disks application (gnome-disk-utility).

  • Format the Disk as MBR: Select your device on the left, then click the three horizontal bars near the top right. Choose "Format Disk..." to format the entire disk. (For flash drives, choose the MBR partition scheme for compatibility.)

  • Make your FAT32 Partition": Click the + symbol under the bottom left of the bar graph that represents the partitions on this disk. Choose a partition size that leaves room for your other partition. Give it a name, and choose "For use with all systems and devices (FAT)"

  • Make your LUKS encrypted partition: Now select the "Free Space" at the end of the drive and click + again to add another partition. Give it a name and choose "Internal disk for use with Linux systems only (Ext4)" and check "Password protect volume (LUKS)". Enter and confirm your password. Click "Create" one last time, and you're done.

Nmath
  • 12,664