Re: HOWTO: migrate wubi install to partition
Originally Posted by penguinslide
I believe you've misinterpreted the fdisk output, bcbc. /dev/sda1 is not an extended partition; it's marked as a type-0x1c (hidden FAT32) partition in the partition table, although blkid has identified it as containing an ext4 filesystem. (More on that shortly.) I suspect you got confused by the fact that penguinslide did not use code formatting, which caused the fdisk columnar output to be lost, so you misinterpreted /dev/sda1 as starting at cylinder 2167 and /dev/sda2 as starting at cylinder 2168. This would be consistent with /dev/sda1 being an extended partition that contains /dev/sda2; but in fact the output indicates that /dev/sda1 ends at 2167. I've added the appropriate [code] and [/code] tags to the fdisk output quoted above, but sometimes that goes wonky in quoted text, so I can't guarantee it'll be any better. (Edit: It looks good now.)
Originally Posted by bcbc
As to the type codes, Linux ignores them, so if the partition really does contain an ext4 filesystem, that shouldn't make much of a difference; however, it's possible that blkid is misidentifying the filesystem for one reason or another. Perhaps it's been damaged in some way. Perhaps penguinslide knows what the partition should be. Running fsck on the partition might fix any damage; or it might make it worse. If it contains any useful information, I advise doing a low-level backup of /dev/sda1, as in:
Change /some/backup/file to a (non-existent; dd will create it) file on a partition with enough free space to hold the whole partition image (about 16 GiB).
sudo dd if=/dev/sda1 of=/some/backup/file
You can then experiment with fsck and, if appropriate, change the type code for the partition using fdisk.
Of course, if the partition doesn't hold any useful data, you could just wipe it clean and set the partition type code to whatever's appropriate.
Beyond that, I can't comment, since I've never used WUBI, much less bcbc's script, so I don't know what the script does.
If I've suggested a solution to a problem and you're not the original poster, do not try my solution! Problems can seem similar but be different, and a good solution to one problem can make another worse. Post a new thread with your problem details.