Antergos / Cnchi

A modern, flexible online system installer for Antergos Linux
GNU General Public License v3.0
291 stars 101 forks source link

Cnchi partition manager does not recognize my partitioning #812

Open speshuric opened 6 years ago

speshuric commented 6 years ago

Problem:

Cnchi partition manager does not recognize my partitioning

Steps To Reproduce:

  1. Get current ISO (Name: antergos-17.10-x86_64.iso, MD5 Sum: dcb06f17de46c664799624b5558e6d87)
  2. Start it
  3. Wait until Cnchi started (version 0.14.404 shown)
  4. Make partitions, see below
  5. Choose "Choose exactly where Antergos should be installed." on "Installation type" page
  6. No labels/fs on sda's partitions (even for swap).

Logs

Before partitioning

# partprobe /dev/sda
# lsblk 
NAME  MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
loop0   7:0    0  1.8G  1 loop /run/archiso/sfs/root-image
sda     8:0    0  128G  0 disk 
sr0    11:0    1  1.9G  0 rom  /run/archiso/bootmnt
# blkid 
/dev/loop0: TYPE="squashfs"
/dev/sr0: UUID="2017-10-03-13-49-14-00" LABEL="ANTERGOS" TYPE="iso9660" PTUUID="7c32349a" PTTYPE="dos"
# parted --script /dev/sda print
Error: /dev/sda: unrecognised disk label
Model: ATA VBOX HARDDISK (scsi)
Disk /dev/sda: 137GB
Sector size (logical/physical): 512B/512B
Partition Table: unknown
Disk Flags: 

Partitioning commands

# parted --script /dev/sda -- \
    unit MiB \
    mklabel gpt \
    mkpart primary 1MiB 4MiB \
    set 1 bios_grub on \
    name 1 bios_grub \
    mkpart primary ext4 4MiB 4GiB \
    set 2 boot on \
    set 2 esp on \
    name 2 boot \
    mkpart primary linux-swap 4GiB 32GiB \
    name 3 swap \
    mkpart primary ext4 32GiB 80GiB \
    name 4 root \
    mkpart primary ext4 80GiB 92% \
    name 5 home \
    print \
Model: ATA VBOX HARDDISK (scsi)
Disk /dev/sda: 131072MiB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags: 

Number  Start     End        Size      File system     Name       Flags
 1      1.00MiB   4.00MiB    3.00MiB                   bios_grub  bios_grub
 2      4.00MiB   4096MiB    4092MiB   ext4            boot       boot, esp
 3      4096MiB   32768MiB   28672MiB  linux-swap(v1)  swap
 4      32768MiB  81920MiB   49152MiB  ext4            root
 5      81920MiB  120586MiB  38666MiB  ext4            home
# partprobe /dev/sda
# mkfs.ext4 /dev/sda2
mke2fs 1.43.6 (29-Aug-2017)
Creating filesystem with 1047552 4k blocks and 262144 inodes
Filesystem UUID: 21039e3b-d99a-49d5-9892-0ce7b6300ac1
Superblock backups stored on blocks: 
    32768, 98304, 163840, 229376, 294912, 819200, 884736

Allocating group tables: done                            
Writing inode tables: done                            
Creating journal (16384 blocks): done
Writing superblocks and filesystem accounting information: done 
# mkfs.ext4 /dev/sda4
mke2fs 1.43.6 (29-Aug-2017)
Creating filesystem with 12582912 4k blocks and 3145728 inodes
Filesystem UUID: b259f584-4ebf-4fd5-b036-b1bc5ac1f7e1
Superblock backups stored on blocks: 
    32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 
    4096000, 7962624, 11239424

Allocating group tables: done                            
Writing inode tables: done                            
Creating journal (65536 blocks): done
Writing superblocks and filesystem accounting information: done   

# mkfs.ext4 /dev/sda5
mke2fs 1.43.6 (29-Aug-2017)
Creating filesystem with 9898496 4k blocks and 2477328 inodes
Filesystem UUID: 765eef6a-aa43-4118-a9ae-428324c07572
Superblock backups stored on blocks: 
    32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 
    4096000, 7962624

Allocating group tables: done                            
Writing inode tables: done                            
Creating journal (65536 blocks): done
Writing superblocks and filesystem accounting information: done   

After partitioning:

# partprobe /dev/sda
# lsblk
NAME   MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
loop0    7:0    0  1.8G  1 loop /run/archiso/sfs/root-image
sda      8:0    0  128G  0 disk 
├─sda1   8:1    0    3M  0 part 
├─sda2   8:2    0    4G  0 part 
├─sda3   8:3    0   28G  0 part 
├─sda4   8:4    0   48G  0 part 
└─sda5   8:5    0 37.8G  0 part 
sr0     11:0    1  1.9G  0 rom  /run/archiso/bootmnt
# blkid
/dev/loop0: TYPE="squashfs"
/dev/sr0: UUID="2017-10-03-13-49-14-00" LABEL="ANTERGOS" TYPE="iso9660" PTUUID="7c32349a" PTTYPE="dos"
/dev/sda1: PARTLABEL="bios_grub" PARTUUID="05137b8b-91a1-490f-a9a6-64d2d42509d3"
/dev/sda2: UUID="21039e3b-d99a-49d5-9892-0ce7b6300ac1" TYPE="ext4" PARTLABEL="boot" PARTUUID="c9f59a2d-d3e0-47a9-8e72-43132757f055"
/dev/sda3: PARTLABEL="swap" PARTUUID="36da751c-0f9a-4728-9467-90689a34b25d"
/dev/sda4: UUID="b259f584-4ebf-4fd5-b036-b1bc5ac1f7e1" TYPE="ext4" PARTLABEL="root" PARTUUID="9abb3afe-8901-4cf2-a41c-ee66de9746d0"
/dev/sda5: UUID="765eef6a-aa43-4118-a9ae-428324c07572" TYPE="ext4" PARTLABEL="home" PARTUUID="ac47e124-eb2f-4f71-8faa-75357dda00de"
# parted --script /dev/sda print
Model: ATA VBOX HARDDISK (scsi)
Disk /dev/sda: 137GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags: 

Number  Start   End     Size    File system  Name       Flags
 1      1049kB  4194kB  3146kB               bios_grub  bios_grub
 2      4194kB  4295MB  4291MB  ext4         boot       boot, esp
 3      4295MB  34.4GB  30.1GB               swap
 4      34.4GB  85.9GB  51.5GB  ext4         root
 5      85.9GB  126GB   40.5GB  ext4         home

stdout of cnchi on this page (same in /tmp/cnchi.log):

2017-11-06 18:24:12 [DEBUG] fs_module.py(67) get_label(): Can't get partition /dev/sda1 label (or it does not have any)
dumpe2fs 1.43.6 (29-Aug-2017)
2017-11-06 18:24:12 [DEBUG] fs_module.py(67) get_label(): Can't get partition /dev/sda2 label (or it does not have any)
2017-11-06 18:24:13 [DEBUG] fs_module.py(67) get_label(): Can't get partition /dev/sda3 label (or it does not have any)
dumpe2fs 1.43.6 (29-Aug-2017)
2017-11-06 18:24:13 [DEBUG] fs_module.py(67) get_label(): Can't get partition /dev/sda4 label (or it does not have any)
dumpe2fs 1.43.6 (29-Aug-2017)
2017-11-06 18:24:13 [DEBUG] fs_module.py(67) get_label(): Can't get partition /dev/sda5 label (or it does not have any)
tonybenoy commented 6 years ago

I'm getting the same issue. I use a dual drive setup and the disk is partitioned in GPT.