Bug 242020 - Install to hard drive from LiveCD formats the hard disk when it says it won't
Summary: Install to hard drive from LiveCD formats the hard disk when it says it won't
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda   
(Show other bugs)
Version: 7
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Jeremy Katz
QA Contact:
Depends On:
Blocks: F8Blocker
TreeView+ depends on / blocked
Reported: 2007-06-01 10:46 UTC by Phil Mayers
Modified: 2011-10-27 00:26 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-09-10 14:55:17 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

Description Phil Mayers 2007-06-01 10:46:25 UTC
Description of problem:

I did the following:

 * booted the x86_64 LiveCD into RAM
 * opened a terminal
 * lvchange -ay /dev/VolGroup00/LogVol00
 * mount /dev/VolGroup00/LogVol00 /mnt
 * cd /mnt
 * mkdir old
 * mv * old
 * cd
 * umount /mnt
 * double click the install to hard-drive icon
 * at the disk setup section, select the LogVol00 and DO NOT format the drive,
click through the warning about "should format" and again say "DO NOT format",
then install
 * system boots; drive has in fact been formatted

Version-Release number of selected component (if applicable):

F7 release version

How reproducible:

Have only tried once, will give it another go shortly when I find a spare PC

Steps to Reproduce:
1. follow above instructions
2. reboot into system
3. see that disk has been formatted
Actual results:

Data erased (thankfully I had nothing on this machine)

Expected results:

Data not be erased

Additional info:

Comment 1 Jeremy Katz 2007-06-04 19:01:46 UTC
The way the live install works, there's no way to avoid a "format"; we do a
direct copy of the filesystem used for the live image to the hard drive and then
resize accordingly.  

I'll try to make some adjustments so this is clearer in F8

Comment 2 Jeremy Katz 2007-09-10 14:55:17 UTC
This should be clearer as of Fedora 8, test2

Comment 3 Doug McCasland 2011-10-27 00:26:05 UTC
I was testing Fedora 15 Live CD, because I wanted to do the same thing as Phil did on a live system (in my case, to convert an Ubuntu desktop to Fedora).  

Before running the Install to Disk, I opened a shell, mounted an existing blank non-LVM ext4 file system, and created some test files on it.  I unmounted it.  I used the Custom feature of Install to indicate which file system to use for root and NOT format.  After running the Install, the root fs was re-formatted and the test files were gone (for the reason given by Jeremy).

There is no indication in the UI or doc that the root file system will be always be formatted and all existing data last.  It's even more surprising that it happens considering all the warnings in the UI and doc about losing data in every other case where a fs format is requested/required.

So for LiveCD, the root fs should not have an option to format -- instead, it should have a warning that it will be formatted.

Other than that, I'm liking F15!

Note You need to log in before you can comment on or make changes to this bug.