LiveUSB

classic Classic list List threaded Threaded
12 messages Options
Reply | Threaded
Open this post in threaded view
|

LiveUSB

duplex
I used the instructions located here.

When I select the usb drive to boot from it just has a black screen with the word 'GRUB' in it and never gets past that point.  I have done this multiple times and same thing each time, I have used usb to boot this device before and it's never had a problem with it.

Any thoughts?
Reply | Threaded
Open this post in threaded view
|

Re: LiveUSB

Shyukri Shyukriev-2
duplex wrote:

> I used the instructions located
> http://en.opensuse.org/SUSE_Studio_Disc_Image_Howtos#How_to_image_USB_flash_drives_.28installation_from_Windows.29
> here.
>
> When I select the usb drive to boot from it just has a black screen with the
> word 'GRUB' in it and never gets past that point.  I have done this multiple
> times and same thing each time, I have used usb to boot this device before
> and it's never had a problem with it.
>
> Any thoughts?
>  
Can you give me a link to your appliance?

Cheers,
Shyukri
_______________________________________________
studio-users mailing list
[hidden email]
http://listx.novell.com/mailman/listinfo/studio-users
Reply | Threaded
Open this post in threaded view
|

Re: LiveUSB

duplex
Not sure if these are accessible by just everyone but here's the download link...

http://susestudio.com/download/6fe582a37496db07b17dd35c18254811/WMC_HelpDesk.i686-0.0.1.oem.tar.gz

If there's a way to actually share the appliance let me know as I've seen nothing that says that.
Reply | Threaded
Open this post in threaded view
|

Re: LiveUSB

Shyukri Shyukriev-2
duplex wrote:
> Not sure if these are accessible by just everyone but here's the download
> link...
>
> http://susestudio.com/download/6fe582a37496db07b17dd35c18254811/WMC_HelpDesk.i686-0.0.1.oem.tar.gz
>
> If there's a way to actually share the appliance let me know as I've seen
> nothing that says that.
>  
The download links are public.
_______________________________________________
studio-users mailing list
[hidden email]
http://listx.novell.com/mailman/listinfo/studio-users
Reply | Threaded
Open this post in threaded view
|

Re: LiveUSB

duplex
Any news with the appliance I supplied the link too?  Should be the raw image that the instructions describe.
Reply | Threaded
Open this post in threaded view
|

Re: LiveUSB

arjo129
In reply to this post by duplex

duplex wrote
I used the instructions located here.

When I select the usb drive to boot from it just has a black screen with the word 'GRUB' in it and never gets past that point.  I have done this multiple times and same thing each time, I have used usb to boot this device before and it's never had a problem with it.

Any thoughts?
Build a live CD then download it and make the changes and then convert it to a .img using the following command:
dd if=/dev/sda of=name_of_OS.img
Reply | Threaded
Open this post in threaded view
|

Re: LiveUSB

Embar
This is instructions for .iso writing to LiveUSB (/dev/sdb):

1. Install syslinux and lilo:

        sudo zypper in syslinux lilo

2. Insert USB key and make it bootable:

        syslinux /dev/sdb1
        lilo -M /dev/sdb mbr
        lilo -A /dev/sdb 1
 # make active first /dev/sdb partition

3. Copy .ISO content to USB key:

        mkdir /tmp/iso
        mount -o loop "/path/to/image.iso" /tmp/iso
        mkdir /tmp/LiveUSB
        umount /dev/sdb1
        mount /dev/sdb1 /tmp/LiveUSB
        cp /tmp/iso/* /tmp/LiveUSB/


4. Copy bootloader files from /boot/*/loader/:

        cp -r /tmp/iso/boot/*/loader/* /tmp/LiveUSB/

5. isolinux.cfg rename to syslinux.cfg:

        mv /tmp/LiveUSB/isolinux.cfg /tmp/LiveUSB/syslinux.cfg

6. Modify initrd. At first you may extract initrd to /tmp/initrd/:

        mkdir /tmp/initrd
        cd /tmp/initrd
        gzip -dc /tmp/iso/boot/*/loader/initrd | cpio -i


7. Edit /tmp/initrd/include by replacing function CDDevice to this:


function CDDevice {
    # /.../
    # changed this function so that it finds config.isoclient on vfat disks, e.g. USB drives
    # ----
    find /lib/modules/*/kernel/fs/nls/nls* -exec insmod {} \; # needed for vfat filesystem
        find /lib/modules/*/kernel/fs/*fat/*.ko -exec insmod {} \; # needed for vfat filesystem
        insmod /lib/modules/*/kernel/drivers/usb/storage/usb-storage.ko # needed for USB
    sleep 5 # fixme; do this in a proper way
    cddevs=`/usr/sbin/hwinfo --disk | grep sd | grep "Device File:" | cut -f2 -d: | cut -f2 -d " "`
   # looks for disks instead of CDs
    echo cddevs $cddevs
    for i in $cddevs;do
        i=$i"1" # fixme; looks on the first partition only
        echo i $i
        if [ -b $i ];then
            test -z $cddev && cddev=$i || cddev=$cddev:$i
            echo cddev $cddev
        fi
    done
    if [ -z $cddev ]; then
        systemException \
            "Failed to detect CD drive !" \
        "reboot"
    fi
}


You may edit with kwrite with root privilegies:

        xdg-su -c "kwrite /tmp/initrd/include"


8. Create new initrd:

        find . | cpio -o -H newc | gzip -9 > /tmp/LiveUSB/initrd

9. Finish job:

        umount /tmp/iso
        umount /tmp/LiveUSB
        rm -r -f /tmp/initrd
        rm /tmp/iso
        rm /tmp/LiveUSB


Now you may reboot computer from LiveUSB.
You can try it with qemu /dev/sdb.

Tested from openSUSE 11.3 with Lietukas 11.3.4 appliance.


Info sources:
http://lizards.opensuse.org/2008/06/20/how-to-makeopensuse-110-gm-version-live-usb/
http://lizards.opensuse.org/2008/05/31/making-opensuse-110-liveusb-the-easiest-and-fastest-way/


Reply | Threaded
Open this post in threaded view
|

Re: LiveUSB

Flavio Castelli
On Sunday 03 October 2010 12:50:53 Embar wrote:
> This is instructions for .iso writing to LiveUSB:

I'm curious, why didn't you build your appliance using the disk format?
Have you seen this guide [1]?

cheers
Flavio

[1] http://bit.ly/af1Sm2
_______________________________________________
studio-users mailing list
[hidden email]
http://listx.novell.com/mailman/listinfo/studio-users
Reply | Threaded
Open this post in threaded view
|

Re: LiveUSB

Embar
This post was updated on .
I would like to have one image for both: LiveCD and LiveUSB.
The disk image is too big to write to my USB key.

So in [b]include[/b] file I merged both functions. I writed this:

function CDDevice {
    # /.../
    # changed this function so that it finds config.isoclient on vfat disks, e.g. USB drives
    # ----
    find /lib/modules/*/kernel/fs/nls/nls* -exec insmod {} \; # needed for vfat filesystem
        find /lib/modules/*/kernel/fs/*fat/*.ko -exec insmod {} \; # needed for vfat filesystem
        insmod /lib/modules/*/kernel/drivers/usb/storage/usb-storage.ko # needed for USB
    sleep 5 # fixme; do this in a proper way
    cddevs=`/usr/sbin/hwinfo --disk | grep sd | grep "Device File:" | cut -f2 -d: | cut -f2 -d " "` # looks for disks instead of CDs
    echo cddevs $cddevs
    for i in $cddevs;do
        i=$i"1" # fixme; looks on the first partition only
        echo i $i
        if [ -b $i ];then
            test -z $cddev && cddev=$i || cddev=$cddev:$i
            echo cddev $cddev
        fi
    done
    if [ -z $cddev ]; then
        IFS=$IFS_ORIG
        local count=0
        local h=/usr/sbin/hwinfo
        if [ $HAVE_MODULES_ORDER = 0 ];then
                for module in sg sd_mod sr_mod cdrom ide-cd BusLogic vfat; do
                        /sbin/modprobe $module
                done
        fi
        Echo -n "Waiting for CD/DVD device(s) to appear..."
        while true;do
                cddevs=`$h --cdrom | grep "Device File:"|sed -e"s@(.*)@@" | cut -f2 -d:`
                cddevs=`echo $cddevs`
                for i in $cddevs;do
                        if [ -b $i ];then
                                test -z $cddev && cddev=$i || cddev=$cddev:$i
                        fi
                done
                if [ ! -z "$cddev" ] || [ $count -eq 12 ]; then
                        break
                else
                        echo -n .
                        sleep 1
                fi
                count=`expr $count + 1`
        done
        echo
        if [ -z "$cddev" ];then
                USBStickDevice
                if [ $stickFound = 0 ];then
                        systemException \
                                "Failed to detect CD/DVD or USB drive !" \
                        "reboot"
                fi
                cddev=$stickDevice
        fi
    fi
}


I pushed new initrd in .iso file with ISOmaster, maked a hybrid botable with isohybrid (from syslinux RPM). Now I can boot in both: like CD and like USB disk image ;)
you can test http://ftp.akl.lt/users/embar/Lietukas_11.3.i686-11.3.5.iso
Reply | Threaded
Open this post in threaded view
|

Re: LiveUSB

Embar
Excuse-me, such initrd changing doesn't make possible to write to both, it only allows to write .iso to LiveUSB.
Reply | Threaded
Open this post in threaded view
|

Re: LiveUSB

Embar
This post was updated on .
This is instruction about LiveUSB .iso creating from SUSE Studio LiveCD/DVD.

1. Download any LiveCD/LiveDVD .iso from http://susegallery.com/ , for example, Lietukas.

2. Install ISO Master.

3. Start isomaster as simple user, open your LiveCD/LiveDVD .iso.

4. From /boot/i386/loader/ or /boot/x86_64/loader/ directory extract isolinux.cfg file, rename it to syslinux.cfg, add again to the same directory in .iso image. isolinux.cfg may be not deleted.

5. From /boot/i386/loader/ or /boot/x86_64/loader/ directory extract initrd file, remove it from .iso image. Copy this initrd to new /tmp/susestudio/ directory.

6. In terminal execute (as root):
mkdir /tmp/initrd
cd /tmp/initrd
su -c "gzip -dc /tmp/susestudio/initrd | cpio -i"


7. In /tmp/initrd/include file replace CDDevice function to this:
function CDDevice {
        # /.../
        # changed this function so that it finds config.isoclient on vfat disks, e.g. USB drives
        # ----
        find /lib/modules/*/kernel/fs/nls/nls* -exec insmod {} \; # needed for vfat filesystem
        find /lib/modules/*/kernel/fs/*fat/*.ko -exec insmod {} \; # needed for vfat filesystem
        insmod /lib/modules/*/kernel/drivers/usb/storage/usb-storage.ko # needed for USB
        sleep 5 # fixme; do this in a proper way
        cddevs=`/usr/sbin/hwinfo --disk | grep sd | grep "Device File:" | cut -f2 -d: | cut -f2 -d " "` # looks for disks instead of CDs
        echo cddevs $cddevs
        for i in $cddevs;do
                i=$i"1" # fixme; looks on the first partition only
                echo i $i
                if [ -b $i ];then
                        test -z $cddev && cddev=$i || cddev=$cddev:$i
                        echo cddev $cddev
                fi
        done
        if [ -z $cddev ]; then
                systemException \
                        "Failed to detect CD driveĀ !" \
                "reboot"
        fi
}


You can do this in KDE (with kwrite) by executing as simple user:
xdg-su -c "kwrite /tmp/initrd/include"
You can do this in GNOME (with gedit) by executing as simple user:
xdg-su -c "gedit /tmp/initrd/include"

8. Create modified initrd (as root):
mkdir -p /tmp/LiveUSB
find . | cpio -o -H newc | gzip -9 > /tmp/LiveUSB/initrd


9. Copy new initrd (/tmp/LiveUSB/initrd) to /boot/i386/loader/ or /boot/x86_64/loader/ directory of iso image with ISO Master.

10. Save as this new .iso image, for example, as /tmp/my_new_LiveUSB.iso made with ISO Master.
 
11. Install syslinux, because it contains isohybrid:
sudo zypper in syslinux

12. Modify new .iso with isohybrid (as simple user):
isohybrid /tmp/my_new_LiveUSB.iso

Instructions about LiveUSB image writing to USB key is here:
http://en.opensuse.org/SDB:Live_USB_stick
Reply | Threaded
Open this post in threaded view
|

Re: LiveUSB

Embar
This is instruction about LiveUSB .iso creating from SUSE Studio LiveCD/DVD.

1. Download any LiveCD/LiveDVD .iso from  http://susegallery.com/
http://susegallery.com/  , for example,
http://susegallery.com/a/CttYWz/lietukas-114 Lietukas .

2. Install  http://packman.links2linux.org/install/isomaster ISO Master .

3. Start *isomaster* as simple user, open your LiveCD/LiveDVD .iso.

4. From //boot/i386/loader// or //boot/x86_64/loader// directory extract
/isolinux.cfg/ file, rename it to *syslinux.cfg*, add again to the same
directory in .iso image. /isolinux.cfg/ may be not deleted.

5. From //boot/i386/loader// or //boot/x86_64/loader// directory extract
*initrd* file, remove it from .iso image. Copy this /initrd/ to new
//tmp/susestudio// directory.

6. In terminal execute (as root):
*mkdir /tmp/initrd
cd /tmp/initrd
su -c "gzip -dc /tmp/susestudio/initrd | cpio -i"*

7. In //tmp/initrd/include/ file replace *CDDevice* function to this:
*function CDDevice {
        # /.../
        # changed this function so that it finds config.isoclient on vfat
disks, e.g. USB drives
        # ----
        find /lib/modules/*/kernel/fs/nls/nls* -exec insmod {} \; # needed
for vfat filesystem
        find /lib/modules/*/kernel/fs/*fat/*.ko -exec insmod {} \; # needed
for vfat filesystem
        insmod /lib/modules/*/kernel/drivers/usb/storage/usb-storage.ko #
needed for USB
        sleep 5 # fixme; do this in a proper way
        cddevs=`/usr/sbin/hwinfo --disk | grep sd | grep "Device File:" |
cut -f2 -d: | cut -f2 -d " "` # looks for disks instead of CDs
        echo cddevs $cddevs
        for i in $cddevs;do
                i=$i"1" # fixme; looks on the first partition only
                echo i $i
                if [ -b $i ];then
                        test -z $cddev && cddev=$i || cddev=$cddev:$i
                        echo cddev $cddev
                fi
        done
        if [ -z $cddev ]; then
                systemException \
                        "Failed to detect CD drive !" \
                "reboot"
        fi
}*

You can do this in KDE (with /kwrite/) by executing as simple user:
*xdg-su -c "kwrite /tmp/initrd/include"*
You can do this in GNOME (with /gedit/) by executing as simple user:
*xdg-su -c "gedit /tmp/initrd/include"*

8. Create modified /initrd/ (as root):
*mkdir -p /tmp/LiveUSB
find . | cpio -o -H newc | gzip -9 > /tmp/LiveUSB/initrd*

9. Copy new /initrd/ (//tmp/LiveUSB/initrd/) to //boot/i386/loader// or
//boot/x86_64/loader// directory of iso image with /ISO Master/.

10. Save as this new .iso image, for example, as //tmp/my_new_LiveUSB.iso/
made with /ISO Master/.
 
11. Install *syslinux*, because it contains /isohybrid/:
*sudo zypper in syslinux*

12. Modify new .iso with isohybrid (as simple user):
*isohybrid /tmp/my_new_LiveUSB.iso*

Instructions about LiveUSB image writing to USB key is here:
http://en.opensuse.org/SDB:Live_USB_stick
http://en.opensuse.org/SDB:Live_USB_stick 

--
View this message in context: http://suse-studio-users.1598176.n2.nabble.com/LiveUSB-tp4128237p6758155.html
Sent from the SUSE Studio Users mailing list archive at Nabble.com.