Package: coreutils
Version: 8.23-4
Severity: critical
Tags: d-i

Hello, Debian Team.

First, I do apologize if I have put this into the wrong category of bug report.
Because I have to submit the package name, which is sync command is from the
coreutils package.
But it definitely related with Debian ISO image, too.

>From these Installation Guide pages:
https://www.debian.org/releases/stable/i386/ch04s03.html.en
https://www.debian.org/releases/stable/amd64/ch04s03.html.en

We only need 2 commands to make a bootable USB stick:
# cp debian.iso /dev/sdX
# sync

These were what I use to make a bootable USB stick:
- 1 TB external hard disk with two partitions (1 GB formatted with NTFS and the
rest of space formatted with EXT4).
- 8 GB flashdisk.

These were the steps what I did:
- I have Debian ISO image in my external hard disk, in the EXT4 partition
(source).
- I would like to make a bootable USB stick on my flashdisk (destination).
- I did cp command (debian-8.2.0-amd64-DVD-1.iso) from external hard disk to
the flashdisk, both of them exactly via USB connection.
- Then I did sync command.

After that, both of them became bootable USB!
I lost the partitions and data in my external hard disk. They won't be
displayed, because already became a Debian USB installer.

I'm afraid if I restore the partition in my external hard disk, all the data
would become corrupt.
Because the ISO image is a hybrid which can either be burned to a disc or
directly written to a USB drive, it does not include a standard partition
table.

Finally, I have to recover my files in external hard disk with the testdisk
package, without recover its partition.
I saw the EXT4 partition that I can recover the files, but the NTFS partition
has lost.

I don't know this problem is related with the coreutils package or Debian ISO
image.
But it would happen if use those commands when the ISO source from the USB
connection, too.
Then both of the USB drives would become bootable.

This problem doesn't explained at the Installation Guides page. At least,
someone has tried before me.
It could be a big mess for an end user, partition and data loss at USB source.



-- System Information:
Debian Release: 8.2
  APT prefers stable
  APT policy: (900, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.16.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages coreutils depends on:
ii  libacl1      2.2.52-2
ii  libattr1     1:2.4.47-2
ii  libc6        2.19-18+deb8u1
ii  libselinux1  2.3-2

coreutils recommends no packages.

coreutils suggests no packages.

-- no debconf information

Reply via email to