l-m-c should umount partitions before making filesystems

Bug #673412 reported by Marcin Juszkiewicz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Linaro Image Tools
Fix Released
High
Guilherme Salgado

Bug Description

Cleaning up ...Done
Checking that no-one is using this disk right now ...
OK

Disk /dev/sdh: 1022 cylinders, 255 heads, 63 sectors/track
Old situation:
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0

   Device Boot Start End #cyls #blocks Id System
/dev/sdh1 0 - 0 0 0 Empty
/dev/sdh2 0 - 0 0 0 Empty
/dev/sdh3 0 - 0 0 0 Empty
/dev/sdh4 0 - 0 0 0 Empty
New situation:
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0

   Device Boot Start End #cyls #blocks Id System
/dev/sdh1 * 0+ 8 9- 72261 c W95 FAT32 (LBA)
/dev/sdh2 9 492 484 3887730 83 Linux
/dev/sdh3 0 - 0 0 0 Empty
/dev/sdh4 0 - 0 0 0 Empty
Successfully wrote the new partition table

Re-reading the partition table ...

If you created or changed a DOS partition, /dev/foo7, say, then use dd(1)
to zero the first 512 bytes: dd if=/dev/zero of=/dev/foo7 bs=512 count=1
(See fdisk(8).)
waiting for partitioning to settle ...done.

Formating Boot Partition

mkfs.vfat 3.0.9 (31 Jan 2010)

Formating ext4 Partition

mke2fs 1.41.12 (17-May-2010)
/dev/sdh2 is mounted; will not make a filesystem here!
./linaro-media-create: FAILED

Performing cleanup...

Umounting Partitions

And nothing gets done cause automounter kicked in and mounted /dev/sdh2 in meantime...

Related branches

Steve Langasek (vorlon)
Changed in linaro-image-tools:
status: New → Triaged
importance: Undecided → Medium
Changed in linaro-image-tools:
assignee: nobody → Guilherme Salgado (salgado)
importance: Medium → High
Changed in linaro-image-tools:
status: Triaged → In Progress
Changed in linaro-image-tools:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.