I should have tested, the iso doesn't fit in the resulting free space.

set -ex

wget -N 
http://archive.ubuntu.com/ubuntu/dists/disco/main/installer-amd64/current/images/hd-media/boot.img.gz
wget -N 
http://cdimage.ubuntu.com/releases/19.04/release/ubuntu-19.04-server-amd64.iso

gunzip --keep --force boot.img.gz

mkdir -p mnt
sudo mount boot.img mnt

df mnt
ls -l ubuntu-19.04-server-amd64.iso

sudo cp ubuntu-19.04-server-amd64.iso mnt/


++ df mnt
Filesystem     1K-blocks  Used Available Use% Mounted on
/dev/loop1        800208 28612    771596   4% /home/carl/temp/disco/mnt
++ ls -l ubuntu-19.04-server-amd64.iso
-rw-rw-r-- 1 carl carl 790626304 May 10 01:44 ubuntu-19.04-server-amd64.iso
++ sudo cp ubuntu-19.04-server-amd64.iso mnt/
cp: error writing 'mnt/ubuntu-19.04-server-amd64.iso': No space left on device

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1807047

Title:
  sync hd-media FLOPPY_SIZE with debian

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/debian-installer/+bug/1807047/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to