by Bluescreens · 9y ago · 0 comments
Basically what I did previously was use Distroshare to create an iso, which could then be burned to USB using Unetbootin. Unetbootin did its own magic, but it worked. Now I have a two partition USB-stick, one with /boot & /EFI, the other holding the e.g. ubuntu-16 iso. The default one from Canonical boots just fine, but not my custom version.
I did it that way because I thought it'd be handy. If you could give pointers on how to create a live USB image, I'd greatly appreciate it ;). Also, it's all Ubuntu (16.04 & 14.04).
Did peak into the source-code of the UEFI-beta version. Seems they are also using grub2 the way I am generally. (basically the grub-install --target=x86_64-efi type /boot & /EFI folders).
That's the part that _is_ working for me. It seems that my casper/filesystem.squashfs is missing a few mystery 'things'. You have any cluess regarding that?
1) you can get EFI to load grub but 2) actually loading the live system image isn't working
So given those assumptions my next question is:
Is the kernel and initramfs loading? If you're not sure try:
* holding shift to display the grub boot menu on power up
* hitting 'e' to edit the default boot menu
* removing 'splash' from the kernel command line so you can observe boot messages
* continue booting by hitting ctrl+x
See if you can glean some more info from that
(initramfs) losetup: could not find any free loop devicet go on FAT32 partitions.
[I somehow can´t seem to get the formatting to stick with this next part, sorry :S]
After:
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/nfs-top ... done.
Begin: Running /scripts/nfs-premount ... done.
Begin: Running /scripts/casper-premount ...
[ 10.177576] random: nonblocing pool is initialized
[10.473862] SGI XFS with ACLs, security attributes, realtime, no debug enabled
[10.479729] JFS: nTxBlock = 8192, nTxLock = 65536
[10.627678] EXT4-fs (sda3): mounted filesystem with ordered data mode. Opts: (null)
[10.776705] FAT-fs (sdb1): error, fat_get_cluster: invalid cluster chain (i_pos 1)
[10.776720] FAT-fs (sdb1): Filesystem has been set read-only
[11.029557] EXT4-fs (sdb3): mounted filesystem with ordered data mode. Opts: (null)
done.
Begin: ...waiting for devs... ... done.
touch: /dev/.initramfs/lupin-waited-for-devs: No such file or directory
stdin: Not a typewriter
mount: mounting /dev/sdb1 on /isodevice failed: Input/output error
warning: Cannot mount /dev/sdb1 on /isodevice
stdin: Not a typewriter
[11.689807] FAT-fs (sdc1): Volume was not properly unmounted. Some data may be corrupt. Please run fschk.
[11.740150] EXT4-fs (sdc2): mounted filesystem with ordered data mode. Opts: (null)
done.
ioctl: LOOP_CLR_FD: No such device or adress
[12.524128] EXT4-fs (loop0): mounted filesystem with ordered data mode. Opts: (null)
ioctl: LOOP_CLR_FD: No such device or address
ioctl: LOOP_CLR_FD: No such device or address
ioctl: LOOP_CLR_FD: No such device or address
stdin: Not a typewriter
[13.247442] FAT-fs (loop0): error, fat_get_cluster: invalid cluster chain (i_pos 1)
[13.870988] EXT4-fs (loop1): mounted filesystem with ordered data mode. Opts: (null)
ioctl: LOOP_CLR_FD: No such device or address
ioctl: LOOP_CLR_FD: No such device or address
stdin: Not a typewriter
ioctl: LOOP_CLR_FD: No such device or address
unable to open '/dev/sdc'
ioctl: LOOP_CLR_FD: No such device or address
[18.328866] EXT4-fs (loop1): INFO: recovery required on readonly filesystem
[18.329151] EXT4-fs (loop1): write access will be enable during recovery
[18.356624] EXT4-fs (loop1): recovery complete
[18.367799] EXT4-fs (loop1): mounted filesystem with ordered data mode. Opts: (null)
ioctl: LOOP_CLR_FD: No such device or address
ioctl: LOOP_CLR_FD: No such device or address
/init: line7: can't open /dev/sr0: No medium found
/dev/sr0: No medium found
stdin: Not a typewriter
ioctl: LOOP_CLR_FD: No such device or address
[27.398618] hidraw: raw HID events driver (C) Jiri Kosina
[27.401012] usbcore: registered new interface driver usbhid
[27.401366] usbhid: USB HID core driver BusyBox v1.22.1 (Ubuntu 1:1.22.0-15ubuntu1) built-in shell (ash)
Enter 'help' for a list of built-in commands.
(initramfs) losetup: could not find any free loop devicet go on FAT32 partitions.
/dev/sdc is the location of my usb stick when I'm running my regular, hdd booted OS.
The errors seem just... weird... It's not even technically out of loops for as far as I know, because those could go all the way up to device loop7.Yumi used to have a linux version, but it seems to be under rewrite.
You could try using wine I guess?