Page 90 of 126 FirstFirst ... 40808889909192100 ... LastLast
Results 891 to 900 of 1252

Thread: Howto make USB boot drives

  1. #891
    Join Date
    Nov 2011
    Location
    /dev/root
    Beans
    Hidden!

    Re: Howto make USB boot drives

    Thanks @C.S.Cameron,

    These details should be enough for me to reproduce the bugs that you see.

    I can start testing in my own computers now, but it may take some time until I can try with my son's Elitebook.

  2. #892
    Join Date
    Nov 2011
    Location
    /dev/root
    Beans
    Hidden!

    Re: Howto make USB boot drives

    Quote Originally Posted by C.S.Cameron View Post
    Computer 1: HP, Elitebook, 8560W, i7, BIOS, 24 GB RAM, Nvidia Quadro 2000, Windows 10 installed,

    Computer 2: Acer 8572, i5, BIOS, 8GB RAM, Ubuntu 18.04 upgraded from 16.06 (Unity) installed,

    Focal-desktop-amd64-2020-02-23, Tested "Persistent" and "usbdata" installs, 4GB Kingston Data Traveler USB2.

    After starting I get: "Oh no! Something has gone wrong... log out", with both 2.6.0 mkusb-plug "usbdata" and "persistent" installs. First few runs only.

    When shutting down I get ... Access beyond end of device, that scrolls for five to ten minutes. with persistent installs but not usbdata installs.

    When quitting Guidus12.4.4 Persistent, it now has message: "Please remove the installation medium then press enter" for both for both persistent and usbdata installs, I think this was happening with previous version also.

    All above items happen with both the HP and Acer.
    Quote Originally Posted by C.S.Cameron View Post
    - Ran mkusb-plug in the Elitebook from Full install of 18.04.3 in 32GB DataTraveler3.

    - Have not tried running mkusb-plug in Ubuntu Focal yet.

    - I ran mkusb-plug in Ubuntu 18.04 upgraded from 16.04.6 in the Acer.

    - I have tested with 'English US' only.

    -I made a live and persistent live drive of Ubuntu Focal using both guidus and mkusb-plug. Only the persistent mkusb-plug says ... Access beyond end of device. I will try installing to a different USB today.
    A race condition?

    I tested with a system created for this purpose in my Toshiba computer with a generation 3 Intel i5 CPU and 4 GB RAM booted in BIOS mode. This is different from your Acer, but maybe good enough for a comparison.

    - Ubuntu desktop 16.04.6 LTS and release-upgraded to 18.04 LTS and made up to date (with the 4.15.0-91 kernel series.
    -
    - Set up ppa:mkusb/unstable and installed mkusb mkusb-plug usb-pack-efi
    - Zsynced Ubuntu Focal iso file dated 2020-03-25 'focal-desktop-amd64.iso'
    Code:
    $ md5sum focal-desktop-amd64.iso
    99a91ca69ee9af5d6ff427d56cabcf8a  focal-desktop-amd64.iso
    - Used the USB 2 drive Kingston Datatraveler_G3 (an old and slow USB 2 drive with 4 GB, as similar as possible to what you used in your test).

    0. I wiped the whole Kingston USB device to make the conditions as good as possible.

    1. I used mkusb-plug making a live-only system with an NTFS partition:

    Everything worked as expected (as I wanted it to work) both when running mkusb-plug and when booting into the live-only system and running it.

    2. mkusb-plug making a persistent live system:

    Creating the system had this problem:

    partprobe could not refresh the partition table after creating the partition for persistence. There was an output from function 'prober' in 'mkusb-sedd':

    Code:
    function prober {
    
    pcnt=0
    partnr=/dev/$(lsblk -lno name "${target}" | sort | tail -n1)
    while [ "$partnr" == "$partn0" ]
    do
     if [ $pcnt -gt 10 ]
     then
      echo -e "$redback prober: cannot identify new partition made by fdisk $resetvid"
      echo -e "$redback This can sometimes be fixed via two steps $resetvid"
      echo -e "$redback 1. wipe the first mibibyte with mkusb-dus $resetvid"
      echo -e "$redback 2. unplug and replug the target drive.    $resetvid"
      echo -e "$redback Sometimes, if the drive is getting slow,  $resetvid"
      echo -e "$redback you need to wipe the whole target drive,  $resetvid"
      echo -e "$redback or reboot the computer to make this work. $resetvid"
      exit
     elif  [ $pcnt -gt 8 ]
     then
      echo -en "$redback Please unplug and replug the target drive, $resetvid
    $trgtxt
    $redback and then press the Enter key to continue $resetvid"
      read
      sleep 4
      umount "${target}*" 2> /dev/null
     fi
     partprobe 2> /dev/null
     delay=$(( 4 + pcnt ))
     sleep "$delay"
     pcnt=$((pcnt + 1))
     partnr=/dev/$(lsblk -lno name "${target}" | sort | tail -n1)
     echo "prober: $partnr for persistence"
    done
    }
    I followied the advice from 'prober': Unplugging and replugging did not help, but wiping the first mibibyte and rebooting helped. After that mkusb-plug worked as expected. I have seen this problem before (that is why I created the function 'prober'). There are less problems with fresh and responsive drives (so I recommend a fast USB 3 drive for persistence and/or other read-write partitions, but all drives can get tired, and then wiping the whole device will often help).

    The persistent live system had this problem:

    It seemed to work correctly when booted, but at shutdown there was the following complaint:

    Code:
    EXT4-fs error (device sdb3): ext4_free_branches:1019: inode £32962: block 133124: comm systemd-journal: Read failure
    This was preceded by several buffer I/O errors on dev sdb device sdb3.

    The error outputs were preceded by the output text "Please remove the installation medium, then press ENTER:"

    I pressed the Enter key and rebooted into the persistent live drive.

    The persistent live system could reboot and what I had saved was there (the bash history and a created text file).

    My experience is that mkusb-plug and persistent live systems are reliable with a faster and more responsive USB drive than this old USB 2 drive, but also an originally fast USB 3 pendrive (for example Sandisk Extreme) may need wiping (wipe the whole device with mkusb-dus).

    I repeated shutdown and had the error output again. But when tested in my main computer the file system seemed good,

    Code:
    $ LANG=C sudo e2fsck -f /dev/sdc3
    e2fsck 1.44.1 (24-Mar-2018)
    Pass 1: Checking inodes, blocks, and sizes
    Pass 2: Checking directory structure
    Pass 3: Checking directory connectivity
    Pass 4: Checking reference counts
    Pass 5: Checking group summary information
    writable: 1370/73872 files (6.0% non-contiguous), 138723/294912 blocks
    I will test with the same Ubuntu system and some other USB drives and update this post ...

    Edit 1:

    Test with a Kanguru SS3 14,8GiB (16GB) USB 3 drive creating the drive was successful (without wiping the drive before).

    But running the persistent live system has problems at shutdown. After the system has written "Please remove the installation medium, then press ENTER:" there is some maybe(?) harmless output: 'I/O error', but after a few more seconds there will be a lot of output about trying where it should not try,

    Code:
    Access beyond end of device
    Access beyond end of device
    ...'
    and there are errors in the persistent file system,

    Code:
    $ sudo e2fsck -f /dev/sdc3
    e2fsck 1.44.1 (24-Mar-2018)
    Superblockets senaste monteringstid ligger i framtiden.
    	(med mindre än en dag, förmodligen för att hårdvaruklockan går fel)
    Superblockets skrevs senast i framtiden.
    	(med mindre än en dag, förmodligen för att hårdvaruklockan går fel)
    Pass 1: Kontrollerar inoder, block och storlekar
    Pass 2: Kontrollerar katalogstruktur
    Pass 3: Kontrollerar katalogförbindelser
    Pass 4: Kontrollerar referensräknare
    Pass 5: Kontrollerar gruppsammanfattningsinformation
    Antal fria block är fel (3079575, räknade=2995601).
    Fixa<j>? ja
    Antal fria inoder är fel (796853, räknade=796697).
    Fixa<j>? ja
    
    writable: ***** FILSYSTEMET MODIFIERADES *****
    writable: 1415/798112 filer (5.6% ej sammanhängande), 191599/3187200 block
    But the persistent live system works as expected. The history and a saved file is still there.

    I have not seen this before, and it seems to be an error that is caused by a new bug maybe in the iso file, maybe in mkusb-plug. I will continue testing ...

    Edit 2:

    Test with a Sandisk Extreme 14,9GiB (16GB) USB 3 drive creating the drive was successful (without wiping the drive before).

    The result is the same with the Sandisk USB 3 drive as with the Kangaroo USB 3 drive (except that the numbers of free blocks are different, which is easy to understand because the exact sizes are different and other conditions may differ too).

    Code:
    $ sudo e2fsck -f /dev/sdc3
    [sudo] lösenord för olle: 
    e2fsck 1.44.1 (24-Mar-2018)
    Pass 1: Kontrollerar inoder, block och storlekar
    Pass 2: Kontrollerar katalogstruktur
    Pass 3: Kontrollerar katalogförbindelser
    Pass 4: Kontrollerar referensräknare
    Pass 5: Kontrollerar gruppsammanfattningsinformation
    Antal fria block är fel (3036205, räknade=3033889).
    Fixa<j>? ja
    Antal fria inoder är fel (806528, räknade=806514).
    Fixa<j>? ja
    
    writable: ***** FILSYSTEMET MODIFIERADES *****
    writable: 1326/807840 filer (6.0% ej sammanhängande), 192245/3226134 block
    I have the following focal iso files, and can try to find out if there is a difference between the oldest and newest versions, and in that case where the problem appeared. I would guess that the flavour makes no difference, but I can check for that too.

    Code:
    $ ls -ltr ../*/focal-desktop-amd64*.iso|cut -d ' ' -f 6-
    feb  6 07:01 ../ubuntu/focal-desktop-amd64-2020-02-06.iso
    feb  7 07:32 ../xubuntu/focal-desktop-amd64-2020-02-07.iso
    feb 12 16:00 ../lubuntu/focal-desktop-amd64-2020-02-12.iso
    mar 12 04:36 ../kubuntu/focal-desktop-amd64.iso
    mar 25 01:29 ../xubuntu/focal-desktop-amd64.iso
    mar 25 07:27 ../ubuntu/focal-desktop-amd64.iso
    mar 25 17:08 ../lubuntu/focal-desktop-amd64.iso
    Edit 3 and 4:

    In order to do things faster I tested in a Kingston SV300S37A60G SSD with 60 GB via a USB to SATA adapter:

    - Ubuntu Focal dated Februay 6 (before switching to 'writable', so uses 'casper-rw')
    - Kubuntu Focal dated March 12 (after switching to 'writable')

    work as expected (the bug described above does not affect these versions. Unfortunately I have saved no iso files between March 12 and March 25 (because I did not expect this bug to appear).

    This was promising. Then I tested also Lubuntu Focal dated March 25 (the same date as that of Ubuntu that failed. It worked in the SSD, but when tested in a 16 GB pendrive (the Kanguru drive described earlier) it failed. Is this a race condition like the problem that 'casper-rw' (now a second choice after 'writable') works only in some computers? Also the Kubuntu persistent live system is affected by this bug, when installed in the Kanguru pendrive.

    I tested the persistent live drives in two computers, a Dell Latitude E7240 and a Lenovo V130-14IKB both with Intel i5 processors and 8 GiB RAM.

    Edit 5:

    I continued testing on March 27, this time with a persistent live drive made from Ubuntu 20.04 LTS amd64 2020-02-06-08 in a Sandisk Extreme USB 3 16 GB pendrive, that was wiped (totally overwritten with zeros to be as responsive as possible.

    I created the persistent live drive in my main computer with Lubuntu 18.04.x, originally installed as 18.04.1 LTS and kept with the 4.15 kernel series. I used mkusb-plug.

    Such a persistent live drive has worked before, and the casper package is the old one inherited from Eoan using casper-rw. So I had to re-label the partition for persistence.

    I booted into the persistent live system in the Lenovo V130 (which I used also yesterday). There was persistence as expected.

    Normally I have pressed the Enter key, when "Please remove the installation medium, then press ENTER:" was written to the terminal window, and things were looking good. With the experiences from yesterday I waited a while, and yes, the spamming with

    Code:
    Access beyond end of device
    Access beyond end of device
    ...'
    started also in this case.

    The computer was shut off directly after pressing the enter key. After that I moved the pendrive to the main computer and checked the file system of the partition for persistence. I repeated the procedure above adding some data to persist, and the file system was clean.

    Code:
    $ sudo e2fsck -f /dev/sdc3
    e2fsck 1.44.1 (24-Mar-2018)
    Pass 1: Kontrollerar inoder, block och storlekar
    Pass 2: Kontrollerar katalogstruktur
    Pass 3: Kontrollerar katalogförbindelser
    Pass 4: Kontrollerar referensräknare
    Pass 5: Kontrollerar gruppsammanfattningsinformation
    casper-rw: 1626/811008 filer (7.0% ej sammanhängande), 177838/3242006 block
    So my conclusion is that this 'access beyond end of device' is a bug, but maybe a bug we can live with because it appears only after the system is ready for shutdown/reboot. In some cases the number of free blocks and free inodes are correct, in other cases they are not correct, but persistence seems to work and the mismatches can be corrected without damaging the stored data.

    Edit 6:

    The beta versions of the Focal iso files are still suffering from this bug, but I have a feeling that they behave slightly better than the iso files made one or two weeks earlier.
    Last edited by sudodus; April 2nd, 2020 at 09:37 AM.

  3. #893
    Join Date
    Nov 2011
    Location
    /dev/root
    Beans
    Hidden!

    Re: Howto make USB boot drives

    I continued with tests of persistent live drives made with mkusb-dus

    - USB pendrive: Sandisk Extreme 16 GB
    - The persistent live system was created in my main computer with Lubuntu 18.04.x LTS
    - The persistent live system was tested in the Lenovo V130 (which I used also yesterday).

    - focal-desktop-amd64-2020-02-06.iso

    The action looked good at first but behind the Plymouth interface the same thing is happening. You see a gimpse of it after pressing the Enter key after "Please remove the installation medium, then press ENTER:" was written to the terminal window.

    Turning off quiet splash in the grub menu makes messages at shutdown look the same as for persistent live systems made with mkusb-plug.

    - focal-desktop-amd64-2020-03-25.iso

    The action at shutdown does not happen behind the Plymouth interface. Instead there is only a cursor at the top left corner. Actually the system is waiting for you to press the Enter key (but it does not tell you so). After pressing the Enter key you get all those silenced messages ( the same as for persistent live systems made with mkusb-plug). Maybe this indicates another (minor?) bug or system change that makes it hard for mkusb (not only the 'access beyond end of device' bug).

    In both cases persistence works, and (at least in the test of this post) the file system of the partition for persistence was healthy.

    This confirms the conclusion at the end of the previous post: This is a bug, but it does not affect persistence. However it is ugly and makes it more difficult to use a persistent live drive.



    Edit: If the iso file of the released Ubuntu 20.04 LTS will behave in the same way, I will try hard to work around these bugs, but right now I don't know how to do it. At least I should remove quiet splash from grub.cfg of persistent live drives made with mkusb-dus so that the users can see "Please remove the installation medium, then press ENTER:".
    Last edited by sudodus; March 27th, 2020 at 08:36 PM.

  4. #894
    Join Date
    Nov 2011
    Location
    /dev/root
    Beans
    Hidden!

    Re: Howto make USB boot drives

    Quote Originally Posted by sudodus View Post
    ... but it may take some time until I can try with my son's Elitebook.
    A persistent live drive made with mkusb-dus from the current (2020-03-27) daily Lubuntu Focal iso file works in an HP Elitebook 8560p booting in BIOS mode with an Intel generation 2 i5 CPU, when using an MSDOS partition table.

    As usual a pendrive made with mkusb-dus and GPT did not boot.

    I tried also with a persistent live drive made with mkusb-plug from the current (2020-03-28) Ubuntu daily Focal iso file. It booted and worked like in the more modern computer described in a previous post, but it booted very slowly. This old computer works significantly faster with Lubuntu (compared to Ubuntu) Focal.

    The same 'access beyond end of device' bug affects the persistent live drives also in this computer.

  5. #895
    Join Date
    Mar 2020
    Beans
    2

    Re: Howto make USB boot drives

    Hey Guys,

    I would like to create a multi-boot usb that I can put just the iso images of different older operating systems (such as ms-dos 6.22, windows 3.1, up to windows xp) and also ubuntu as this will be for emergency installs and to run some of my older dos/windows programs I have on cd-rom. Is there such a tool or can I do this with grub? I have just started to learn a bit about the grub config in linux so bare with me, I am totally lost with working that way. Any help would be greatly appreciated. If there is a tool that could do such a thing, that would make my day, and boy could I use that!

    Thank you in advance!
    Brian

  6. #896
    Join Date
    Nov 2011
    Location
    /dev/root
    Beans
    Hidden!

    Re: Howto make USB boot drives

    @jesterb,

    I suggest that you try multiboot-usb by Sundar.

    If you need more details, I refer to C.S.Cameron, who is active at these Ubuntu Forums and knows better than I how to create multiboot USB drives. He has written several posts here and at AskUbuntu describing how to create what you want. So let us wait for advice from him.
    Last edited by sudodus; March 31st, 2020 at 08:12 AM.

  7. #897
    Join Date
    Jun 2007
    Location
    Hikkaduwa, Sri Lanka
    Beans
    3,449
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: Howto make USB boot drives

    I think Windows install tool (https://www.microsoft.com/en-us/down...-download-tool) only works with one Windows ISO at a time as does Rufus (https://rufus.ie/)

    YUMI (https://www.pendrivelinux.com/yumi-m...t-usb-creator/) and MultiBootUSB (http://multibootusb.org/) don't boot Windows ISO's but are great with Linux ISO's

    I have heard positive things about, but not tried WinSetupFromUSB (https://www.winsetupfromusb.com/downloads/) and Easy2Boot (https://www.easy2boot.com/) Both say they will multiboot Windows and Linux ISO's.

    I would not be surprised if there was an easy way to get mkusb to multiboot Windows ISO's.

  8. #898
    Join Date
    Nov 2011
    Location
    /dev/root
    Beans
    Hidden!

    Re: Howto make USB boot drives

    Quote Originally Posted by C.S.Cameron View Post
    ...

    I would not be surprised if there was an easy way to get mkusb to multiboot Windows ISO's.
    Whoever can develop mkusb for this purpose is welcome, either to include it in mkusb or to fork it into a new tool



    I store iso files in my main computer and use USB pendrives as temporary devices: So whenever I need a USB boot drive I create it from the relevant iso file (usually with mkusb-dus or mkusb-plug).

    For this reason I have focused on single boot systems.

  9. #899
    Join Date
    Mar 2020
    Beans
    2

    Re: Howto make USB boot drives

    Quote Originally Posted by sudodus View Post
    @jesterb,

    I suggest that you try multiboot-usb by Sundar.

    If you need more details, I refer to C.S.Cameron, who is active at these Ubuntu Forums and knows better than I how to create multiboot USB drives. He has written several posts here and at AskUbuntu describing how to create what you want. So let us wait for advice from him.
    Thanks sudodus,

    I have tried downloading multiboot-usb, and my usb drive is not detected in that program, but it is in Ubuntu linux 18.04. I have formatted to ext4. Not sure if it needs to be fat32 or ntfs. As a side note: Although there were no files on the usb drive, I just did a format using linux disks application, I did not choose to erase. Could that be why it is not detected in the multiboot-usb program? I am testing in a virtualbox vm at the moment, I don't want to do a refresh yet, but it looks like I am going to do it now.
    Last edited by jesterb; March 31st, 2020 at 02:51 PM.

  10. #900
    Join Date
    Nov 2011
    Location
    /dev/root
    Beans
    Hidden!

    Re: Howto make USB boot drives

    Quote Originally Posted by jesterb View Post
    Thanks sudodus,

    I have tried downloading multiboot-usb, and my usb drive is not detected in that program, but it is in Ubuntu linux 18.04. I have formatted to ext4. Not sure if it needs to be fat32 or ntfs.
    I don't know which file systems that work with multiboot-usb. Please try with another file system. Unfortunately there are Windows iso files that are too big for FAT32, > 4 GiB, but maybe it works with NTFS.

    As a side note: Although there were no files on the usb drive, I just did a format using linux disks application, I did not choose to erase. Could that be why it is not detected in the multiboot-usb program?
    It should be OK to just format using Disks. You should not need to erase. But if still problems, you can erase only the first mibibyte which is very fast. You can do that with mkusb. And then there should be no traces of previous partition tables or file systems that might confuse the partitioning tool (Disks) or multiboot-usb.



    Please have a look at the tips by C.S.Cameron at this link and let us know what works best for you
    Last edited by sudodus; March 31st, 2020 at 02:16 PM.

Page 90 of 126 FirstFirst ... 40808889909192100 ... LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •