Installing Ubuntu 24.04.2 LTS on Samsung Galaxy Book S with UFS Drive fails with sfdisk I/O Error

Hi all!

I’m trying to wipe Windows and install Ubuntu 24.04.2 LTS as the sole OS on a Samsung laptop.
Ubuntu boots just fine from USB with ubuntu-24.04.2-desktop-amd64.iso.
However, the installer fails during partitioning with the error:

sfdisk: cannot open /dev/sda: Input/output error

Hardware:
Laptop: Samsung Galaxy Book S
Internal storage: SAMSUNG KLUEG8UHDB-C2D1 (UFS module, 256 GB)

Symptoms:

  • sfdisk: cannot open /dev/sda: Input/output error
  • ls /dev/sd* shows /dev/sda but no partitions
  • smartctl fails early on. With -T permissive it doesn’t technically fail but still returns no info (no temperature, no SMART logs, etc.)
  • I tried Lubuntu 22.04 instead, to the exact same effect
  • Doing a partial installation alongside windows runs into the same issue

From Windows:

  • The drive shows up fine under “Disk Drives” in Device Manager
  • No errors or issues reported
  • wmic diskdrive get status returns “OK”
  • CrystalDiskInfo fails to find the drive though

BIOS Info:

  • Drive is listed in BIOS correctly with model number
  • Secure Boot is off

Trying a diagnosis with ChatGPT (Just so you know: If any of this sounds super-odd it’s on them :wink: ) it may be a UFS driver issue?

Has anyone installed Ubuntu on a UFS-based system before?
Any way to include the relevant driver in the installation process?
Also: I’m neither fixed on the version nor flavour of Ubuntu. Any hint to a flavour/version combo that may install on this machine would be much appreciated!

Thank you!

You may have to use Ubuntu 24.10 with kernel 6.11
Similar but not identical thread here

Thank you @tea-for-one !

I had come across that post in my search but thought it unrelated since my error occurs at a different stage. Sorry for missing that.

Anyway:
I tried installing Lubuntu 24.10 (Oracular Oriole) just now.
Sadly: The installer still returns the same kind of error (being unable to create a partitioning table) upon running sfdisk --wipe=always /dev/sda :confused: .

From the man page:
https://linux.die.net/man/8/sfdisk

If you had Windows 10 or 11 installed previously, then the disk was most likely GPT.

1 Like

Did you try the Lubuntu Partition Manager?
Failing that, try Gparted in Ubuntu 24.10

Would it be possible to destroy the partitions from a Ubuntu live boot?

Dear all,

Thanks for all your input!

I haven’t gotten around to trying Lubuntu Partition Manager / Gparted yet - mostly because I feel rather insecure about it:
Even if I can manually partition the drive (and I wouldn’t know which partitions / what sizes to create in the first place):

Wouldn’t the installer still attempt and fail to create partitions afterwards?
Can I get the installer to pick up the installation process after me repartitioning / wiping the drive?

(And if this is too short notice before the topic closes: Nevermind, the delay is clearly on me.
Thank you all!)

Use either Lubuntu partition manager or Gparted to create a GPT partition table.

Example:-
Open gparted > Select disk > Device > Create Partition Table > Select gpt
(Must be similar for Lubuntu partition manager)

Once you have created a partition table, then allow the installer to automagically create the partitions.

1 Like

This topic was automatically closed after 30 days. New replies are no longer allowed.

Topic reopened at the request of the OP to continue troubleshooting the issues.

The steps provided by others are exactly what you need to do.

We hope not, that’s why we’re suggesting this :slight_smile:

Yes. This is a very, very common thing to do. I have frequently had to “zap” a drive and re-create the partition table, or just wipe the first few MB of the disk to get a clean start.

Here’s the full set of steps:

  1. Boot from a live USB of Ubuntu 24.10 (or a flavor like Lubuntu 24.10).
  2. Once in the live session, open a partitioning tool like GParted (available by default in Ubuntu).
  3. In the partitioning tool, select the internal UFS drive (likely /dev/sda), delete existing partitions, and then click :white_check_mark: Apply.
  4. Create a new GPT (GUID Partition Table) on the drive.
    • For GParted, this is typically done by selecting the disk, then going to “Device” > “Create Partition Table…” and choosing “gpt” from the list.
  5. After the GPT has been successfully created, close the partitioning tool.
  6. Run the Ubuntu (or Lubuntu) installer from the live session.
  7. When you reach the partitioning step in the installer, choose the option to allow the installer to automatically create partitions or proceed with “Install alongside” or “Erase disk and install Ubuntu,” as the drive should now be properly initialized with a GPT.

This method aims to prepare the UFS drive with a compatible partition table structure before the installer attempts its own sfdisk operations, which might bypass the input/output error. It seems you have not yet attempted this specific step of manually creating a GPT partition table before running the installer again.