clearlinux / clr-installer

Clear Linux* OS Installer
GNU General Public License v3.0
92 stars 43 forks source link

[fail] Mount /dev/nume0n1p8 /tmp/install-425975728 ext4: no such file or directory #780

Open FossPrime opened 2 years ago

FossPrime commented 2 years ago

Describe the bug Installer failed to find the newly created ext4 parition. Using Manjaro I was able to see that it existed, but was completely empty. another possibility is that the /tmp/install-425975728 mount point did not exist.

To Reproduce Steps to reproduce the behavior:

  1. Try to install Clear Linux on an Asus UX8402
  2. Use the TUI and get to the Installation media screen
  3. Use the included partition editor to delete a 256GB partition
  4. Select safe installation mode and choose the main NVME drive

Screenshots PXL_20220828_195529500 MP

Environment (please complete the following information):

Additional context It created an EFI partition and an EXT4 partition... but the partition was empty when I looked at it with another distro. This may be a race condition.

Error screen The Installer will now exit. mount /dev/nume0n1p8 /tmp/install-425975728 ext4: no such file or directory Error Trace: storage mountFs ( /builddir/build/BUILD/clr-installer-2.7.3/storage/utils.go:34 storage, (BlockDevice).Mount() /builddir/build/BUILD/clr-installer-2.7.3/storage/block_devices_ops.go:283 clrlinux@clr-live"
hajes commented 1 year ago

same issue ls /tmp

there is no install-xxxxxxx folder...thus nothing to mount

udif commented 1 year ago

same here, on 39930. It seems that the /tmp mountpoint was not created.

hajes commented 1 year ago

I have found out that one must not play with partitions, and simply let the installer work automatically.

Custom partitions always resulted in failure in my case.

udif commented 1 year ago

Yes, I found out myself too.

In my case I had a new disk, and I wanted only 500GB allocated, so I had to create another partition and leave an empty space in the desired size. More precisely, I created a 500GB partition on an empty disk, then another partition on the remaining disk space, and then erased the original 500GB partition, to leave an empty 500GB hole at the beginning of the disk.

I also found out that following the advice in https://github.com/clearlinux/clr-installer/issues/789 , calling clr-install or clr-install-gui with the -c flag and a previous configuration did not help (a segmentation fault error), and also caused an existing partition to be erased :-( Since that was an empty disk with empty partitions this was not a problem, but still should not happen.

ThaDaVos commented 3 months ago

I was running into the same issue when using a configuration file with below:

block-devices:
  - name: bdevice
    file: /dev/nvme0n1

targetMedia:
  - name: ${bdevice}
    type: disk
    children:
      - name: ${bdevice}1
        fstype: vfat
        mountpoint: /boot
        size: "150M"
        type: part
      - name: ${bdevice}2
        fstype: swap
        size: "32M"
        type: part
      - name: ${bdevice}3
        fstype: ext4
        mountpoint: /
        size: "0"
        type: part

Funny thing - if you retry the installer right after, it works - so probably it's not waiting long enough and discarding an internal error somewhere