Page 81 of 81 FirstFirst ... 3171798081
Results 801 to 803 of 803

Thread: Howto make USB boot drives

  1. #801
    Join Date
    Sep 2011
    Location
    Pennsylvania, U.S.A.
    Beans
    2,673
    Distro
    Ubuntu Development Release

    Re: Howto make USB boot drives

    Quote Originally Posted by sudodus View Post
    @marks2,

    Instead of fighting with a persistent live system, you can try to create an installed system in a fast USB 3 pendrive or an SSD connected via USB 3 or eSATA. This way you will get a system, where is it possible (maybe even easy) to install the Intel microcode, that you want. I am running such systems successfully, and I find them stable.

    See this link with details to help with the installation: How do I install Ubuntu to a USB key? - install like into an internal drive
    I've done this as well, installed to a generic USB3 flash drive. It seems to work fine though it's slower than installing to a HDD or SDD. My machine having USB2 ports didn't help anything, I'm sure. I can't comment about durability, i haven't used it that much. it used to be recommended to use an ext2 file system to reduce writes (no journal) but I've also read that the latest iterations of of ext4 don't produce much more flash wear than ext2. Just take your time and put the bootloader on the correct drive.

  2. #802
    Join Date
    Jul 2018
    Beans
    12

    Re: Howto make USB boot drives

    @sudodus, Ubuntu 18.10 has been released, mkusb works fine, I'm writing from persistent Ubuntu.
    Side note:
    I've got an error printed out in the terminal while using mkusb:
    - sed:tweak 3 grub.cfg
    Failed Check carefully what happened
    But as I said, it had no effect, at least so far, on operating system's usability.
    Last edited by boqsc; 16 Hours Ago at 06:01 PM.

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

    Re: Howto make USB boot drives

    @boqsc ,

    The error output you refer to is caused by the following code in the file dus-persistent of mkusb.

    Code:
    # tweak 3 grub.cfg
    
    # search by UUID
    
    partprobe
    mount "$part" "$targ1" 2>&1
    uid4="$(lsblk -Po name,uuid "${tu}4"|cut -d '"' -f 4)"
    if [ "$uid4" != "" ]
    then
     sed -i "s/set root=(hd0,4)/search --set=root --fs-uuid $uid4/" "$targ1"/boot/grub/grub.cfg
     if [ $? -ne 0 ]
     then
      error="$error - sed: tweak 3 grub.cfg"
      result="failed :-("
      echo "$result"
     fi
    fi
    It works for me, when run in an up to date installed Lubuntu 18.04 LTS (64-bit) to create Ubuntu 18.10. I used default settings (in mkusb).

    The result in the file grub.cfg is

    Code:
     menuentry "Run Ubuntu - persistent live" {
     search --set=root --fs-uuid 2018-10-17-22-44-30-00
            set gfxpayload=keep
            linux   ($root)/casper/vmlinuz  file=/cdrom/preseed/ubuntu.seed boot=casper quiet splash persistent ---
            initrd  ($root)/casper/initrd
    }
    which means that the sed command was successful (and should return 0 on exit).

    Please note that mkusb creates a persistent live system that works in most cases also when this sed command fails, but it will be more robust when the sed command succeeds.



    Can you find something that is different in your case compared to my case? In what operating system did you install and run mkusb? Version and flavour of Ubuntu? Other possible differences? If you tell me the details I can create such a system and try to reproduce your result (with the error output).
    Last edited by sudodus; 14 Hours Ago at 07:32 PM.

Page 81 of 81 FirstFirst ... 3171798081

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
  •