linaro-media-create fails with "Error: Partition(s) on /dev/sdc are being used. ./linaro-media-create: FAILED"

Bug #687636 reported by Michael Hudson-Doyle
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Linaro Image Tools
Fix Released
High
Unassigned

Bug Description

mwh@grond:trunk$ sudo ./linaro-media-create --dev beagle --rootfs ext3 --mmc /dev/sdc --binary /home/mwh/Downloads/linaro-natty-headless-tar-20101202-1.tar.gz --hwpack /home/mwh/Downloads/hwpack_linaro-omap3_20101201-0_armel_supported.tar.gz

...

Cleaning up ...Done
---------------------------------------------------

Error: Partition(s) on /dev/sdc are being used.
./linaro-media-create: FAILED

Performing cleanup...

Umounting Partitions

I think the "Cleaning up ...Done" message is the last thing linaro-hwpack-install prints.

Related branches

Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :

It works if you unmount the partitions before you run the script. This never used to be required, and gnome behaving the way it does, it was a useful feature.

Revision history for this message
Guilherme Salgado (salgado) wrote : Re: [Bug 687636] Re: linaro-media-create fails with "Error: Partition(s) on /dev/sdc are being used. ./linaro-media-create: FAILED"

I thought this could be a regression introduced during the python
migration, but I've just reproduced the error on a pre-python-migration
branch (r166), so it doesn't look like it.

This is kind of expected, though, as l-m-c will use parted/sfdisk to
partition your disk unless you pass --no-part to it. And I don't
remember seeing any code in there to umount stuff before partitioning.
(FWIW, l-m-c raises a similar error if you use --no-part as it will try
to run mkfs on a mounted partition)

This is a trace of the failure:

+ for func in '$DEPLOY_STEPS'
+ create_partitions
+ '[' /dev/sdb ']'
+ sudo parted -s /dev/sdb mklabel msdos
Error: Partition(s) on /dev/sdb are being used.

 status triaged
 importance high

Changed in linaro-image-tools:
importance: Undecided → High
status: New → Triaged
Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :

I wonder how it ever worked then :-) Still, it would be nice.

Cheers,
mwh

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.