• Cnchi fails on formatting disk


    Hi all,
    I’m running into an error at the end of the Cnchi set up.

    It seemingly crashes for no reason, after manually selecting partitions.Tailing the logs shows me that it appears to be failing around disk formatting.

    I see this error:

    2018-08-13 06:48:30 [INFO] slides.py(276) manage_events_from_cb_queue(): Getting your disk(s) ready for Antergos...
    
    2018-08-13 06:48:31 [ERROR] fs_module.py(262) create_fs(): Error running ['mkfs.ext4', '-F', '-q', '-L', 'root', '-m', '1', '-O', 'dir_index', '/dev/sda5']: b''
    
    2018-08-13 06:48:31 [ERROR] advanced.py(2365) run_format(): Couldn't format partition '/dev/sda5' with label 'root' as 'ext4': Command '['mkfs.ext4', '-F', '-q', '-L', 'root', '-m', '1', '-O', 'dir_index', '/dev/sda5']' returned non-zero exit status 1.
    

    I’ve tried flashing my USB with a fresh ISO, and rebooting, but I am now stuck at this point.

    Using Cnchi 0.14.426

    Some info:
    lsblk -fm

    NAME FSTYPE LABEL UUID                                 MOUNTPOINT   SIZE OWNER GROUP MODE
    loop0
         squash                                            /run/archi   1.9G root  disk  brw-rw----
    sda  isw_ra                                                       931.5G root  disk  brw-rw----
    ├─sda1
    │    vfat   ESP   5A7F-F748                                         100M root  disk  brw-rw----
    ├─sda2
    │    isw_ra                                                          16M root  disk  brw-rw----
    ├─sda3
    │    ntfs   Acer  782681FA2681BA20                                467.2G root  disk  brw-rw----
    ├─sda4
    │    ntfs   Recovery
    │                 BCF08306F082C5DC                                    1G root  disk  brw-rw----
    ├─sda5
    │    isw_ra                                                        32.6G root  disk  brw-rw----
    ├─sda6
    │    isw_ra                                                         3.7G root  disk  brw-rw----
    └─sda7
         isw_ra                                                       426.9G root  disk  brw-rw----
    sdb  iso966 ANTERGOS
    │                 2018-08-06-00-50-16-00               /run/archi  14.9G root  disk  brw-rw----
    ├─sdb1
    │    iso966 ANTERGOS
    │                 2018-08-06-00-50-16-00                              2G root  disk  brw-rw----
    └─sdb2
         vfat   ARCHISO_EFI
                      9623-D9D7                                          64M root  disk  brw-rw----
    
    

    blkid

    /dev/sda1: LABEL="ESP" UUID="5A7F-F748" TYPE="vfat" PARTLABEL="EFI system partition" PARTUUID="220e7e46-43dd-4d3a-904e-1ada16f6ae3d"
    
    /dev/sda2: PARTLABEL="Microsoft reserved partition" PARTUUID="7d42b37f-7df3-4f31-9462-80446765a37e"
    
    /dev/sda3: LABEL="Acer" UUID="782681FA2681BA20" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="c0bb4673-c67f-4c52-9d0f-128f1dd01014"
    
    /dev/sda4: LABEL="Recovery" UUID="BCF08306F082C5DC" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="e4e9f4a8-bf57-4bbd-ad05-18fecab6d317"
    
    /dev/sda5: PARTUUID="ea79919b-834a-4d5a-8c87-27c0abb3d9a0"
    
    /dev/sda6: PARTUUID="1244fc93-a1cf-48dd-bfa9-d36593e205ea"
    
    /dev/sda7: PARTUUID="6fdef4d6-2aca-4393-ab1e-53fe38fe42a5"
    
    /dev/sdb1: UUID="2018-08-06-00-50-16-00" LABEL="ANTERGOS" TYPE="iso9660" PTUUID="314e3728" PTTYPE="dos" PARTUUID="314e3728-01"
    
    /dev/sdb2: SEC_TYPE="msdos" LABEL="ARCHISO_EFI" UUID="9623-D9D7" TYPE="vfat" PARTUUID="314e3728-02"
    
    /dev/loop0: TYPE="squashfs"
    

    fdisk -l

    The backup GPT table is not on the end of the device. This problem will be corrected by write.
    Disk /dev/sda: 931.5 GiB, 1000204886016 bytes, 1953525168 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: gpt
    Disk identifier: 3863E50E-0826-4F65-B67D-F27BBCB202FE
    
    Device          Start        End   Sectors   Size Type
    /dev/sda1        2048     206847    204800   100M EFI System
    /dev/sda2      206848     239615     32768    16M Microsoft reserved
    /dev/sda3      239616  979990527 979750912 467.2G Microsoft basic data
    /dev/sda4  1951408128 1953505279   2097152     1G Windows recovery environment
    /dev/sda5   979990528 1048349902  68359375  32.6G Linux filesystem
    /dev/sda6  1048349903 1056162402   7812500   3.7G Linux filesystem
    /dev/sda7  1056162403 1951408127 895245725 426.9G Linux filesystem
    
    Partition 6 does not start on physical sector boundary.
    Partition 7 does not start on physical sector boundary.
    Partition table entries are not in disk order.
    

    I am using an Acer Aspire 5.
    Hopefully I have provided enough info.

    Thanks!

  • @xavier
    Hi,
    seems there are some issues with the (new) partitions sda5…sda7. How did you make the Linux partitions, did you first free some space in WIndows, and then repartitioned that space during Antergos install?

    Anyway, I guess you could try re-creating the Linux partitions, but manually make only one Linux partition instead of three.

  • @manuel
    Yes, I shrunk my main partition in Windows 10. During the Antergos install, I followed the steps of the official dual boot guide.

    Could you clarify how I would recreate the partitions, and what you mean by only one instead of three? We need three for boot, root, and swap, right? I also create a fourth for /home.

  • /boot and /home do not need their own partition, they can be hold also under one partition, as they will be mounted there anyway.

    /
    / home/
    / boot/

    And it is much more easy to recover system if partition table is simple.

    What i would do is to remove the 3 partitions you created for Antergos and leave space empty, or create one partition empty (not formatted) for CNCHI to create stuff for install.

  • @joekamprad
    Thanks for the response.

    I’m not really sure how I would set them up under the same partition in the Cnchi installer.
    Especially since I was under the impression to leave the /boot partition untouched, as I am creating a dual boot system.

    Would I be creating a new partition table?

  • @xavier
    Could you give a link to the dual boot guide you used?

    During install, instead of automatic partitioning you can select manual partitioning and construct your partitions as you like. It is often a hot debate how to partition your Linux system, but in simple cases only one partition is required, the root.

    Boot partition may be needed in special cases, but it is not a requirement for every install.

    Swap can be a partition or a file, and if you have lots of RAM, you probably don’t need to have swap. More: https://wiki.archlinux.org/index.php/Swap

    Home partition is used by many, but I personally don’t have it, because I believe in having a good backup system (a backup system is always a great idea!).

    So, to make things as simple as possible, I thought only one partition could do the trick (but naturally it is your choice).

  • @xavier
    No, don’t create a new partition table. It would wipe your disk (and Windows).

  • @xavier
    Cnchi gives you the opprotunity to make partitions as you wish.
    And you could also use program gparted to manage your (Linux) partitions.

  • @manuel I cannot link directly to the guide as Akismet is being a little stern. It is in the Antergos install wiki regarding Dual Boot for windows.

    I only have 4GB of RAM, so I thought I’d play safe and allocate some swap.

    I’ll have a go at putting root, swap, and home to the same partition.

  • @xavier
    You need to leave the EFI partition (/dev/sda1) untouched (i.e. don’t format/delete it!), only use it (mount) in Antergos for booting. And of course, don’t delete Windows partitions… unless you want to! ;)

  • @xavier
    OK, you may need a swap file (although simple/small apps don’t require it).

  • @manuel @joekamprad

    Same error, failing formatting the first partition. I removed the original partitions, pointed the boot mount to the fat32 EPS partition created by Windows, created a swap and root partition, and ran the next step, which halted at the partition creation error:

    2018-08-13 08:24:14 [INFO] advanced.py(2356) run_format(): Creating new swap filesystem in /dev/sda5
    
    2018-08-13 08:24:14 [ERROR] fs_module.py(262) create_fs(): Error running ['mkswap', '/dev/sda5']: b''
    
    2018-08-13 08:24:14 [ERROR] advanced.py(2365) run_format(): Couldn't format partition '/dev/sda5' with label '' as 'swap': Command '['mkswap', '/dev/sda5']' returned non-zero exit status 1.
    

    Not really sure where to go from here.

  • @manuel
    Update: I attempted to create and format the swap and root filesystem partitions using gparted, and get the error that /dev/sda5 is busy

  • @xavier
    Strange. BTW, is Windows hibernate and BIOS secure boot disabled?

  • @manuel I’m unsure how it is busy, as it was only just then created from unallocated space.

    BIOS secure boot is disabled. Not sure about hibernate… Although I’m afraid to reboot at this point, as last time it got stuck as I’m assuming somewhere in the disk preparation something happened?

  • @xavier said in Cnchi fails on formatting disk:

    Partition 6 does not start on physical sector boundary.
    Partition 7 does not start on physical sector boundary.
    Partition table entries are not in disk order.

    Partition 6 does not start on physical sector boundary.
    Partition 7 does not start on physical sector boundary.
    Partition table entries are not in disk order.
    

    i think these partitions has to be recreated?

  • @xavier
    Could you show the output of

    fdisk -l
    

    now?

  • @xavier said in Cnchi fails on formatting disk:

    pointed the boot mount to the fat32 EPS partition

    That’s wrong… https://antergos.com/wiki/install/how-to-dual-boot-antergos-windows-uefi-expanded-by-linuxhat/

    as the wiki suggested:

    alt text

    you will need to mount ESP / fat32 partition under /boot/efi and /boot itself is a folder inside Linux filesystem!

  • as the bootloader files will be stored inside /boot and using the files from ESP under /boot/efi for the boot process…

  • @manuel
    I had just deleted those partitions before you asked me, so it looks as such:

    [[email protected] ~]$ fdisk -l
    Disk /dev/sda: 931.5 GiB, 1000204886016 bytes, 1953525168 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: gpt
    Disk identifier: 3863E50E-0826-4F65-B67D-F27BBCB202FE
    
    Device          Start        End   Sectors   Size Type
    /dev/sda1        2048     206847    204800   100M EFI System
    /dev/sda2      206848     239615     32768    16M Microsoft reserved
    /dev/sda3      239616  979990527 979750912 467.2G Microsoft basic data
    /dev/sda4  1951408128 1953505279   2097152     1G Windows recovery environment
    

    @joekamprad , apologies for not being clear with my language. I followed that step exactly, and mounted that partition to /boot/efi

    @retrowertz , thanks. I have recently done so, and still face the same error.

cnchi161 fails50 disk15 formatting1 Posts 31Views 1064
Log in to reply
Bloom Email Optin Plugin

Looks like your connection to Antergos Community Forum was lost, please wait while we try to reconnect.