Score:0

how to make ubuntu live usb contains spasific apps and my wifi driver

gt flag

I want to make ubuntu live usb or iso file contains my spasific apps like as boot-repair, malicious removal, internet explorer and my wifi driver (bcm43xx). the reason is every time i have to install them after boot by usb flash drive to fix or tray some thing. thanks to all participants.

Jeremy31 avatar
ke flag
For wifi do you have to install firmware-b43-installer?
Talaat Etman avatar
gt flag
@Jeremy31 yes but i add wifi driver manualy by offline installation or connect my phone by usb for firmware-b43-installer online installation
Jeremy31 avatar
ke flag
I think CUBIC can make custom ISO's but I haven't used it https://www.omgubuntu.co.uk/2023/02/cubic-is-a-custom-ubuntu-iso-creator
Talaat Etman avatar
gt flag
thanks @Jeremy31, i will tray it and tell you.
oldfred avatar
cn flag
Why not just a full install to another flash drive. Or better to an external SSD which makes for a very fast system.
C.S.Cameron avatar
cn flag
A Full install to USB is just like an install to internal disk, just a little slower. As oldfred says an install to USB SSD is very fast. See https://askubuntu.com/q/1403792/43926
Talaat Etman avatar
gt flag
@karel no it is talking about full installation but my question about live usb or iso file
Score:0
gt flag

Three wayes that i trayed them

make a "Persistent Live System" USB by mkusb


"mkusb a safe tool to create a bootable drive from an iso image or a compressed image file.1

installation:

$ sudo add-apt-repository universe # only for standard Ubuntu live
$ sudo add-apt-repository ppa:mkusb/ppa # and press Enter
$ sudo apt update
$ sudo apt install mkusb
$ sudo apt install mkusb usb-pack-efi

The following command is an alternative for systems without a graphic environment for example Ubuntu Server

sudo apt install dus mkusb-nox

installation instructions

The tool has a command line version and a GUI version. You can launch the GUI version from Ubuntu's Dock by selecting the "guidus" app.2

  1. Launch guidus or mkusb from launcher
  2. Select i Install (make a boot device)
  3. Select p 'Persistent live' - only Debian and Ubuntu
  4. Select sdb (or whatever is your USB disk) play more attention in this step to make sure you realy select usb drive not hard drive.
  5. Move the slider to select free space you want (80% is good for a 4-8GB USB stick)
  6. Select Go
    mkUSB-quick-start-manual-22.pdf
    this is my Persistent Live System after some customization
    enter image description here

make live usb from my current operating system by systemback

I created a live usb/installation from my system’s file and all my configurations by the Systemback utility.

$ sudo add-apt-repository "deb http://ppa.launchpad.net/nemh/systemback/ubuntu jammy main"
$ sudo apt update
$ sudo apt install systemback

this is screenshot of my usb drive that crated by systemback enter image description here

Make filesystem.squashfs from Ubuntu root partition

We can make filesystem.squashfs from Ubuntu root partition as a backup so we can restore our Ubuntu and we can make Ubuntu live USB by this file.

  1. boot by Ubuntu live USB
  2. mount Ubuntu partition to /mnt

sudo -i

mount -o ro /dev/sdax /mnt # replace x with your (ubuntu) target partition

  1. mount other partition to save the file

mkdir sdaz

`mount /dev/sdaz  sdaz  # replace z with your (non Ubuntu) partition` 
  1. make the filesystem.squashfs

mksquashfs /mnt/* /sdaz/filesystem.squashfs

  1. from now you have the file that will help
  2. by rufus creat live USB by any ubuntu ISO and replace the filesystem.squashfs in the USB with your one.
  3. frome now you can reboot by your Ubuntu live USB
  4. to restore your Ubuntu partition from filesystem.squashfs, boot by your live USB, mount Ubuntu partiton, delete all files from Ubuntu partition mount folder, mount filesystem.squashfs, copy all files from filesystem.squashfs mount folder to Ubuntu partiton mount folder and reboot.

    I test all of them today, i delete all Ubuntu files and extracted filesystem.squashfs to root and rebooted to my Ubuntu. by my live USB that created by rufus i can login after write my pass word.

    3rd way related problem: after reboot to Ubuntu or live USB may be you will face "You do not have the permissions necessary to view the...." when opening some partitions that solved with me by mount any partition in /mnt

    3rd way note: make sure you have same kernel in your filesystem.squashfs and your other iso file that used by rufus
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.