Ok, scenario:
1. That unlucky card was formatted via Canon A510 camera.
2. Familiar installed on it (converted fat16->fat32,
shrinked fat32, all ok).
3. Now, want to Remove Linux.
Below fdisk output and paul-SD128-sector1.dd is *before*
running Remove Linux:
root@ramdisk-rescue:~# fdisk -l /dev/mmcblk0
Disk /dev/mmcblk0: 128 MB, 128450560 bytes
8 heads, 32 sectors/track, 980 cylinders
Units = cylinders of 256 * 512 = 131072 bytes
Device Boot Start End Blocks
Id System
/dev/mmcblk0p1 1 352 45040
6 FAT16
/dev/mmcblk0p2 * 354 979 80128
83 Linux
root@ramdisk-rescue:~# fdisk -lu /dev/mmcblk0
Disk /dev/mmcblk0: 128 MB, 128450560 bytes
8 heads, 32 sectors/track, 980 cylinders, total 250880
sectors
Units = sectors of 1 * 512 = 512 bytes
Device Boot Start End Blocks
Id System
/dev/mmcblk0p1 32 90111 45040
6 FAT16
/dev/mmcblk0p2 * 90368 250623 80128
83 Linux
root@ramdisk-rescue:~# parted -s /dev/mmcblk0 print unit s
print unit cyl print
Disk geometry for /dev/mmcblk0: 0kB - 128MB
Disk label type: msdos
Number Start End Size Type File system
Flags
1 16kB 46MB 46MB primary fat16
2 46MB 128MB 82MB primary ext2 boot
Disk geometry for /dev/mmcblk0: 0s - 250879s
Disk label type: msdos
Number Start End Size Type File system
Flags
1 32s 90111s 90080s primary fat16
2 90368s 250623s 160256s primary ext2 boot
Disk geometry for /dev/mmcblk0: 0cyl - 979cyl
BIOS cylinder,head,sector geometry: 980,8,32. Each
cylinder is 131kB.
Disk label type: msdos
Number Start End Size Type File system
Flags
1 0cyl 351cyl 351cyl primary fat16
2 353cyl 978cyl 626cyl primary ext2 boot
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Ok, scenario:
1. That unlucky card was formatted via Canon A510 camera.
2. Familiar installed on it (converted fat16->fat32,
shrinked fat32, all ok).
3. Now, want to Remove Linux.
Below fdisk output and paul-SD128-sector1.dd is *before*
running Remove Linux:
root@ramdisk-rescue:~# fdisk -l /dev/mmcblk0
Disk /dev/mmcblk0: 128 MB, 128450560 bytes
8 heads, 32 sectors/track, 980 cylinders
Units = cylinders of 256 * 512 = 131072 bytes
Device Boot Start End Blocks
Id System
/dev/mmcblk0p1 1 352 45040
6 FAT16
/dev/mmcblk0p2 * 354 979 80128
83 Linux
root@ramdisk-rescue:~# fdisk -lu /dev/mmcblk0
Disk /dev/mmcblk0: 128 MB, 128450560 bytes
8 heads, 32 sectors/track, 980 cylinders, total 250880
sectors
Units = sectors of 1 * 512 = 512 bytes
Device Boot Start End Blocks
Id System
/dev/mmcblk0p1 32 90111 45040
6 FAT16
/dev/mmcblk0p2 * 90368 250623 80128
83 Linux
root@ramdisk-rescue:~# parted -s /dev/mmcblk0 print unit s
print unit cyl print
Disk geometry for /dev/mmcblk0: 0kB - 128MB
Disk label type: msdos
Number Start End Size Type File system
Flags
1 16kB 46MB 46MB primary fat16
2 46MB 128MB 82MB primary ext2 boot
Disk geometry for /dev/mmcblk0: 0s - 250879s
Disk label type: msdos
Number Start End Size Type File system
Flags
1 32s 90111s 90080s primary fat16
2 90368s 250623s 160256s primary ext2 boot
Disk geometry for /dev/mmcblk0: 0cyl - 979cyl
BIOS cylinder,head,sector geometry: 980,8,32. Each
cylinder is 131kB.
Disk label type: msdos
Number Start End Size Type File system
Flags
1 0cyl 351cyl 351cyl primary fat16
2 353cyl 978cyl 626cyl primary ext2 boot
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Ok, so "Remove Linux" failed as usual, in FAT grow. syslog
is attached. Alas, it lacks any useful info. Going to add
parted command/outpu logging to syslog now.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Logged In: YES
user_id=11970
Marcus, was this implemented/tested?
Logged In: YES
user_id=1398882
This was working properly in earlier versions.
I have noted the problem, however, and I believe I may have
addressed the issue in the scratch branch.
Logged In: YES
user_id=1398882
Related to old version of dosfstools.
Corrected by Paul's upgrade.
Fixed in 0.6.2
Logged In: YES
user_id=11970
Unfortunately, this is not fixed. Same error as in the
initial description. Reopening.
Logged In: YES
user_id=1398882
Added debug output for this issue in rev 208.
Logged In: YES
user_id=11970
Ok, scenario:
1. That unlucky card was formatted via Canon A510 camera.
2. Familiar installed on it (converted fat16->fat32,
shrinked fat32, all ok).
3. Now, want to Remove Linux.
Below fdisk output and paul-SD128-sector1.dd is *before*
running Remove Linux:
root@ramdisk-rescue:~# fdisk -l /dev/mmcblk0
Disk /dev/mmcblk0: 128 MB, 128450560 bytes
8 heads, 32 sectors/track, 980 cylinders
Units = cylinders of 256 * 512 = 131072 bytes
Device Boot Start End Blocks
Id System
/dev/mmcblk0p1 1 352 45040
6 FAT16
/dev/mmcblk0p2 * 354 979 80128
83 Linux
root@ramdisk-rescue:~# fdisk -lu /dev/mmcblk0
Disk /dev/mmcblk0: 128 MB, 128450560 bytes
8 heads, 32 sectors/track, 980 cylinders, total 250880
sectors
Units = sectors of 1 * 512 = 512 bytes
Device Boot Start End Blocks
Id System
/dev/mmcblk0p1 32 90111 45040
6 FAT16
/dev/mmcblk0p2 * 90368 250623 80128
83 Linux
root@ramdisk-rescue:~# parted -s /dev/mmcblk0 print unit s
print unit cyl print
Disk geometry for /dev/mmcblk0: 0kB - 128MB
Disk label type: msdos
Number Start End Size Type File system
Flags
1 16kB 46MB 46MB primary fat16
2 46MB 128MB 82MB primary ext2 boot
Disk geometry for /dev/mmcblk0: 0s - 250879s
Disk label type: msdos
Number Start End Size Type File system
Flags
1 32s 90111s 90080s primary fat16
2 90368s 250623s 160256s primary ext2 boot
Disk geometry for /dev/mmcblk0: 0cyl - 979cyl
BIOS cylinder,head,sector geometry: 980,8,32. Each
cylinder is 131kB.
Disk label type: msdos
Number Start End Size Type File system
Flags
1 0cyl 351cyl 351cyl primary fat16
2 353cyl 978cyl 626cyl primary ext2 boot
MBR before running Remove Linux
Logged In: YES
user_id=11970
Ok, scenario:
1. That unlucky card was formatted via Canon A510 camera.
2. Familiar installed on it (converted fat16->fat32,
shrinked fat32, all ok).
3. Now, want to Remove Linux.
Below fdisk output and paul-SD128-sector1.dd is *before*
running Remove Linux:
root@ramdisk-rescue:~# fdisk -l /dev/mmcblk0
Disk /dev/mmcblk0: 128 MB, 128450560 bytes
8 heads, 32 sectors/track, 980 cylinders
Units = cylinders of 256 * 512 = 131072 bytes
Device Boot Start End Blocks
Id System
/dev/mmcblk0p1 1 352 45040
6 FAT16
/dev/mmcblk0p2 * 354 979 80128
83 Linux
root@ramdisk-rescue:~# fdisk -lu /dev/mmcblk0
Disk /dev/mmcblk0: 128 MB, 128450560 bytes
8 heads, 32 sectors/track, 980 cylinders, total 250880
sectors
Units = sectors of 1 * 512 = 512 bytes
Device Boot Start End Blocks
Id System
/dev/mmcblk0p1 32 90111 45040
6 FAT16
/dev/mmcblk0p2 * 90368 250623 80128
83 Linux
root@ramdisk-rescue:~# parted -s /dev/mmcblk0 print unit s
print unit cyl print
Disk geometry for /dev/mmcblk0: 0kB - 128MB
Disk label type: msdos
Number Start End Size Type File system
Flags
1 16kB 46MB 46MB primary fat16
2 46MB 128MB 82MB primary ext2 boot
Disk geometry for /dev/mmcblk0: 0s - 250879s
Disk label type: msdos
Number Start End Size Type File system
Flags
1 32s 90111s 90080s primary fat16
2 90368s 250623s 160256s primary ext2 boot
Disk geometry for /dev/mmcblk0: 0cyl - 979cyl
BIOS cylinder,head,sector geometry: 980,8,32. Each
cylinder is 131kB.
Disk label type: msdos
Number Start End Size Type File system
Flags
1 0cyl 351cyl 351cyl primary fat16
2 353cyl 978cyl 626cyl primary ext2 boot
Logged In: YES
user_id=11970
Sorry for double-post.
Logged In: YES
user_id=11970
Ok, so "Remove Linux" failed as usual, in FAT grow. syslog
is attached. Alas, it lacks any useful info. Going to add
parted command/outpu logging to syslog now.
syslog for failed Remove Linux operation
Logged In: YES
user_id=11970
Attached MBR of the same card, Canon-formatted.
MBR of the same card, Canon-formatted
syslog woth parted cmds for successful Install Linux
Logged In: YES
user_id=11970
Applied patch to log parted commands to syslog. FYI, a
syslog of *successful* Linux install (just to compare with
later filaure reports).
Logged In: YES
user_id=11970
Seems like parted doesn't like geometry of this exact card, as it works for Marcus.