ubuntu14.04 installation hang on "The installer has detected that the following disks have mounted partitions"
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | debian-installer (Ubuntu) |
Undecided
|
Unassigned | ||
Bug Description
---Problem Description---
ubuntu14.04 installation hang on
"
[!!] Partition disks
The installer has detected that the following disks have mounted
partitions:? /dev/sda
Do you want the installer to try to unmount the partitions on these
disks before continuing? If you leave them mounted, you will not be
able to create, delete, or resize partitions on these disks, but you may be able to install to existing partitions there.
Unmount partitions that are in use?
<Go Back> <Yes> <No>
"
---uname output---
~ # uname -a Linux ubucn 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 x86_64 GNU/Linux
Machine Type = vm on dx360m4 host
---System Hang---
The preseed conf is:
root@ubumn14:~# cat /install/
### Localization
d-i debian-
d-i localechooser/
# Keyboard Selection
d-i console-
d-i keyboard-
### Network Configuration
d-i netcfg/get_hostname string unassigned-hostname
d-i netcfg/get_domain string unassigned-domain
d-i netcfg/wireless_wep string
d-i netcfg/dhcp_timeout string 120
### Mirror settings
# If you select ftp, the mirror/country string does not need to be set.
d-i mirror/country string manual
d-i mirror/protocol string http
d-i mirror/
d-i mirror/http/proxy string
# Suite to install.
#d-i mirror/suite string testing
# Suite to use for loading installer components (optional).
#d-i mirror/udeb/suite string testing
### Partitioning
# This creates a small /boot partition, suitable
# swap, and uses the rest of the space for the root partition:
d-i partman-auto/method string regular
d-i partman-
d-i partman-
d-i partman/
#create the /tmp/partitioning based on the uefi or legacy bios
d-i partman/
debconf-set partman-auto/disk ""
d-i partman-
# This makes partman automatically partition without confirmation, provided
# that you told it what to do using one of the methods above.
d-i partman/
d-i partman/
d-i partman/confirm boolean true
d-i partman/
### Account setup
d-i passwd/root-login boolean true
d-i passwd/make-user boolean false
d-i passwd/
### Clock and time zone setup
d-i clock-setup/ntp boolean true
d-i clock-setup/
d-i clock-setup/utc boolean true
d-i time/zone string America/New_York
### Apt setup
d-i apt-setup/
d-i apt-setup/universe boolean false
d-i apt-setup/backports boolean false
d-i apt-setup/updates boolean false
### Boot loader installation
d-i grub-installer/
### Package selection
tasksel tasksel/first multiselect standard
# gawk required for the xCAT scripts to work
# Otherwise it installs mawk, which doesn't work
d-i pkgsel/include string openssh-server ntp gawk nfs-common snmpd
d-i debian-
d-i pkgsel/
d-i pkgsel/updatedb boolean false
### Finishing up the installation
d-i finish-
### X configuration
xserver-xorg xserver-
xserver-xorg xserver-
select medium
xserver-xorg xserver-
select 1024x768 @ 60 Hz
d-i preseed/
chmod u+x ubucn.pre; \
./ubucn.pre
d-i preseed/
chmod u+x ubucn.post; \
cp ./ubucn.post /target/
mount -o bind /proc /target/proc -t proc; \
mount -o bind /dev /target/dev; \
mount -o bind /dev/pts /target/dev/pts -t devpts; \
mount -o bind /sys /target/sys; \
chroot /target /root/post.script
Install method: Network
Install disk info:
The partition script:
ubuntu-boot ::
100 50 100 ext3
$primary{ } $bootable{ } method{ format } format{ } use_filesystem{ } filesystem{ ext3 } mountpoint{ /boot }
.
500 10000 1000000000 ext3
method{ format } format{ } use_filesystem{ } filesystem{ ext3 } mountpoint{ / }
.
2048 512 300% linux-swap
method{ swap } format{ }
.
Install ISO Information: # cat /install/
> Hi Song Yang,
> Have you tried using the latest iso build available at
> http://
> Can you please let us know if the iso here fixes the issue ?
>
> Thanks.
hi, I just tried this trusty-
| bugproxy (bugproxy) wrote : hardware summary | #1 |
| tags: | added: architecture-x8664 bugnameltc-113702 severity-critical targetmilestone-inin1404 |
| bugproxy (bugproxy) wrote : partman log | #2 |
Default Comment by Bridge
Default Comment by Bridge
| affects: | ubuntu → debian-installer (Ubuntu) |
------- Comment From <email address hidden> 2014-08-20 06:07 EDT-------
-- Externalizing comment from Song Yang --
is there any update on this? this is a block issue for my project
| Dan Kegel (dank) wrote : | #5 |
I ran into this, too, running a script that sets up a system using virtualbox.
| Dan Kegel (dank) wrote : | #6 |
Affects both ubuntu-
| Launchpad Janitor (janitor) wrote : | #7 |
Status changed to 'Confirmed' because the bug affects multiple users.
| Changed in debian-installer (Ubuntu): | |
| status: | New → Confirmed |
| Martijn Koster (makuk66) wrote : | #8 |
This was reported on the forums too: http://
I've tracked down the problem to a change in debian-
Looking at the changelog (https:/
[ Joey Hess ]
* fetch-url: Try to mountmedia when getting a file, to support preseed
via USB from netboot.
That change adds a call to mountmedia (http://
That code will list the disk partitions (http://
In my case that finds /dev/sda1 (my existing HD boot partition) and mounts that as /media.
My CD is on /dev/sr0 is mounted as /cdrom. I have no other media I need to have mounted.
The forum suggested a workaround: unmount /media in an early preseed command.
You want to ignore failures when you run on a system where /media does not get mounted (blank HD).
This worked for me:
d-i preseed/
What is the right fix here? I can't imagine how mountmedia picking a HD partition on the target disk and mounting it makes a lot of sense in the overwhelming majority of cases. Should it not be doing that? Should debian-
| Koji (kj-tanaka) wrote : | #9 |
I have the same issue, but "d-i preseed/
Is there any other way to workaround?
| Koji (kj-tanaka) wrote : | #10 |
I figured out that the workaround suggested by Martijin works for 14.04.1, but doesn't work for 14.04.2. If you end up in the same situation as mine, try 14.04.1 on this link.
http://
| tweej (tweej) wrote : | #11 |
Patch attached for workaround on >= 14.04.2.
| tweej (tweej) wrote : | #12 |
Above is patch for partman-base, not debian-installer which Martijn says is root cause.
The attachment "020-allow_
[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]
| tags: | added: patch |
| john (john-l-montes) wrote : | #14 |
I ran into a similar situation with Ubuntu 14.04.3 during an exercise to have complete un-attended system provisioning of VM's and Baremetal
The work-around helped by adding--> d-i preseed/
| doshinirav (doshinirav) wrote : | #15 |
Same problem on Ubuntu 14.04.4 during a VM install on /dev/sda1 which is a /boot partition from previous install get automounted even with folllowing commands in the kickstart.
preseed partman/
preseed preseed/
| coli (sebastian-coli) wrote : | #16 |
Still a problem with Ubuntu 16.04 Xenial.
| Seth Fitzsimmons (mojodna) wrote : | #17 |
Preseed-based workarounds are insufficient when installing from a USB device onto a bare (unpartitioned) drive, as it's not possible for the preseed to actually load (the installer gets stuck "loading the CD-ROM" since the proper device has already been mounted on /media).
mountmedia runs prior to to the preseed and picks the first suitable device. With a bare drive (attached as /dev/sda), it's the USB drive (/dev/sdb1).
| MartinL (landa-martin) wrote : | #18 |
I can confirm this issue when installing from a USB device onto a bare drive. Is there any way how to customize image using d-i? I tested Ubuntu 16.04 server image.
| Tobias Volfing (tobiasvv) wrote : | #19 |
I can confirm this issue when installing from ubuntu-
| Jb (jebsolutions) wrote : | #20 |
This is a really annoying bug. In my opinion there is no good really to mount /dev/sda1, the /boot partition from my previous install...
I was able to work around the bug by adding this to the %pre section in the kickstart config:
# -- Hack starts! block installer mounting /dev/sda1 on /media
# We do this...by mounting the install media (/dev/sd0 or /dev/sd?) onto /media first!
# so when the installer tries it's bad mount it silently fails
INSTALL_
mount "$INSTALL_MEDIA" /media
# -- Hack ends
This might also work around the 33% partition freeze on /dev/sda1...I can't trigger that any more so can't test it.
| Jb (jebsolutions) wrote : | #21 |
Just an addendum. The above works for cd (which always forced read only). To also work for usb I had to add the "-oro" to the command:
# -- Hack starts! block installer mounting /dev/sda1 on /media
# We do this...by mounting the install media (/dev/sd0 or /dev/sd?) onto /media first!
# so when the installer tries it's bad mount it silently fails
INSTALL_
mount -oro "$INSTALL_MEDIA" /media
# -- Hack ends
| dragon788 (dragon788) wrote : | #22 |
I was running into the same issue and finally by luck happened upon a set of slides that allowed me to automate this and there was an accompanying code repository with the full preseed file. https:/
Many people suggest using `preseed/
The correct way to do this is to add the following anywhere in your preseed file that is referenced by the boot command.
```d-i partman/
USBDEV=
BOOTDEV=
debconf-set partman-auto/disk $BOOTDEV;\
debconf-set grub-installer/
umount /media;
```


Default Comment by Bridge