LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   kiwi usb image creator (https://www.linuxquestions.org/questions/linux-software-2/kiwi-usb-image-creator-842538/)

kzcom 11-05-2010 07:59 AM

kiwi usb image creator
 
I have a SUSElinux with some specific services such http server and openldap and so on that i configure them. using this SUSElin, i want to create a live USB stick image which allows we to boot and run from the usb without using any other storage device of the computer.

1)Is it possible to create it with Yast Image Creator so i haven't need to configure spesific services again?
2)i tried to create an usb stick with Yast Image Creator but failed with these errs in preparation step:
-----------
Nov-05 05:18:13 <2> : Path /home/myiso is writable, trying read-only mount
Nov-05 05:18:13 <1> : EXEC [rm -f /home/myiso/bob 2>&1]
Nov-05 05:18:13 <1> : EXEC [mount -t aufs -o dirs=/home/myiso=ro aufs /tmp/YaST2-06316-RVCG8S/myphysical//base-system/home/myiso 2>&1]
Nov-05 05:18:14 <1> : EXEC [mount -t unionfs -o dirs=/var/cache=rw:/home/myiso=ro,ro unionfs /tmp/YaST2-06316-RVCG8S/myphysical//base-system/home/myiso 2>&1]
skipped
Nov-05 05:18:14 <2> : Couldn't mount read-only, using bind mount
Nov-05 05:18:14 <1> : EXEC [mount -o bind "/home/myiso" "/tmp/YaST2-06316-RVCG8S/myphysical//base-system/home/myiso" 2>&1]
done
Nov-05 05:18:14 <1> : Set package manager lock
Nov-05 05:18:14 <1> : EXEC [touch /var/lock/kiwi-init.lock]
Nov-05 05:18:14 <1> : EXEC [rm -f /var/cache/kiwi/zypper/*.repo]
Nov-05 05:18:14 <1> : Adding chroot zypper service: home_myiso
Nov-05 05:18:14 <1> : EXEC [chroot "/tmp/YaST2-06316-RVCG8S/myphysical" /usr/bin/zypper --non-interactive --no-gpg-checks --reposd-dir /var/cache/kiwi/zypper --cache-dir /var/cache/kiwi/zypper --raw-cache-dir /var/cache/kiwi/zypper addrepo --type Plaindir 'file:///base-system//home/myiso' home_myiso 2>&1]
done
Nov-05 05:18:37 <1> : Adding chroot zypper service: cd:__
Nov-05 05:18:37 <1> : EXEC [chroot "/tmp/YaST2-06316-RVCG8S/myphysical" /usr/bin/zypper --non-interactive --no-gpg-checks --reposd-dir /var/cache/kiwi/zypper --cache-dir /var/cache/kiwi/zypper --raw-cache-dir /var/cache/kiwi/zypper addrepo --type YaST 'cd:///' cd:__ 2>&1]
failed
Nov-05 05:18:47 <3> : zypper: This is a changeable read-only media (CD/DVD), disabling autorefresh.
Adding repository 'cd:__' [......done]
Repository 'cd:__' successfully added
Enabled: Yes
Autorefresh: No
URI: cd:///
Reading data from 'cd:__' media
Retrieving repository 'cd:__' metadata [.Failed to mount cd:/// on : Mounting media failed
Abort, retry, ignore? [a/r/i/?] (a): a
error]
Repository 'cd:__' is invalid.
Can't provide /media.1/media : Media Exception
Please check if the URIs defined for this repository are pointing to a valid repository.
Problem reading data from 'cd:__' media
Please check if your installation media is valid and readable.
Nov-05 05:18:48 <1> : Release package manager lock
Nov-05 05:18:48 <1> : EXEC [rm -f /var/lock/kiwi-init.lock]
Nov-05 05:18:48 <3> : Image installation failed failed
Nov-05 05:18:48 <1> : Umounting path: /tmp/YaST2-06316-RVCG8S/myphysical//base-system/home/myiso
Nov-05 05:18:48 <1> : EXEC [umount "/tmp/YaST2-06316-RVCG8S/myphysical//base-system/home/myiso" 2>&1]
Nov-05 05:18:48 <1> : EXEC [rmdir -p "/tmp/YaST2-06316-RVCG8S/myphysical//base-system/home/myiso" 2>&1]
Nov-05 05:18:48 <1> : Umounting path: /tmp/YaST2-06316-RVCG8S/myphysical//var/cache/kiwi
Nov-05 05:18:48 <1> : EXEC [umount "/tmp/YaST2-06316-RVCG8S/myphysical//var/cache/kiwi" 2>&1]
Nov-05 05:18:48 <1> : Umounting path: /tmp/YaST2-06316-RVCG8S/myphysical//var/cache/zypp
Nov-05 05:18:48 <1> : EXEC [umount "/tmp/YaST2-06316-RVCG8S/myphysical//var/cache/zypp" 2>&1]
Nov-05 05:18:48 <1> : Umounting path: /tmp/YaST2-06316-RVCG8S/myphysical/dev/pts
Nov-05 05:18:48 <1> : EXEC [umount "/tmp/YaST2-06316-RVCG8S/myphysical/dev/pts" 2>&1]
Nov-05 05:18:48 <1> : Umounting path: /tmp/YaST2-06316-RVCG8S/myphysical/sys
Nov-05 05:18:48 <1> : EXEC [umount "/tmp/YaST2-06316-RVCG8S/myphysical/sys" 2>&1]
Nov-05 05:18:48 <1> : Umounting path: /tmp/YaST2-06316-RVCG8S/myphysical/dev
Nov-05 05:18:48 <1> : EXEC [umount "/tmp/YaST2-06316-RVCG8S/myphysical/dev" 2>&1]
Nov-05 05:18:48 <1> : Umounting path: /tmp/YaST2-06316-RVCG8S/myphysical/proc
Nov-05 05:18:48 <1> : EXEC [umount "/tmp/YaST2-06316-RVCG8S/myphysical/proc" 2>&1]
Nov-05 05:18:48 <3> : KIWI exited with error(s) done
----------
i do it with this command:
#kiwi --prepare /home/myiso --root /tmp/mystick
it complete successfully but after running :
#kiwi --create /tmp/mystick --type usb d /tmp/mystick-result
it's failed with same errors:
Nov-05 05:18:13 <2> : Path /home/myiso is writable, trying read-only mount
.
.
.
what is it poblem?

Simon Bridge 11-05-2010 08:19 AM

Have you seen:
http://en.opensuse.org/SDB:Live_USB_stick
... for this method you have to already have a live CD ISO on file. You can make one from your install with the linux live scripts or do it the OpenSUSE way.

Looking through what you posted:

Failed to mount cd:/// on : Mounting media failed

... you have a CD as one of your repositories? YaST suggests:

Please check if the URIs defined for this repository are pointing to a valid repository.

Please check if your installation media is valid and readable.


The URI is cd:/// ... is there an installation CD in the drive?

jefro 11-05-2010 03:06 PM

Also see here
http://www.pendrivelinux.com/search/suse

kzcom 11-06-2010 09:16 AM

I have the openSUSE 11.2 installation DVD and i want to use it as repository in Yast Image Creator,but i don't know how to use it.
in this case,what is repository name and its location?

i think the media is mounted automatically,when it insert in drive.but the errs are same:
...
Mounting media failed...

Simon Bridge 11-07-2010 03:34 AM

The first link I gave you should help there.
Check your logs to see where the dvd is mounted - if it is automounted, then you will probably see an icon for it on the desktop. After inserting the DVD, go look for it in the file system.

If it has mounted, it is clearly not mounted where YaST expects to find a repo.

This should be enabled under software repositories.


All times are GMT -5. The time now is 02:28 AM.