Bug 507068

Summary: Can't install when install media is on same hard disk
Product: [Fedora] Fedora Reporter: Amadeus <sha256sum>
Component: anacondaAssignee: David Lehman <dlehman>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: urgent Docs Contact:
Priority: low    
Version: 11CC: rmaximo, vanmeeuwen+fedora
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-08-31 15:50:43 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
anaconda log
none
df -h # mounted partitions in tty2. Notice no /home
none
program.log
none
storage.log
none
output from "mount" none

Description Amadeus 2009-06-20 13:32:12 UTC
* copy all files from the ISO to the root of /dev/sda2
* Reboot
* In grub do:

Press 'c' in GRUB

grub> root (hd0,1)
grub> kernel /isolinux/vmlinuz askmethod
grub> initrd /isolinux/initrd.img
grub> boot

* In anaconda select Custom layout in partitioning.

* Select to format /dev/sda1 and set mount point to /

* Accept

* Now you get an error that anaconda can't find install media.

For some reason formating sda1 have the side effect that anaconda can't see sda2 anylonger.

Comment 1 David Lehman 2009-08-28 15:59:29 UTC
If you can still reproduce this failure, please attach the files /tmp/storage.log, /tmp/anaconda.log, and /tmp/program.log to this bug report. Thanks.

Comment 2 Amadeus 2009-08-28 17:24:33 UTC
How do I get those files copied to another partition, so I can attach them afterwards?

From what I remember there are no terminals that I can use in that state of the installation.

I only have one try to get these logs, as the slash partition have been formatted at this point of the installation.

So when I try, I at least want to be sure that I can get the logs files out =)

Comment 3 David Lehman 2009-08-28 19:21:31 UTC
Well, you can copy them onto a usb thumbdrive or over the network using scp. I suppose you could also mount /dev/sda2 and copy them there, but you will need a shell to do any of that.

Do you not see a shell on tty2?

It would also be useful to know the exact message you are seeing that indicates a failure to find the install media.

Comment 4 Amadeus 2009-08-28 21:28:56 UTC
Ok, I think that's the problem is.

My hard disk looks like this:

/dev/sda1 swap
/dev/sda2 slash
/dev/sda3 /home

and I have the installation files in /home/maj/fedora

I select Custom partition layout:

Format: /dev/sda2 as ext3 with mount point /

and setting /dev/sda3 with mount point /home

Anaconda then unmounts all partitions before format, which means that /home/maj/fedora is no longer available.

Comment 5 Amadeus 2009-08-28 21:55:45 UTC
Created attachment 359120 [details]
anaconda log

grep for "fedora12a". The install files are in /home/maj/fedora12a

Comment 6 Amadeus 2009-08-28 21:57:30 UTC
Created attachment 359121 [details]
df -h # mounted partitions in tty2. Notice no /home

Comment 7 Amadeus 2009-08-28 21:57:50 UTC
Created attachment 359122 [details]
program.log

Comment 8 Amadeus 2009-08-28 21:58:11 UTC
Created attachment 359123 [details]
storage.log

Comment 9 Amadeus 2009-08-28 21:59:40 UTC
Created attachment 359124 [details]
output from "mount"

Comment 10 Amadeus 2009-08-28 22:06:18 UTC
In anaconda the error window says:

Missing ISO 9660 Image

The installer has tried to mount the image #1, cannot find it
on the harddrive.

Please copy this image to the drive and click Retry. Click
Exit to abort the installation.

Comment 11 David Lehman 2009-08-28 22:27:48 UTC
You must include the actual ISO images in the fedora12a directory. Anaconda will not use an unpacked tree, except for install.img.

See the section on repo= in the anaconda command line options guide:

    http://fedoraproject.org/wiki/Anaconda/Options


If you are trying to use the contents of the ISOs instead of the actual ISOs it will not work.

Comment 12 Amadeus 2009-08-28 23:09:03 UTC
> You must include the actual ISO images in the fedora12a directory.

anaconda doesn't find the DVD iso, if I place it in fedora12a. It works on RHEL5, but not in fedora.

> If you are trying to use the contents of the ISOs instead of the actual ISOs it
> will not work.

I think that should be written in anaconda, because I am sure many thinks the ISO should be extracted just like it have to when installing from http or nfs.

And it is a pretty bad situation the user are now in. No slash or boot loader. No way back.

Comment 13 David Lehman 2009-08-29 00:15:53 UTC
(In reply to comment #12)
> > You must include the actual ISO images in the fedora12a directory.
> 
> anaconda doesn't find the DVD iso, if I place it in fedora12a. It works on
> RHEL5, but not in fedora.

You have to put install.img somewhere, too. We won't look for it in the iso images. So you would extract install.img, then pass both 
stage2=<url to install.img> and repo=<url to iso directory>.

> 
> > If you are trying to use the contents of the ISOs instead of the actual ISOs it
> > will not work.
> 
> I think that should be written in anaconda, because I am sure many thinks the
> ISO should be extracted just like it have to when installing from http or nfs.

We used to support this, years ago, but we removed it. I know that part of the reason was that it had so few users that it was not worth the maintenance effort.

> 
> And it is a pretty bad situation the user are now in. No slash or boot loader.
> No way back.  

This is unfortunate, but it is a risk for anyone who is reinstalling their system. Next time you should create a rescue cd or a live image as a way in before reinstalling. Also, it's worthwhile to read the documentation before installation to make sure what you are attempting is supported.

Comment 14 Amadeus 2009-08-29 02:52:50 UTC
> You have to put install.img somewhere, too. We won't look for it in the iso
> images. So you would extract install.img, then pass both 
> stage2=<url to install.img> and repo=<url to iso directory>.

Ok, that is way too complicated that I want to install Fedora using a hard disk =)

When I can select it in the menu, I (and I think many others) expect it to work seamlessly.

Wouldn't Fedora be better of with "Install from hard disk" completely removed?


> We used to support this, years ago, but we removed it. I know that part of the
> reason was that it had so few users that it was not worth the maintenance
> effort.

When you say "remove", does that mean "moved into 'askmethod'" as kernel parameter?

I would seriously miss "Install from NFS", if it was removed. I don't like optical medias =)

Comment 15 David Lehman 2009-08-31 15:50:43 UTC
(In reply to comment #14)
> > You have to put install.img somewhere, too. We won't look for it in the iso
> > images. So you would extract install.img, then pass both 
> > stage2=<url to install.img> and repo=<url to iso directory>.
> 
> Ok, that is way too complicated that I want to install Fedora using a hard disk
> =)

I have always thought the harddrive methods were too difficult to use. I prefer to do network-based installs, but use a dvd when the network is not an option. Other people like the harddrive method, however, so it remains.

> > We used to support this, years ago, but we removed it. I know that part of the
> > reason was that it had so few users that it was not worth the maintenance
> > effort.
> 
> When you say "remove", does that mean "moved into 'askmethod'" as kernel
> parameter?

I mean that we removed the old way of doing harddrive installs, with an unpacked tree. We removed it completely.

We did not remove http or nfs install methods.


Since this is not a bug but rather a misunderstanding of the documented install method I am going to close this as such.