Suse linux live usb

Create installation USB stick

Tested on openSUSE

Contents

Requirements

Download installation images

You need to download a DVD or Network installation image (ISO file) before creating the installation USB stick.

A large capacity USB stick

To write DVD images, your USB stick must have at least 5 GB storage space.

To write Network images, your USB stick must have at least 100 MB storage space.

NOTE: All data in the USB stick will be erased! Backup all contents before writing the images.

A working PC

You need a working PC to run the bootable USB creation tool. ImageWriter can be run on openSUSE. UNetbootin can be run on other Linux distributions, Microsoft Windows and Apple macOS.

Create bootable USB stick

Imagewriter (openSUSE)

  1. Open YaST —> Software Management
  2. Search and install «imagewriter» package
  3. Open «SUSE Studio Imagewriter»
  4. Select downloaded image (*.iso file)
  5. Select the USB device
  6. Click «Write» button

It takes several minutes or longer, depending on image size and hardware performance.

Universal USB Installer (Windows)

Note: Universal USB Installer only supports ISO files up to a maximum size of 4 GiB, which can be exceeded by some openSUSE DVD images. In this case, use UNetbootin for Windows as described below.

  1. Download Universal USB Installer (GPLv2)
  2. Run it. You will see a simple application window.
  3. Select Linux distribution «openSUSE».
  4. Select downloaded image.
  5. Select the USB device.
  6. Click «Create» button.

It takes several minutes or longer, depending on image size and hardware performance.

UNetbootin (OpenSUSE)

  1. Install unetbootin via zypper
  1. Figure out which drive is your USB stick you wish to overwrite
  1. Wipe out the partition table of your USB stick to avoid issues with existing contents
  1. select /dev/sdc ( if your usb stick is /dev/sdc )
  2. p ( to print existing partitions )
  3. rm 1 ( to remove first partition )
  4. mklabel gpt ( to wipe device and make it GPT )
  5. mkpart primary ext4 1 -1 ( fill entire USB drive with ext4 partition )
  6. set 1 boot on ( make the new partition bootable )
  7. quit
  1. Unplug and replug the USB stick to have OpenSUSE automount /dev/sdc1
  2. Run unetbootin with environment variable to avoid UI bug
  1. Select radio button
  2. Click . and open previously downloaded iso file
  3. Select Type: is not already selected
  4. Select Drive: if not already selected
  5. Click OK
  6. Exit unetbootin
  7. Eject the USB drive from UI, or run

to umount files

UNetbootin (Other Linux, Windows, Mac)

  1. Download UNetbootin (GPLv2)
  2. Run it
  3. Select «Diskimage» radio button
  4. Select «ISO» file type
  5. Click <and open previously downloaded *.iso file
  6. Select device Type: «USB Drive»
  7. Select Drive: «Letter/Name of your USB stick» if not already selected
  8. Click OK

It takes several minutes or longer, depending on image size and hardware performance.

Boot from USB stick

  1. Plug your the USB stick into computer.
  2. Boot or reboot system.
  3. Press F12 and enter boot menu when you see BIOS interface. Quickly! (Some computers use Esc , F8 , F10 for boot menu, you should see it on BIOS screen)
  4. Select your USB stick in the boot menu
  5. Press Enter

System will restart and boot from the USB stick. Then you can follow the normal DVD installation instructions.

Источник

SDB:Live USB stick

This article is in need of attention because it does not follow our wiki guidelines.
If you want to contribute, please read the rules for this wiki and if you have any questions, don’t hesitate to contact the wiki team, we are more then willing to help you! 🙂

Version: 12.2+ This applies to openSUSE 12.2 and later.

Contents

Download the latest openSUSE ISO file

See http://download.opensuse.org/distribution/leap/ as of Nov 2019, this repo keep all the Leap versions (since 42.2 to 15.2), following the links lead to a repo «live» with live isos.

Backup your USB drive

You could, if you prefer, make a backup image of the stick prior to using it for installation, with dd, and recover it after the installation. [Detailed instructions needed]

Using SUSE Studio Image Writer

These a general instructions to write an hybrid iso dvd to an usb device.

Install ImageWriter for openSUSE

Install SUSE Imagewriter with 1-Click Install

For openSUSE 15.1:

For openSUSE 15.0:

For openSUSE Leap 42.3:

For openSUSE Tumbleweed:

Or you can use this command as a root to install Imagewriter.

Write ISO to USB

  • Start SUSE Studio Imagewriter from the start menu.
  • The image writer needs root permissions. So enter the password for root when prompted.
  • Open a file manager application.
  • Navigate in the file manager to the downloaded ISO file.
  • Drag&Drop it to the Imagewriter.
  • Plug your USB memory device in your computer.
  • Select it from the dropdown menu at the bottom corner of Imagewriter.
Confirm overwriting your data on the USB device by clicking OK. Writing the data takes a few minutes. After that your openSUSE bootable USB device is ready!

Using live-fat-stick, live-grub-stick, live-usb-gui (Command line or GUI way)

If you’d rather not reformat the USB device and keep the ability of putting files on it and accessible by other operating systems, you have the option of using the live-fat-stick or live-fat-stick scripts from command line or live-usb-gui point and click graphical interface. You can put ISO on vfat partitioned USB stick or hard disk.

On openSUSE you can install the packages simply via yast (Leap 15.1) or via 1-click from here live-fat-stick, live-grub-stick and live-usb-gui, if you are running any other distribution, get the scripts from here and make it executable(as root, with chmod +x /usr/bin/live-fat-stick ) after copying it to /usr/bin/, make sure you have syslinux and gpart installed before running it.

Run the following as root (with su — , not using sudo ) in terminal to get the USB device path:

Run the following to make USB stick with vfat(fat32) partition bootable with iso copied on it:

To make USB device bootable with EFI(Secure boot capabilities) wiping all data from it, run:

For more help, run:

Use live-grub-stick command in place of live-fat-stick as shown in above examples if you wish to create bootable usb sticks formatted in any file systems supported by grub2, for example you can use ext3/ntfs formatted stick to create bootable USB from standard openSUSE installation iso, this allows the use of remaining space for putting other iso images or data.

Multiple iso images from multiple distributions can be added to the USB device with vfat partition when not using «isohybrid» option, boot menu will offer a choice of distribution to boot from. Scripts does not format or remove data from the device.

Using commandline tools

The following steps use CLI tools. The example uses prompts: the $ is the user prompt and # means the root prompt.

Download LiveCD ISO

Download the installation image of your choice from http://software.opensuse.org/.

Verify the integrity of a downloaded image

After the download has been succeeded, verify the correct download with the commands:

Find Block Device

To find the block device of your USB stick, make sure you have NOT plugged the stick to your computer.

2. Plug in your USB stick to your computer.

The output can vary depending on the content of the stick. In this case, your disk is sdb so you need to use the device /dev/sdb .

Write ISO to USB

Finally, once you’ve found your block device, write the image to it. Point ‘dd’ to the full path such as ‘/home/user/Downloads/openSUSE-*.iso’.

Replace /dev/sd with your block device of your USB stick from the previous step:

If you get the message

your dd version does not support the status=progress option and therefore you have to remove it (and you will miss the writing progress indicator).

Optional steps

How to recover the USB stick for «normal» use again

After system installation, you may want to reuse the stick as you would normally to write things on it. In that case you have to reformat it. Often people complain that Windows fails to do it.

Typically, you would simply start fdisk:

(primary, number 1, default size to use the entire device)

Use type 6, FAT16

This last step is necessary, particularly the -n SOME_NAME, or the USB stick will mount with the iso name.

And done. Or, you could use gparted for partitioning and formatting.

If that doesn’t work try the following steps with extreme care:

If you look at the 12.3 DVD image on a USB stick with fdisk, you would see something like this (notice the GPT warning):

So, before reformatting, you have to repartition it again. And sometimes, if this fails, you may need an extra step — because software thinks the stick is a CD and thus not writable:

Notice: all these instructions assume the stick device is /dev/sdX. You have to find which is yours (see “Find Block Device” section above). An error here will destroy some other disk in your system.

That destroys the boot sector, partition table, and initial structures. Any operating system should be happy to reformat it again.

Troubleshooting

How to make a USB drive bootable

This situation would happen very rarely, but in the event that your computer doesn’t boot from the LiveUSB/DVD from the steps above, you might try the following procedure.

Open a console and do the following as root:

Источник

SDB:Create a Live USB stick using Windows

Version: 12.2+ This applies to openSUSE 12.2 and above.

Contents

Using Etcher

  1. Download the current ISO image of openSUSE Leap or Tumbleweed. The filename ends with «.iso».
  2. Download, install and start Etcher
  3. Select the openSUSE .iso file you just downloaded using the «Select Image» button.
  4. Plug a USB drive into you computer, if it’s the only drive connected to your computer, it will be automatically selected. If not, select it.

Using Rufus

  1. Download the current ISO image of openSUSE Leap or Tumbleweed. The filename ends with «.iso».
  2. Download and start Rufus
  3. Plug a USB drive into you computer and select it in Rufus (see screenshot)

Using ImageUSB

Download ImageUSB and follow the instructions on their page.

Using SUSE Studio ImageWriter

We used to have SUSE Studio ImageWriter compiled for windows, but this is not maintained anymore. Feel free to fork it and build/maintain the windows version yourself.

Using GRUB4DOS

This method will keep all current data in your USB medium. Demonstration is provided in this video. Note: These instruction will not work, if your computer boots via UEFI (like most computers made after

2011-2012 and all computers with preinstalled Windows 8/8.1/10); at first you must go to BIOS, enable Legacy boot (i.e. dissable UEFI/secure boot option)!

  • Copy ISO into «boot» folder of USB flash.
  • Extract «initrd» and «linux» files into «boot» folder of USB medium. These files located in boot\i386\loader or boot\x86_64\loader directory of ISO image. For ISO mounting you can use, for example, Pismo File Mount Audit Package.
  • GRUB4DOS installation into MBR of USB flash:
    1. download RMPrepUSB and install it;
    2. start RMPrepUSB;
    3. select your medium;
    4. click «Install GRUB4DOS»;
    5. confirm GRUB installation to MBR;
    6. confirm GRUB installation to selected medium;
    7. confirm GRLDR copying into selected medium.
  • Create «menu.lst» file in root folder of USB key. Content of «menu.lst» should be (in both places – in line 2 and in line 5 – replace openSUSE.iso with real name of your ISO file):

Reboot your computer from USB stick.

Troubleshooting

Verifying checksum of downloaded files

If you need to verify that the file you’ve just downloaded is correct, you can use the CertUtil program (At least on windows10)

Write access problems

If you get write access problems with the USB drive you can try to reformat the drive in Windows prior to writing the image.

This situation would happen very rarely, but in the even that your computer doesn’t boot from the LiveUSB/DVD from the steps above, you might try the following procedure.

Unlike fdisk, diskpart will perform changes as you enter them, therefore, there is no write instruction.

Источник

Читайте также:  При запуске компьютера два windows
Оцените статью