Skip to content

Instantly share code, notes, and snippets.

@joseivanlopez
Created July 19, 2017 07:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joseivanlopez/7c43ed2846fcec6beb991d466dc5b577 to your computer and use it in GitHub Desktop.
Save joseivanlopez/7c43ed2846fcec6beb991d466dc5b577 to your computer and use it in GitHub Desktop.

Title

Expert partitioner VS Partitioner

System View

Hard Disks

Tumbleweed

  • Show table with disk and partitions.
  • Table has columns: Device, Size, F, Enc, Type, FS Type, Label, Mount Point, Start, End
  • Actions:
    • Show actions for both, disk and partitions.
    • The action is executed for the row selected in the table.
      • Add Partition:
        • Over a disk: starts wizard to add a new partition.
        • Over partition: starts wizard to add a new partition in the disk tha the partition belongs to.
      • Edit:
        • Over disk: show the disk view.
        • Over partition: shows edition dialog for the partition.
      • Move:
        • Over disk: error popup.
        • Over partition: moves the partition (forward or backward) when possible.
      • Resize:
        • Over disk: error popup.
        • Over partition: shows resize dialog.
      • Delete:
        • Over disk: popup asking for deleting all disk partitions.
        • Over partition: popup asking for deleting the partition.

Storage-ng

Pending

  • Field Type of the table.
  • Actions Add Partition, Edit, Move and Resize.

Disk selected

Tumbleweed

  • Two tabs: Overview and Partitions
  • Overview:
    • Show a report with two sections (device and hard disks).
      • Device:
        • Presents the info: device, size, device path, device id.
      • Hard disk:
        • Presents the info: vendor, model number of cylinders, cylinder size, bus, sector size, disk label.
      • Actions:
        • Health Test (SMART)
  • Partitions:
    • shows a bar image with the disk partitions.
    • shows a table filled out with disk partitions info (same columns than before).
    • Actions:
    • Expert:
      • shows two options: 'Create New Partition Table' and 'Clone this Disk' .
        • Create new partition table:
          • Shows a popup with: MSDOS, GPT, DASD.
          • Needs to confirm.
      • Add:
        • Entra en wizard de añadir partición.
      • Edit:
        • shows wizard to add a new partition.
      • Move:
        • asks for moving the partition.
      • Resize:
        • shows resize dialgo.
      • Delete:
        • Popup asking for deleting the partition.

Storage-ng

  • Overview:
    • Hard Disk:
      • Has TODO for: vendor, model, bus.
        • Does not show: number of cylinders, cylinder size, sector size.
    • Does not have action 'Health test'.
  • Partitions:
    • Has TODO for: column Type
    • Actions:
      • Does not show: expert, move and resize.

Disk selected

Tumbleweed

  • Shows report with two sections: Device and File System.
    • Device:
      • shows fileds: device, size, encrypted, device path, device id, fs id.
    • File system:
      • shows fields: file system, mount point, label.
  • Actions:
    • Edit
    • Move
    • Resize
    • Delete

Storage-ng:

  • TODO: field fs id.
  • Does not show actions Move and Resize.

Add partition

  • Shows message when it is not possible to create a partition:
    • There is no space.
    • Max number of primary partitions (4 msdos).
  • Shows wizard with 4 steps:
    • Select partition type.
    • Select partition size.
    • Select partition role.
    • Partition attributes (fs, mount point, etc).
  • Only two first steps for a extended partition.

Wizard step to select the partition type

  • Only showed for MSDOS partition table.
  • Options:
    • primary partition
    • extended partition (if there isn't one on the disk already)
    • logical partition (if there is an extended partition already)
  • Primary partition is not showed is there is no space for more primary.
  • This step is not showed when only it is possible a unique partition type.

Wizard step to select the partition size

  • Three options:
    • Maximum size
    • Custom size:
      • With size input field.
      • Default filled to max size.
    • Custom region:
      • With input fields for start cylinder and end cylinder.
      • Default filled to free region start and end.
  • Dafaults:
    • Maximum size: for extended partition.
    • Custom size: for primary partition.
    • Custom region: for logical partition.

Wizard step to select the role of the partition

  • Shows the following options:
    • operating system (i.e. root)
    • data and ISV applications (any other mount point)
    • swap
    • raw volume (unformatted)
  • Dafaults:
    • Always selects the option "data and ISV applications"

Wizard step for partition attributes:

  • Two sets of options (formating options and mounting options):

    • Formating options:

      • Format partition
      • Do not format partition
      • Also, Encrypt device
    • Mounting options:

      • Mount partition
      • Do not mount partition
    • When Finish:

      • Validates mount point (if mount partition):
        • It should start by /
        • It should be swap for swap fs.
      • Does not allow to mount the partition if it has not a filesystem.
  • Defaults depend on partition role selected in previous step.

  • Defaults for Formating options:

    • Role: Operating system

      • Format partition: true
        • File System: Btrfs
        • Enable snapshots: true
      • Do not format partition: false
        • File System Id: 0x83 Linux
      • Encrypt: false
    • Role: Data and ISV applications

      • Format partition: true
        • File System: XFS
      • Do not format partition: false
        • File System Id: 0x83 Linux
      • Encrypt: false
    • Role: swap

      • Format partition: true
        • File System: Swap
      • Do not format partition: false
        • File System Id: 0x82 Linux Swap
      • Encrypt: false
    • Role: raw volume

      • Format partition: false
      • Do not format partition: true
        • File System Id: 0x8E Linux LVM
      • Encrypt: false
  • Defaults for Mounting options:

    • Role: Operating system

      • Mount partition: true
        • Mount point: /, /home, /var
      • Do not mount partition: false
    • Role: Data and ISV applications

      • Mount partition: true
        • Mount point: /, /home, /var
      • Do not mount partition: false
    • Role: Swap

      • Mount partition: true
        • Mount point: swap
      • Do not mount partition: false
    • Role: raw volume

      • Mount partition: false
      • Do not mount partition: true

Format partition

  • File system: Btrfs

    • Do not show Options
    • Show Enable snapshots
      • Enabled: only if mount point is /
    • Show Subvolume Handling
    • File system Id: 0x83 Linux
  • File system: Ext2

    • Show Options
      • Stride Length in blocks: none
      • Block size in bytes: auto (default), 1024, 2048, 4096
      • Bytes per inode: auto (default), 1024, 2048, 4096, 8192, 16384, 32768
      • Percentage of blocks reserved for root: 5.0
      • Disable regular checks: false
    • File system Id: 0x83 Linux
  • File system: Ext3

    • Show Options
      • Stride Length in blocks: none
      • Block size in bytes: auto (default), 1024, 2048, 4096
      • Bytes per inode: auto (default), 1024, 2048, 4096, 8192, 16384, 32768
      • Percentage of blocks reserved for root: 5.0
      • Disable regular checks: true
      • Inode size: default, 128, 256, 512, 1024
      • Directory index feature: false
    • File system Id: 0x83 Linux
  • File system: Ext4

    • Show Options
      • Stride Length in blocks: none
      • Block size in bytes: auto (default), 1024, 2048, 4096
      • Bytes per inode: auto (default), 1024, 2048, 4096, 8192, 16384, 32768
      • Percentage of blocks reserved for root: 5.0
      • Disable regular checks: true
      • Inode size: default, 128, 256, 512, 1024
      • Directory index feature: false
      • No journal: false
    • File system Id: 0x83 Linux
  • File system: FAT

    • Show Options
      • Number of FATs: auto (default), 1, 2
      • FAT size: auto (default), 12 bit, 16 bit, 32 bit
      • Root dir entries: auto
    • File system Id: 0x0C Win95 FAT32
  • File system: XFS

    • Show Options
      • Block size in bytes: auto (default), 1024, 2048, 4096
      • Inode size: auto (default), 256, 512, 1024, 2048
      • Percentage of inode space: auto (default), 5, 10, ..., 95, 100
      • Inode aligned: auto (default), true, false
    • File system Id: 0x83 Linux
  • File system: Swap

    • Disable Options
    • Mount Point: Swap
    • File system Id: 0x82 Linux swap

Do not format partition

  • File system Id:

    • Values: 0x83 Linux, 0x8E Linux LVM, 0x82 Linux swap, 0xFD Linux RAID, 0x07 NTFS, 0x0C Win 95 FAT, 0xA0 Hibernation.
    • In case of GPT, values also contain: 0x00 BIOS Grub, 0x00 GPT PReP Boot, 0x00 EFI Boot.
    • Other values can be manually entered.
  • File system Id: 0x83 Linux, 0x07 NTFS, 0x0C Win 95 FAT, 0xA0 Hibernation, 0x00 EFI Boot.

    • Enables mounting options
  • File system Id: 0x8E Linux LVM, 0xFD Linux RAID, 0xA0 Hibernation, 0x00 BIOS Grub, 0x00 GPT PReP Boot.

    • Disables mounting options
  • File system Id: 0x82 Linux swap

    • Enables mounting options.
    • Mount point: swap

Mount partition

  • Values: /, /home, /var, /opt, /boot, /srv, /tmp, /usr/local
  • First free value is taken by default.
  • Fstab Options depend on the selected File system.

Fstab options

  • "fstab options..." button is only enabled if a mount point is specified

  • File system: BtrFS

    • Mount in /etc/fstab by: Device name, Volume label, UUID (default), Device ID, Device path.
    • Volume label:
    • Mount Read-only: false
    • No access time: false
    • Mountable by user: false
    • Do not mount at system start-up: false
    • Arbitrary option value: subvol=@
  • File system: EXT2

    • Mount in /etc/fstab by: Device name, Volume label, UUID (default), Device ID, Device path.
    • Volume label:
    • Mount Read-only: false
    • No access time: false
    • Mountable by user: false
    • Do not mount at system start-up: false
    • Enable quota support: false
    • Access control lists (ACL): true
    • Extended user attributes: true
    • Arbitrary option value:
  • File system: EXT3, EXT4

    • Mount in /etc/fstab by: Device name, Volume label, UUID (default), Device ID, Device path.
    • Volume label:
    • Mount Read-only: false
    • No access time: false
    • Mountable by user: false
    • Do not mount at system start-up: false
    • Enable quota support: false
    • Data journaling mode: journal, ordered (default), writeback
    • Access control lists (ACL): true
    • Extended user attributes: true
    • Arbitrary option value:
  • File system: FAT

    • Mount in /etc/fstab by: Device name, Volume label, UUID (default), Device ID, Device path.
    • Volume label:
    • Mount Read-only: false
    • No access time: false
    • Mountable by user: false
    • Do not mount at system start-up: false
    • Charset for file names: iso, utf8, etc (default blank)
    • Codepage for short FAT names: 437, 852, 932, 936, 949, 950, (default blank)
    • Arbitrary option value: users,gid=users,umask=0002,utf8=true
  • File system: XFS

    • Mount in /etc/fstab by: Device name, Volume label, UUID (default), Device ID, Device path.
    • Volume label:
    • Mount Read-only: false
    • No access time: false
    • Mountable by user: false
    • Do not mount at system start-up: false
    • Enable quota support: false
    • Arbitrary option value:
  • File system: Swap

    • Mount in /etc/fstab by: Device name, Volume label, UUID (default), Device ID, Device path.
    • Volume label:
    • Swap priority:
    • Arbitrary option value:
    • Arbitrary option value:

Subvolume handling

  • Only showed when file system is BtrFS.
  • List of all subvolumes.
  • Allow add a new subvolume.
  • Allow to remove one subvolume from the list.
  • Alert when trying to create a subvolume that does not start by /@.
  • /@ is automatically appended.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment