Kexec with Live USB/CD


 
Thread Tools Search this Thread
Operating Systems Linux Kexec with Live USB/CD
# 8  
Old 11-30-2010
Quote:
Originally Posted by Corona688
Wow, "ALERT! does not exist" has to be the most useless error message I've ever heard. Smilie You have my sympathies.

Do you know what script produces that? Look inside that script and see what it was looking for. Maybe it's expecting some previously unknown variable and not getting it. Maybe it's supposed to print something between alert and does...

Please also review my earlier suggestions. looking in /sys/, fiddling with rootdelay, putting in sleep, etc. I'd add to that, building usb-storage into the kernel instead of making it a module.
I don't know which script produces that, it's part of the booting process of a Lubuntu Live USB-Stick (10.04) made with the universal USB installer. I'm not very familiar with this process...
I tried rootdelay but it didn't work, I'm trying sleep and other similar commands right now...

edit: here is what I tried:
Code:
kexec -l /media/usb/casper/vmlinuz --append="ro root=/dev/sdb1 rootdelay=20 rootwait" --initrd="/media/usb/casper/initrd.lz" --ramdisk="/media/usb/casper/initrd.lz" --real-mode -d
kexec -d -e

still doesn't work...
Everything seems mounted and working fine, every driver needed as loaded and it should just start the desktop...
I looked in /sys/class/block/ and there was a sdb and sdb1 folder whith all the stats my USB-Stick has, so I'm pretty sure /dev/sdb1 is the Stick from which I'm booting

Last edited by al0x; 11-30-2010 at 10:27 AM..
# 9  
Old 11-30-2010
You'll have to look into the boot scripts in that initrd to figure out why they're messing up. It'll all be started by a program named init, probably a shell script. Meanwhile you could try mounting and chrooting manually in the prompt, to see if that works at all. Something like

Code:
$ mkdir -p /mnt/root
$ mount -o ro /dev/sdb1 /mnt/root
$ umount /proc
$ umount /sys
$ exec switch_root /mnt/root /bin/init

might be /sbin/init or just /init.
# 10  
Old 11-30-2010
Quote:
Originally Posted by Corona688
You'll have to look into the boot scripts in that initrd to figure out why they're messing up. It'll all be started by a program named init, probably a shell script. Meanwhile you could try mounting and chrooting manually in the prompt, to see if that works at all. Something like

Code:
$ mkdir -p /mnt/root
$ mount -o ro /dev/sdb1 /mnt/root
$ umount /proc
$ umount /sys
$ exec switch_root /mnt/root /bin/init

might be /sbin/init or just /init.
I can't say if the rest works or not, but mounting /dev/sdb1 somewhere did not work... Invalid Argument error :/
# 11  
Old 12-01-2010
Can you fdisk -l ? What filesystem do you have on /dev/sdb1? It has to be something the kernel or the initrd supports. Best to build it into the kernel.
# 12  
Old 12-01-2010
fdisk isn't implemented...
sdb1 is fat32 which is supported by the kernel.
It would really help if the ALERT! gives more information than " does not exist!" Smilie
I will try it again with other sticks, filesystems and linux versions. Maybe theres a problem not related to the live-system directly... I should be able to give more information on friday! Smilie
# 13  
Old 12-01-2010
Quote:
Originally Posted by al0x
fdisk isn't implemented...
sdb1 is fat32 which is supported by the kernel.
You're trying to boot linux from FAT32!? That's probably not going to work. It lacks nearly all the features of a proper UNIX filesystem. Security features prevent you from running any executables on it, too. How'd you ever install Linux in that?
# 14  
Old 12-01-2010
Quote:
Originally Posted by Corona688
You're trying to boot linux from FAT32!? That's probably not going to work. It lacks nearly all the features of a proper UNIX filesystem. Security features prevent you from running any executables on it, too. How'd you ever install Linux in that?
Really?
It worked before.. xD
It's just a live usb and it works if I just plug it into my computer and boot it via BIOS Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

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. 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

7. 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

8. 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

9. 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
Login or Register to Ask a Question