Sponsored Content
Full Discussion: Kexec with Live USB/CD
Operating Systems Linux Kexec with Live USB/CD Post 302473237 by al0x on Friday 19th of November 2010 08:43:44 AM
Old 11-19-2010
Kexec with Live USB/CD

Hello

Recently I found this (for me) really usefull tool kexec which can load a new Kernel while running one.
I tested it some times with the same kernel I was running, "rebooting" the system without powering it off at any time Smilie
But I need kexec basically just for live usbs. I want to start a live USB within my running Linux, what works, but at one point it "exits" the loading process and give me a BusyBox...
It's something like
Code:
[xxxx] loading blablabla USB-Keyboard blablabla.
ALERT! does not exist. Returning to a shell.
BusyBox vX.xx
(initramfs)

I used this to load the kernel into kexec:
Code:
kexec -l /media/usb/casper/vmlinuz --append="ro root=/dev/sdb1" --initrd="/media/usb/casper/initrd" --ramdisk="/media/usb/casper/initrd --real-mode -d
kexec -d -e

This was working with the kernel on the main HDD that I was running, but won't work with my live-usb...

The idea behind that is that I want to check if the right USB-Stick is plugged in (checking UUID), then boot it and install the new system. Didn't get it to work over grub 2 and booting it with the BIOS isn't what I want (I want to boot one specific stick and not a hundreds others).

Anyone knows why it gives the the ALERT! ?
Thanks in advance! Smilie
greetz, alex
 

9 More Discussions You Might Find Interesting

1. Linux

Live Knoppix on usb sdb2 kernel not found

Hi all I have a usb external drive with two partitions sdb1 ntfs and sdb2 ext3 with label Linux I copied a knoppix live distro in the second partition, then I installed grub on the drive. Now in the directory /media/sdb2/boot/grub i have the file device.map with the following content: (hd0) ... (4 Replies)
Discussion started by: guast
4 Replies

2. UNIX for Dummies Questions & Answers

From Knoppix Live-USB to Old-school CLI Debian Linux.

Alright. Here we go... The other day, I was referred to this neat little command-line Unix simulator called Cygwin. To put it lightly, I fell in love. I found Knoppix, and from what I can tell, it's a viable OS once I strip off the KDE desktop environment to make it 'old-school'. I'm... (2 Replies)
Discussion started by: dev_squid
2 Replies

3. UNIX for Dummies Questions & Answers

USB-USB cable between linux and windows computers

Is there an easy way to setup a cross-over cable (USB-USB) between a linux box and a windows PC? My 2 machines are next to each other but I really do not want to keep transfering my files using my USB drive. Thanks! (4 Replies)
Discussion started by: Xterra
4 Replies

4. Red Hat

How to install fedora 13 from a usb media....it should not like 'live'?

im using Dell Inspiron with windows 7 as operating system.....in my hard drive there is some 34 gb unpartitioned space and now i want to install fedora 13 into it, after installation it should be dual boot. problem here is... i have the fedora 13 image file ie fedora13-i386-DVD.iso file. ... (13 Replies)
Discussion started by: karthik437
13 Replies

5. UNIX for Dummies Questions & Answers

kcore and a live persistent linux usb distro

I have 2 computers, from now on i shall call these computers A and B. Made a live linux distro (bodhi) on A which has 1GB internal memory , because windows is unstable on B, which has 512MB internal memory. I mean with memory the internal memory of the computer, not the memory of the usb... (0 Replies)
Discussion started by: anno
0 Replies

6. BSD

Freebsd live usb

Hello. I'm going to make freebsd live usb based on FreeBSD-8.3-RELEASE-i386-livefs.iso. The iso is 257 Megabytes, but after i copy its content to usb drive its volume increases to 971 Megabytes. I tried different methods of copying (tar,cp,cpio) but with the same result. Could anyone help? (0 Replies)
Discussion started by: urello
0 Replies

7. Solaris

Usbcopy fails with the error message sol-11_1-live-x86.usb is not a multiple of 512

I am trying to create a live image of solaris 11.1. I have used #pkg image-update to upgrade from 11 to 11.1 already. (since only 11.1 can make images of 11.1 due to using new grub) then from within 11.1 I used pkg install install distribution-constructor to get latest usbcopy that should be... (1 Reply)
Discussion started by: taltamir
1 Replies

8. Solaris

Solaris 11 install via live usb

Hello All, I am attempting to boot and install Solaris 11 via live USB on a HP DL580 Gen9 Server. Unfortunately, when I do this it boots into System Maintenance Mode. The attachment (Pic1) shows what I am seeing via the console. The BIOS is in UEFI boot. Does not work on legacy mode as I... (15 Replies)
Discussion started by: Kerbi
15 Replies

9. What is on Your Mind?

Update: UserCP Screeching Frog 0.7641 - Changed Live Chat to Live Updates

Update: UserCP Screeching Frog 0.7641 - Changed Live Chat to Live Updates In this version of the UserCP, I have changed "Live Chat" to "Live Updates" by disabling the ability to post in the "live chat" area and changed the name to "Live Updates" The reason for this change is that experienced... (6 Replies)
Discussion started by: Neo
6 Replies
MIC-IMAGE-CONVERTOR(1)					      General Commands Manual					    MIC-IMAGE-CONVERTOR(1)

NAME
mic-image-convertor - Convert a virtual machine image to a live image SYNOPSIS
mic-image-convertor [options] DESCRIPTION
mic-image-convertor can convert a virtual machine image to a live image, this is specially for developers, they will use VMWare player or KVM or VirtualBox to run this image and do some changes in place, then they convert this changed image to a live image to run in a real device. mic-image-manager has a GUI tool for mic-image-convertor, you can use it if you prefer to use GUI instead of command line. General OPTIONS --version show version number and exit -h, --help show this help message and exit -F SRCFORMAT, --source-format=SRCFORMAT Source image format, possible values are: raw, vmdk or vdi (default: automatically detect image type). -I SRCIMG, --source-image=SRCIMG Source image which was created by mic-image-creator or an image file system. -T DSTFORMAT, --target-format=DSTFORMAT Target image format, possible values are: livecd and liveusb -t TMPDIR, --tmpdir=TMPDIR Temporary directory to use (default: /var/tmp) -o OUTDIR, --outdir=OUTDIR Output directory to use (default: current work dir) -S SUFFIX, --suffix=SUFFIX Image name suffix (default: date stamp) OPTIONS For Live USB -i, --interactive Directly write into a USB disk. --fstype=FSTYPE File system type for live USB image, ext3 or vfat, the default is vfat. --overlay-size-mb=OVERLAYSIZEMB Overlay size in MB as unit, it means how size changes you can save in your live USB disk. Debug OPTIONS -d, --debug Output debugging information -v, --verbose Output verbose progress information --logfile=FILE Save debug information to FILE EXAMPLES
Convert a VMWare image to a live CD image: mic-image-convertor -I your-vmware-image.vmdk -T liveusb EXIT STATUS
mic-image-convertor returns a zero exist status if it succeeds, otherwise return non-zero and print error message. AUTHOR
Yi Yang, Anas Nashif, Jianfeng Ding SEE ALSO
mic-image-creator(1), mic-chroot(1), mic-image-writer(1), mic-livecd-iso-to-disk(1), mic-image-manager(1) perl v5.12.3 2011-05-31 MIC-IMAGE-CONVERTOR(1)
All times are GMT -4. The time now is 03:53 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy