Skip to content
This repository has been archived by the owner on Dec 8, 2023. It is now read-only.

Booting from USB device leads to mounting error #527

Closed
joda01 opened this issue Jun 24, 2020 · 4 comments · Fixed by #553
Closed

Booting from USB device leads to mounting error #527

joda01 opened this issue Jun 24, 2020 · 4 comments · Fixed by #553
Labels
kind/bug Something isn't working
Milestone

Comments

@joda01
Copy link

joda01 commented Jun 24, 2020

Version (k3OS / kernel)
v0.11.0-m2
5.4.0-37

Architecture
amd64

Describe the bug
When trying to install K3OS from USB stick an error: already mounted or moint poit busy error occurs

To Reproduce

  • Flash the ISO to USB stick.
  • Boot from USB stick to live system.
  • Start installer with sudo k3os install

Expected behavior

  • Installation should start

Actual behavior

  • Installation interrupted with error already mounted or moint poit busy error

Additional context

@joda01 joda01 added the kind/bug Something isn't working label Jun 24, 2020
@joda01
Copy link
Author

joda01 commented Jun 24, 2020

When generating a bootable USB device from the generated iso, 4 partitions are generated. But the device represent itself as just single partition device. For mounting the mount point /dev/sdb must be used not as expected /dev/sdb3. Mounting sdb3 leads to an error already mounted or moint poit busy error occurs.

In the install.sh script the function get_iso() is looking for the partition named K3OS. Such a partition is found at /dev/sdb3. Now the install script tries to mount sdb3 but it has to mount sdb instead because of the special structure of the partition table of the USB device.

I suggest a workaround in the install.sh script to remove the number at the end of sdx devices before mounting.

See the quick and dirty workaround on my fork: https://github.com/joda01/k3os/blob/%231_boot_error_from_usb/install.sh line 218 to 222.

@Kampe
Copy link

Kampe commented Jul 1, 2020

We're seeing this same issue attempting to install via bootable USB with RC1

@scalpel4k
Copy link

same here. the patch works like a charm. thx

@dweomer
Copy link
Contributor

dweomer commented Jul 29, 2020

#528 does not work on my NUC hardware. I get the mount point busy for the /dev/sdb. I will try to adapt it to try the old way first, then try the bare device.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants