Page 111 of 112 FirstFirst ... 1161101109110111112 LastLast
Results 1,101 to 1,110 of 1112

Thread: Howto make USB boot drives

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

    Re: Howto make USB boot drives

    @vidtek,

    If you made the persistent live drive with mkusb-dus (not mkusb-plug), the file system where grub.cfg resides is writable, so you can mount the partition and edit it. Add the extra boot option 'noprompt' near the end of the line that starts with 'linux', in other words near 'persistent', and try if it works.

    if you still must unplug the drive instead of only rebooting, I don't know what is the problem. Maybe it helps if you run

    Code:
    sudo partprobe
    sync
    in a terminal window and wait for a few seconds for things to settle down just before reboot.

  2. #1102
    Join Date
    Jan 2011
    Location
    Retired in Bournemouth UK
    Beans
    385
    Distro
    Ubuntu Studio Development Release

    Re: Howto make USB boot drives

    Quote Originally Posted by sudodus View Post
    @vidtek,

    If you made the persistent live drive with mkusb-dus (not mkusb-plug), the file system where grub.cfg resides is writable, so you can mount the partition and edit it. Add the extra boot option 'noprompt' near the end of the line that starts with 'linux', in other words near 'persistent', and try if it works.

    if you still must unplug the drive instead of only rebooting, I don't know what is the problem. Maybe it helps if you run

    Code:
    sudo partprobe
    sync
    in a terminal window and wait for a few seconds for things to settle down just before reboot.
    Thanks @sudodus, I'll give it a go and report back.
    Tony.

    EDIT: Well the grub.cfg edit works well, noprompt sorted, Thanks.

    Unfortunately your other suggestion did not in real time. I also tried a reboot script with your suggestion:
    Code:
    sudo partprobe && sync && /sbin/reboot
    No joy. Still requires the stick to be physically unplugged.
    Last edited by vidtek; October 23rd, 2021 at 05:25 PM.
    Asus Z270i7 16gb rm 8tb GT1660 Haupp Quad tunr KDE Neon 20.04 Focal/Win 10 Be/FE mythtv 0.32Homerun dual netwk tunr 55¨ Smsng ES8000 Lap Smsng NP R580 i5 nvidia linux Ultimate/Win 10

  3. #1103
    Join Date
    Jan 2011
    Location
    Retired in Bournemouth UK
    Beans
    385
    Distro
    Ubuntu Studio Development Release

    Re: Howto make USB boot drives

    Just realized, editing the previous post doesn't send a notification to you...doh don't get old....

    Well the grub.cfg edit works well, noprompt sorted, Thanks.

    Unfortunately your other suggestion did not sort the unplugging-plugging issue in real time.

    I also tried a reboot script with your suggestion:
    Code:

    sudo partprobe && sync && /sbin/reboot

    No joy. Still requires the stick to be physically unplugged/plugged.

    Tony
    Asus Z270i7 16gb rm 8tb GT1660 Haupp Quad tunr KDE Neon 20.04 Focal/Win 10 Be/FE mythtv 0.32Homerun dual netwk tunr 55¨ Smsng ES8000 Lap Smsng NP R580 i5 nvidia linux Ultimate/Win 10

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

    Re: Howto make USB boot drives

    @vidtek,

    I'm glad that at least one of my tips works.

    I'm afraid, that the problem with unplugging might be due to things happening in the computer's early boot sequences, for example that the content of some memory locations are not reset: Old content is still there, and those memory locations are not properly cleared by the UEFI/BIOS system at reboot. If that is the case, you can test the system in different computers and it might behave differently.

  5. #1105
    Join Date
    Jan 2011
    Location
    Retired in Bournemouth UK
    Beans
    385
    Distro
    Ubuntu Studio Development Release

    Re: Howto make USB boot drives

    Quote Originally Posted by sudodus View Post
    @vidtek,

    I'm glad that at least one of my tips works.

    I'm afraid, that the problem with unplugging might be due to things happening in the computer's early boot sequences, for example that the content of some memory locations are not reset: Old content is still there, and those memory locations are not properly cleared by the UEFI/BIOS system at reboot. If that is the case, you can test the system in different computers and it might behave differently.
    Tried on both the other systems --same result on a Samsung 510 older laptop and a strix 270 motherboard with an i7 and 16gb ram. The main testing system runs a Gigabyte z68 with an i7 and 16gb ram. I also tried running scripts on the reboot command inside the .iso file system writing in cubic terminal mode, no difference.

    In fact the scripts that purport to reset the usb subsystem don't work either. Nothing works like unplugging/replugging the stick. bugger.

    I'm starting to think of an electronic solution rather than a software approach. Maybe inserting a small relay/switching i.c. in the usb cable to simulate the unplugging/plugging action. What do you think? Maybe there is a powered usb hub that I can get off the shelf that disconnects the usb when power is removed-that would work in a remote system with a smart wall plug...time for a google hunt.
    Tony.
    Asus Z270i7 16gb rm 8tb GT1660 Haupp Quad tunr KDE Neon 20.04 Focal/Win 10 Be/FE mythtv 0.32Homerun dual netwk tunr 55¨ Smsng ES8000 Lap Smsng NP R580 i5 nvidia linux Ultimate/Win 10

  6. #1106
    Join Date
    Jan 2011
    Location
    Retired in Bournemouth UK
    Beans
    385
    Distro
    Ubuntu Studio Development Release

    Re: Howto make USB boot drives

    OK I have been through my mountain of computer stuff and pulled out an Anker 7port with 3 power only usb3 powered hub.

    I tried in my workshop to see if when the power was removed the usb hub was reset as though unplugged from the host computer.

    It was, the little blue active light went off, the hub was disconnected and I was able to reboot the computer without physically unplugging the usb stick.

    So a work-around, not the most elegant solution, a software approach built-in to the live system would have been far more elegant but this works for my application. I have tested it with a smart plug and even using google assistant voice control I was able to achieve my goal.
    The timing is critical, disconnect too early in the reboot process and it will cause the machine to hang (as the usb stick is the current o/s), too late and the bios boot process will already have started.

    If anyone can come up with a way to achieve the same result by removing the way a live system insists on a replug that would be far better.

    Thanks to @sudodus for your help.

    Tony.

    https://uk.anker.com/products/a7515
    Asus Z270i7 16gb rm 8tb GT1660 Haupp Quad tunr KDE Neon 20.04 Focal/Win 10 Be/FE mythtv 0.32Homerun dual netwk tunr 55¨ Smsng ES8000 Lap Smsng NP R580 i5 nvidia linux Ultimate/Win 10

  7. #1107
    Join Date
    Nov 2011
    Location
    /dev/root
    Beans
    Hidden!

    Re: Howto make USB boot drives

    @vidtek,

    Thanks for sharing your solution

  8. #1108
    Join Date
    Dec 2005
    Beans
    Hidden!
    Distro
    Xubuntu 20.04 Focal Fossa

    Re: Howto make USB boot drives

    I'm wanting to make a 20.04.3 boot usb device. I used "clone" and although I could boot up okay from the usb, it went to a desktop and no options/functions/menus ??

    So am now using a "live" version and will see how that goes. But I'm sure it has worked before with just a "clone".

  9. #1109
    Join Date
    Nov 2011
    Location
    /dev/root
    Beans
    Hidden!

    Re: Howto make USB boot drives

    @oygle,

    Are you talking about the following two options in an mkusb menu,

    - Cloning iso file, [compressed] image file or device

    - 'Live-only' or linux installer from iso file

    and their influence on the result, the live system?

    Both are cloning, doing exactly the same thing. It is only in order to catch the different 'user notions' of what should happen, that there are two options in the menu.

    But if you select

    - 'Persistent live' - only Debian and Ubuntu

    you get something very different, and you can run such a drive live (live-only) too, there is a grub menuentry for it.



    Please explain the problem with a desktop and no options/functions/menus.

    - Was that when the created live system booted? Or when the installed system booted? Or something else, that I cannot guess?

    - Can you reproduce it (in the same computer, in some other computer, with some other version/flavour of Ubuntu)?

    I suspect that it is a problem with the graphics, that the driver does not work well will the graphics hardware. Maybe you can work around it with some boot option, for example 'nomodeset'?

  10. #1110
    Join Date
    Dec 2005
    Beans
    Hidden!
    Distro
    Xubuntu 20.04 Focal Fossa

    Re: Howto make USB boot drives

    @sudodus, thank you for your reply. I had initially wanted to make a WIN 8.1 drive as dual boot, and add Kubuntu 20.04.3 - see https://ubuntuforums.org/showthread....6#post14066766 for the last reply.

    I'm up to the "hair pulling out" phase, it really does seem that WIndows keeps gaining control and even when I'm able to boot from the usb, all that appears is the desktop (as per pic in that thread). As I only _really_ need the Windows for old MS Money conversions and some old works conversions, and all of those done from time to time, I may just wipe the WIN 8.1, even though I can't see/view the files. I think I only used it for the conversion to QIF format then exported to another computer.

    So I think now the only optoin is to wipe/clobber from BIOS, it takes a few hours, but oh well. I'm sure the problem isn't mkusb, as I have used it successfully before, and from memory, all I did was a "clone". Thanks for your help

Page 111 of 112 FirstFirst ... 1161101109110111112 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
  •