← Back to team overview

puredyne-team team mailing list archive

[Bug 510066] Re: bouilloncube fails creating partition table

 

this seems to fix the problem

=== modified file 'sh/make-live-device.sh'
--- sh/make-live-device.sh	2010-01-16 11:29:09 +0000
+++ sh/make-live-device.sh	2010-01-20 13:27:42 +0000
@@ -78,6 +78,8 @@
 for v_partition in $(parted -s $2 print|awk '/^ / {print $1}'); do
     parted -s $2 rm ${v_partition}
 done
+#create a new msdos disk label
+parted -s $2 mklabel msdos
 
 # prepare system partition
 SYSPART=`expr $ISOSIZEMB + 50`

-- 
bouilloncube fails creating partition table
https://bugs.launchpad.net/bugs/510066
You received this bug notification because you are a member of puredyne
team, which is the registrant for bouilloncube.

Status in bouillon cube: New

Bug description:
sudo ./make-live-device.sh /home/karsten/iso/puredyne-910-carrot_and_coriander-DVD.iso /dev/sdb

fails with this output:

[?] Are you sure your target is /dev/sdb ? (y/n)y
[*] mounting ISO
[*] ISO file is 1172 MB
[*] force unmounting partitions from /dev/sdb
[*] erasing target's partition table
[*] creating system partition of 1222 MB
parted: invalid token: primary
Error: Expecting a file system type.
Error: Partition doesn't exist.
[*] force unmounting partition /dev/sdb1
umount: /dev/sdb1: not found
mkfs.vfat 3.0.3 (18 May 2009)
/dev/sdb1: No such file or directory
[*] creating persistence partition
parted: invalid token: primary
Error: Expecting a file system type.
[*] force unmounting partition /dev/sdb2
umount: /dev/sdb2: not found
mke2fs 1.41.9 (22-Aug-2009)
Could not stat /dev/sdb2 --- No such file or directory

The device apparently does not exist; did you specify it correctly?
[*] copying live folder
mount: special device /dev/sdb1 does not exist
/mnt/make-live-iso ~/code/bzr/bouilloncube/sh
/mnt/make-live-device/./extra
/mnt/make-live-device/./extra/grub
/mnt/make-live-device/./extra/grub/grub.cfg
/mnt/make-live-device/./extra/grub/menu.lst
/mnt/make-live-device/./isolinux
/mnt/make-live-device/./isolinux/boot.cat
/mnt/make-live-device/./isolinux/exithelp.cfg
/mnt/make-live-device/./isolinux/f1.txt
/mnt/make-live-device/./isolinux/f10.txt
/mnt/make-live-device/./isolinux/f2.txt
/mnt/make-live-device/./isolinux/f3.txt
/mnt/make-live-device/./isolinux/f4.txt
/mnt/make-live-device/./isolinux/f5.txt
/mnt/make-live-device/./isolinux/f6.txt
/mnt/make-live-device/./isolinux/f7.txt
/mnt/make-live-device/./isolinux/f8.txt
/mnt/make-live-device/./isolinux/f9.txt
/mnt/make-live-device/./isolinux/isolinux.bin
/mnt/make-live-device/./isolinux/isolinux.cfg
/mnt/make-live-device/./isolinux/live.cfg
/mnt/make-live-device/./isolinux/menu.cfg
/mnt/make-live-device/./isolinux/prompt.cfg
/mnt/make-live-device/./isolinux/splash.png
/mnt/make-live-device/./isolinux/stdmenu.cfg
/mnt/make-live-device/./isolinux/vesamenu.c32
/mnt/make-live-device/./LICENSE
/mnt/make-live-device/./live
^C~/code/bzr/bouilloncube/sh /mnt/make-live-iso
[*] sylinux configuration
/dev/sdb1: No such file or directory
[*] cleaning up, unmounting and ...
umount: /mnt/make-live-device: not mounted
[*] ...done.


note the line:
parted: invalid token: primary

this is the process I use:
-plug in the stick
-stick gets automounted as /media/disk
-exectute command line above

I can fix the problem when I manually re-create a partition table as msdos and re-run the script





References