Bug 623226

Summary: zypp: installation from hard disk impossible
Product: [openSUSE] openSUSE 11.3 Reporter: Stefan Ziegler <j9002j>
Component: InstallationAssignee: E-mail List <zypp-maintainers>
Status: RESOLVED FIXED QA Contact: Jiri Srain <jsrain>
Severity: Major    
Priority: P2 - High CC: aj, ch.truee, coolo, forgotten_cAXlJ_FoSf, john, ma, Martin.Seidler, Michael.Zapf, neotheone0, snwint
Version: Final   
Target Milestone: ---   
Hardware: All   
OS: openSUSE 11.3   
Whiteboard: maint:released:11.3:37206
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Stefan Ziegler 2010-07-17 16:56:39 UTC
User-Agent:       Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.9.0.18) Gecko/2010020400 SUSE/3.0.18-0.1 Firefox/3.0.18

Attempt to install from a USB flash drive. Proceed as described in the manual 

  http://en.opensuse.org/SDB:Live_USB_stick 

First process the main installation DVD image with 

  isohybrid file.iso

Then prepare the USB flash drive with

  dd if=./file.iso of=/dev/sdb bs=4M; sync


Boot the laptop from the USB flash drive and proceed with installation. When it comes to package selection, no repository can be found and the size of packages to be installed is 0.

Same story with different computers, 32 and 64 bit, and different USB flash drives.


Reproducible: Always

Steps to Reproduce:
Follow manual http://en.opensuse.org/SDB:Live_USB_stick

Actual Results:  
Unable to create repository from URL 'hd://?device=/dev/sdb1'
Details: Empty destination URI:
hd:///?device=/dev/sdb1 

Expected Results:  
Normal installation.

With opensuse 11.2, the supplied iso image could not be directly used for creating installation USB flash drive with dd if=...

However, there was a Linux professional from Indonesia (unfortunately have forgotten his name, but he should be still alive and well) who has published steps that allowed me to prepare an installation USB flash drive. The procedure did not work with opensusue 11.3 because of missing menu.lst or other reasons.
Comment 1 John van Rensburg 2010-07-19 14:48:31 UTC
There is a problem in trying to create a bootable install usb from the dvd.iso using the normal methods for 11.2 dvd.iso creation.
The drive boots and the install runs till package selection takes place when the install and no longer recognizes the usb drive.
The workaround is to do a hdd install using the network boot iso.

The live.iso's do not have a problem but do not allow a hdd install.
Comment 2 Andreas Jaeger 2010-07-21 08:10:50 UTC
Assigning to isohybrid maintainer.
Comment 3 Michael Zapf 2010-07-28 09:17:21 UTC
Same problem here. Some additional observations:

- Stick correctly boots as /dev/sdb (or /dev/sdb1) with iso filesystem (after applying isohybrid).

- The installation source is not found, so I have to explicitly select the stick as "hard disk" /dev/sdb1, path /.

- Later, after the license screen a message appears that usb-storage will be loaded.

- During the system configuration check the installer complains that the partitions on /dev/sdb cannot be edited with parted (which is not surprising as it is an iso image).

- A message follows stating that the repository from URL 'hd:/?device=/dev/sdb1' cannot be created, details: empty destination in URI 'hd:/?device=/dev/sdb1'

- There is a chance to manually select the repository; however, the drop-down selection for the device does not contain /dev/sdb or /dev/sdb1 but only partitions from /dev/sda (the internal drive). 

- At that point, switching to the console I can successfully do a "mount /dev/sdb /mnt" (or /dev/sdb1) and read the files in there. So the stick is still there. 

I suspect that the installer falsely concludes that /dev/sdb is not a valid device for installation (although it booted from there). 

Michael
Comment 4 Steffen Winterfeldt 2010-08-05 15:35:06 UTC
Just looked at it with Michael and it looks like we screwed up hard disk
installs in oS 11.3 entirely. :-((
Comment 5 Steffen Winterfeldt 2010-08-05 15:39:42 UTC
A workaround is to use the boot option namescheme=by-label (in case
of the iso image) or namescheme=by-uuid (if you don't have a label set).

So the steps to a usb stick install are at the moment:

1) dd iso to usb stick
2) run isohybrid on it
3) boot and
  3a) set install target to disk via F4 (leave all fields empty)
  3b) add boot option namescheme=by-label
Comment 6 Michael Zapf 2010-08-05 18:53:08 UTC
Confirmed. 

Boot option namescheme=by-label allows me to install from stick. I used the same stick as described above but on another PC (the former one meanwhile got its installation).

BTW, USB stick installations should be carefully checked for the next releases; in my opinion we will see USB sticks nearly completely taking the place of burned DVDs in short term.

Michael
Comment 7 Martin Seidler 2010-08-09 09:12:33 UTC
Documentation:

I do not rate it useful/necessary to open an *extra* documentation bug.

But would it be possible that someone with the necessary knowledge please take a look at:

* the openSUSE wiki:
** SDB:Live USB stick
http://wiki.opensuse.org/SDB:Live_USB_stick

* the openSUSE forums:
** Thread: Cannot install 11.3 from USB flash drive (51 postings)
http://forums.opensuse.org/english/get-help-here/install-boot-login/442070-cannot-install-11-3-usb-flash-drive-6.html
** Thread: HOW DO I MAKE A BOOTABLE USB DRIVE (16 postings)
http://forums.opensuse.org/english/get-help-here/install-boot-login/442850-how-do-i-make-bootable-usb-drive.html

* the mailing lists:
**11.3: 1GB RAM f. Netbook Installation zu wenig
http://lists.opensuse.org/opensuse-de/2010-08/msg00037.html

and make some edits in the wiki
(and maybe some explaining/hints in the forums/mailing lists, too)?

Regards

Martin
Comment 8 Michael Andres 2010-08-09 16:51:11 UTC
(In reply to comment #4)
> Just looked at it with Michael and it looks like we screwed up hard disk
> installs in oS 11.3 entirely. :-((

I'd not say it's screwed up. Well, actually zypp looks for an entry in /dev/disk/by-uuid or /dev/disk/by-label which has the same major/minor device number than the specified media. 

The problem is that the device is not listed there, although it probably should, shouldn't it?


Calling vol_id was just a fallback if there is no by-uuid/by-label entry. This fallback now fails as vol_id is dropped.
Comment 9 Michael Andres 2010-08-10 12:41:51 UTC
Fixed libzypp-7.9.2 to use bklid instead of dropped vol_id. 

For older zypp versions you need to use a device that either appears in /dev/disk/by-uuid or /dev/disk/by-label.
Comment 10 A B 2010-10-30 10:56:59 UTC
hi linux hackers , here is the easy way to have opensuse 11.3 ready to install
from a usb flash disk . 

1) format your usb stick with Fat32 . 8 GB 
2) isohybrid file.iso  (opensuse 11.3 DVD image )
3) run unetbootin . I used the last version 
   choose opensuse factory and load your hybrid image
4) now you should have a working usb media to install 
  opensuse 11.3 . plug your pendrive , reboot 
  your pc then choose boot from usb .
  you will have a prompt .
  don't choose default , choose linux .

5) after opensuse installer finish loading , change the setting
so that you can install from hard disk . you will see your flash
there , it will ask u for a mount point , just type '/' and hit
OK . 

6) then come the beautiful graphic install (no bug ) . Done


have a lot fun ..
Comment 11 Christian Truee 2010-11-08 14:27:11 UTC
(In reply to comment #10)
> hi linux hackers , here is the easy way to have opensuse 11.3 ready to install
> from a usb flash disk . 
> 
> 1) format your usb stick with Fat32 . 8 GB 
> 2) isohybrid file.iso  (opensuse 11.3 DVD image )
> 3) run unetbootin . I used the last version 
>    choose opensuse factory and load your hybrid image
> 4) now you should have a working usb media to install 
>   opensuse 11.3 . plug your pendrive , reboot 
>   your pc then choose boot from usb .
>   you will have a prompt .
>   don't choose default , choose linux .
> 
> 5) after opensuse installer finish loading , change the setting
> so that you can install from hard disk . you will see your flash
> there , it will ask u for a mount point , just type '/' and hit
> OK . 
> 
> 6) then come the beautiful graphic install (no bug ) . Done
> 
> 
> have a lot fun ..

That's isn't correct.
With item 3 you can choose the distrbution OR the image.
I tried it with the hybrid image but with no success. The installation brokes with the same error descriped above.
When I choose the distribution unetbootin goes into the internet and download all the files for the choosen distribution.

There is not a lot of fun ...
Regards
Comment 12 Forgotten User cAXlJ_FoSf 2010-11-16 14:51:25 UTC
Reopening since I just ran into this issue when trying to install oS 11.4 M3 from a flash drive.
Comment 13 Michael Andres 2010-11-16 15:20:44 UTC
Please attach the yast logfiles (see http://en.opensuse.org/openSUSE:Bugreport_YaST)
Comment 14 Forgotten User cAXlJ_FoSf 2010-11-16 15:40:46 UTC
Apparently this was a problem with my manual setup of the flash drive. Directly using the image with dd and isohybrid made it work as expected, sorry for the noise.
Comment 15 Swamp Workflow Management 2010-12-02 09:52:15 UTC
Update released for: libsatsolver, libsatsolver-debugsource, libsatsolver-demo, libsatsolver-demo-debuginfo, libsatsolver-devel, libsatsolver-devel-debuginfo, libzypp, libzypp-bindings, libzypp-debuginfo, libzypp-debugsource, libzypp-devel, perl-satsolver, perl-satsolver-debuginfo, perl-zypp, python-satsolver, python-satsolver-debuginfo, python-zypp, ruby-satsolver, ruby-satsolver-debuginfo, ruby-zypp, satsolver-tools, satsolver-tools-debuginfo, yast2-qt-pkg, yast2-qt-pkg-debuginfo, yast2-qt-pkg-debugsource, zypper, zypper-debuginfo, zypper-debugsource
Products:
openSUSE 11.3 (debug, i586, x86_64)
Comment 16 Martin Seidler 2010-12-02 10:29:04 UTC
(In reply to comment #15)
> Update released for: libsatsolver, libsatsolver-debugsource, libsatsolver-demo,
> libsatsolver-demo-debuginfo, libsatsolver-devel, libsatsolver-devel-debuginfo,
> libzypp, libzypp-bindings, libzypp-debuginfo, libzypp-debugsource,
> libzypp-devel, perl-satsolver, perl-satsolver-debuginfo, perl-zypp,
> python-satsolver, python-satsolver-debuginfo, python-zypp, ruby-satsolver,
> ruby-satsolver-debuginfo, ruby-zypp, satsolver-tools,
> satsolver-tools-debuginfo, yast2-qt-pkg, yast2-qt-pkg-debuginfo,
> yast2-qt-pkg-debugsource, zypper, zypper-debuginfo, zypper-debugsource
> Products:
> openSUSE 11.3 (debug, i586, x86_64)
1) How are these updates connected to "Bug 623226 - zypp: installation from hard disk impossible"? Should and will the DVD and live CD iso images (GNOME, KDE; ...) for 11.3 also be changed? Or will the solution only effect the next release (openSUSE 11.4)?


2) In General:
I think it would be desirable to have a working and well documented easy graphical way
a) to make a live USB drive/live USB stick just by booting and starting a burned live CD on a computer with an CD drive, plugging in a USB drive and a few clicks (like with Knoppix).
b) to make an live USB drive on a netbook with a Microsoft system running and without any CD drive.
(But this last two issues may be more issues of the existing or new openFATE threads? - I am a bit lost in the differentiation and the connections of 'new' feature realization and hunting/retracing bugs in to be already 'realized' features ;) )