Comments (13)
In general, the "No root partition defined" error message means that there is a partition table which is unsupported for an automatic installation.
There are 3 different cases:
- It is the partition table of the device where you want to install Ubuntu.
- It is the partition table of a device where you don't want to install Ubuntu.
- It is the partition table of the virtual partition (root.disk).
IMHO possible solutions are:
- The easiest workaround for case 1 is that you try to install Ubuntu on another device (e.g. an external USB drive) and for case 2 that you try to disconnect unused devices. You can test that workaround with try and error or we need more information (see below).
- A more advanced workaround for case 1 and case 2 is to change the unsupported partition table that it is supported. In that case we need more information. (see below).
- The most wanted but most difficult solution is to change the automatic installation. It is the solution of the wiki for case 3 and sometimes for case 1 and 2. In that case we also need more information.
If we need more information, you can run Ubuntu in demo mode.
After the first restart it should display:
Completing the Ubuntu installation.
For more installation boot options, press `ESC' now...
There you can press ESC
and then you can select "Demo mode" in the following menu:
Normal mode
Safe graphic mode
ACPI workarounds
Verbose mode
Demo mode
The demo mode is a kind of live CD. It also contains an installer which does not use the Wubi configuration. So if you want to install with Wubi, don't use it. If you want to install without Wubi, you can use it with the limitation that some used partitions are locked.
But if you want only more information, don't use the installer. Open a terminal and type
sudo parted --list
from wubiuefi.
using parted to list my partitions gave me 4 different "drives", and they're all marked as MMC memory. I'm guessing that means this is like an SSD, but I've never used one before so I don't know for sure.
The main drive that's 32 GB says the table type is GPT, the sector size is 512b/512b, and there's 5 partitions.
I unplugged the microSD card before booting into ubuntu as well, didn't affect the installer in any way.
also before running parted --list I got an error saying error fsyncing/closing /dev/mmcblk0rpmb: Input/output error retry/ignore? Ignoring gave me the results I typed already.
from wubiuefi.
error fsyncing/closing /dev/mmcblk0rpmb
IMHO it is a RPMB (Replay Protected Memory Block) of an embedded MMC (eMMC). RPMBs are used to store OEM security keys and therefore they are protected. We don't need to get access to a RPMB for installation of Ubuntu but it is necessary to handle errors if the installer lists all partitions with parted.
There is also an existing bug 1456443 for the installer. The fix should be released for several Ubuntu versions but maybe it only fixes some but not all errors.
IMHO it is not really a Wubiuefi bug but the bug affects Wubiuefi, too. I don't know if you ever have tried an Ubuntu installation without Wubiuefi on your Yoga 2. IMHO there are more possibilities.
We will try to find a solution for Wubiuefi, too. But I don't think we will get it soon.
from wubiuefi.
Well, I could use the boot entry made by Wubiuefi to install ubuntu normally, but I would assume tht would make things messy and screw things up UEFI and Windows side. I would try installing ubuntu normally, but this Yoga 2 tablet doesn't have full size USB ports so I can't boot a live USB. There's no ethernet port either so I can't do netbooting. the SD card isn't used to boot from either. So wubi is my only option outside of buying a USB OTG adapter.
from wubiuefi.
I understand you. IMHO it is possible to fix it soon, if we can reproduce the issue on a testing machine. After reproducing we are able to analyze the logs in /var/log, change the installer and try it again. But that's the problem. Currently, on our testing machines we don't have the issue and I assume that it would be not easy for you to send us all logs we need.
from wubiuefi.
Currently, I try to create an alternate installer for "demo mode", if an auto installation is not possible. I have questions for you:
- Can you confirm that the issue also occurs on Ubuntu 16.04 ? The iso for 15.10 was built on 21th Oct 2015. But I am not sure if all fixes for bug 1456443 were really released in time.
- Do you have write access to Windows partition with virtual Wubi disk (root.disk) ? Demo mode should mount your Windows partition as /isodevice and Wubi disk should appear as /isodevice/ubuntu/disks/root.disk.
The terminal command:
cat /proc/mounts | grep isodevice
should show something like this:
/dev/mmcblk0p2 /isodevice fuseblk rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other,blksize=4096 0 0
rw means write access, ro means read only access
from wubiuefi.
The issue does still persist and I DO have write access.
from wubiuefi.
I DO have write access.
That is good news. Meanwhile, I created a script for Ubuntu 16.04 to install Wubi from "demo mode". Due to the upload file type restrictions I changed the file type from .sh to .txt, but it doesn't matter.
How it works:
The script formats your empty virtual Wubi disk and copy the unchanged base files of the live system to it. Then it adds some Wubi files and removes files which are only needed for a live system. On EFI computers, it also adds an EFI configuration. Finally, the script creates two configuration files. The configuration files are used to add your user account and other personal settings after next reboot.
- Download the script: wubiinstall.txt
wubiinstall.txt(*) - Boot into "demo mode". In folder /isodevice/ubuntu/disks should be your virtual Wubi disk (root.disk).
- Run the script from a terminal. e.g.: if you download it on Windows
sudo /isodevice/Users/Windowsusername/Downloads/wubiinstall.txt
or if you download it on Ubuntu in demo mode
sudo sh Downloads/wubiinstall.txt
- If the script says
-> done
, you can check the work of the script (optional). The root.disk is mounted as /target
cat /target/etc/fstab
/host/ubuntu/disks/root.disk / ext4 loop,errors=remount-ro 0 1
PARTUUID=12345678-1234-1234-1234-123456789abc /boot/efi vfat umask=0077 0 1
The second line is for EFI systems only. A third line for swap.disk will be added after next reboot.
Your personal Wubi configuration:
cat /host/ubuntu/install/preseed.cfg
- If you think, all looks good, you can just reboot.
(*) edit: 1.4.2017 new version of the script
from wubiuefi.
That seemed to do the trick! Booting into wubi looks and feels like a normal install now. I have an issue with my install size being too small and wanting to move my home directory somewhere else but that's for another topic, alongside installing missing network and bluetooth and display drivers.
from wubiuefi.
That seemed to do the trick!
That is good news.
I have an issue with my install size being too small
The standard Wubi install uninstalls a lot of packages (e.g. unused language packages). My script uninstalls only few packages of the installer.
Maybe, it helps if you uninstall unused packages and if you clean your package cache.
sudo apt-get clean
If you need space on the Windows side, you can remove the content of the folder /host/ubuntu/install with the Ubuntu iso image.
from wubiuefi.
Ubuntu and Windows aren't the issue for small space, this tablet-top has only 9gb of free usable space and the 5 GB install eats up a large portion of it. I'd want to move it to the 64GB microSD card but I'm not sure if this machine's bios reads from it at boot. Maybe GRUB would have to be involved to run from it? And if that's the case then a wubi install is irrelevant, isn't it?
from wubiuefi.
It is not necessary that your 64GB microSD card is bootable. Wubi uses always the EFI partition of your Windows installation to boot.
It should work, if you format your 64GB microSD card with NTFS (fat32 should also work, but it is less stable and doesn't support large files) and then simply install Ubuntu to the new Windows drive.
It is also possible to move an existing install to a new drive: Copy wubildr.mbr, wubildr to the new drive and move folder ubuntu to the new drive. It should work that you can boot into the GRUB menu. There press e
to edit the first menu entry for Ubuntu. You see something like this:
gfxmode $linux_gfx_mode
insmod gzio
insmod ntfs
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 ACE2DD0A5DDD5135
else
search --no-floppy --fs-uuid --set=root ACE2DD0A5DDD5135
fi
loopback loop0 /ubuntu/disks/root.disk
set root=(loop0)
linux /vmlinuz root=UUID=ACE2DD0A5DDD5135 loop=/ubuntu/disks/root.disk ro quiet splash $vt_handoff
initrd /initrd.img
Change it to:
gfxmode $linux_gfx_mode
insmod gzio
insmod ntfs
search -s -f -n /ubuntu/disks/root.disk
probe --set=diskuuid -u $root
loopback loop0 /ubuntu/disks/root.disk
set root=(loop0)
linux /vmlinuz root=UUID=$diskuuid loop=/ubuntu/disks/root.disk ro quiet splash $vt_handoff
initrd /initrd.img
Press F10
. After successful reboot, you can write a new grub.cfg with
sudo update-grub
from wubiuefi.
@sokkycakes Meanwhile a new version has been released which should fix your issue(s). A least the first issue that you can install Ubuntu on the Windows drive but maybe also your second issue that you can install on the 64GB microSD. It depends on the linux name of your devices. If the device name is /dev/mmcblk0, /dev/mmcblk1, and so on, the new version should work.
from wubiuefi.
Related Issues (20)
- Ubuntu MATE only runs in live session HOT 2
- Installation fails claiming that the file is in use by another process HOT 2
- Unable to build project HOT 12
- Grub config's not present HOT 1
- Ubuntu disappeared from Grub menu HOT 1
- wubi no longer opens after using wubi-uninstall HOT 1
- Support for 22.04.2 HOT 4
- Won't show boot options after first system restart on Macbook HOT 1
- When selecting Reboot now after installing ubuntu I get a BitLocker Recovery screen windows 10 HOT 1
- Release upgrade from 20.04 to 22.04 possible without issues? HOT 7
- wubi22041r345 isolist.ini redirect error HOT 7
- Laptop: Installation OK, Bootloader shows "Kunbuntu" but then I get Windows only HOT 6
- upgrade from 18.04 to 20.04 HOT 5
- Kubuntu 23.10 update-grub fatal error HOT 3
- Upgrading from 23.04 to 23.10 with only liquorix kernel - grub problems HOT 10
- https://github.com/hakuna-m/wubiuefi/issues/310# HOT 6
- Update Wubiefi installer to the latest version 23.10 HOT 1
- "Error: device name already exists" at boot HOT 2
- Issue with Keyboard and Mouse Not Working after Kernel Update HOT 1
- Update Wubiuefi installer to the latest version 24.04 LTS (Noble Numbat) HOT 12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wubiuefi.