[Bug 471279] New: error setting type of partition error after yast re-sizes a ntfs (single big partition)
https://bugzilla.novell.com/show_bug.cgi?id=471279 Summary: error setting type of partition error after yast re-sizes a ntfs (single big partition) Classification: openSUSE Product: openSUSE 11.1 Version: Final Platform: x86-64 OS/Version: openSUSE 11.1 Status: NEW Severity: Normal Priority: P5 - None Component: YaST2 AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: erikj@sgi.com QAContact: jsrain@novell.com Found By: --- User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.5) Gecko/2008121300 SUSE/3.0.5-1.1 Firefox/3.0.5 When YaST is presented with a disk that has an msdos label with a single partition for ntfs, it offers some suggestions on re-sizing it to fit linux in. YaST suggests resizing ntfs and creating a swap, a root, and a home. I kept these defaults (although I clicked edit to look more closely, I made no changes). Then I let YaST do its thing. It properly re-sized the ntfs partition but failed with the error: ""Error Failure occured during following action: Setting type of partition /dev/sda5 to 82 System error code was: -1012" I looked at the partition table from virtual 5 and didn't see anything wrong: Model: ATA QEMU HARDDISK (scsi) Disk /dev/sda: 16.1GB Sector size (logical/physical): 512B/512B Partition Table: msdos Number Start End Size Type File system Flags 1 32.3kB 6013MB 6013MB primary ntfs , , , , , , , , , type=07, , 2 6013MB 16.1GB 10.1GB extended , , , , , , lba, , , type=0f, , 5 6013MB 6597MB 584MB logical , , , , , , , , , type=83, , I was able to change the type manually using fdisk (part 5 to type 82). This was booting from the opensuse 11.1 dvd, auto conifguration. I told it to do minimal x11 in this case. In reality, I hit this problem with my brand new notebook and I was able to recover from it manually. However, I felt bad that I didn't report a bug and used it as an experiment to use qemu-kvm. I don't want to blow away or risk my new notebook's OS choices so these duplication instructions use qemu-kvm. I wanted to learn it anyway :) So to re-create the problem, here is what I did... * Installed qemu, qemu-kvm (opensuse11.1 + updates) on the host opensuse11.1 * loaded kvm-intel kernel module * created a test disk image on the host: # qemu-img create -f qcow2 openSUSE11.1-resize-bug 15GB * Copied the OpenSUSE11.1 dvd iso in to /tmp on the host. * Started qemu up, telling it to boot from cd (that -tftp option was left there by mistake and I include it here only to show exactly what I did). So this gets the guest going with it's blank disk: # qemu-kvm -cpu core2duo -drive file=openSUSE11.1-resizeug -tftp /tmp -boot d -cdrom /tmp/openSUSE-11.1-DVD-x86_64.iso * I booted the rescue mode * From the rescue environment, I used parted to create a single partition on the virtual disk. The whole partition is type ntfs. * In to the rescue env, I copied mkfs.ntfs from actual host, and used it to create the ntfs filesystem. I used the -Q (quick) option. # /tmp/mkfs.ntfs -Q /dev/sda1 * I mounted the ntfs filesystem in the rescue environment using ntfs-3g to get write support: # mkdir /tmp/1 # mount -t ntfs-3g /dev/sda1 /tmp/1 * I copied /dev/zero to some test files on /tmp/1 just to give yast stuff to move around. I used up around 1gb of space. * I unmounted the filesystem and rebooted. * So, at this moment, YaST should encounter a single disk with a single partition all ntfs for its consideration. * Now I booted in to the opensuse11.1 installer once again and let yast propose the scenario and the rest is as I described initially. y2logs will be attached. Reproducible: Always -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=471279
User erikj@sgi.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=471279#c1
--- Comment #1 from Erik Jacobson
https://bugzilla.novell.com/show_bug.cgi?id=471279
User aschnell@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=471279#c2
Arvin Schnell
participants (1)
-
bugzilla_noreply@novell.com