Emergency:Misused mke2fs and cannot boot into system
I installed ubuntu with wubi in windows7 64bit, and I had installed Mandriva 2011 with a disk. I tried to learn linux with Ubuntu and misused mke2fs; after I reboot my computer, windows7 and ubuntu has crashed.
I think I may used the following command Code:
mke2fs -j -L "logical"/dev/sda2 Code:
# df -h Data was not lost, and I can view my files as I could in Windows In Mandriva, there are following disks; 117.2G hard disk, files in it is the same as my Windows D:, and ubuntu was installed in it;119.0G hard disk is my G:, with my personal files in it;12.0G is the same with mandriva / (with means root), 101.3G hard disk with nothing but lost+found;DELLUTILITY should be Dell computer utilities preinstalled in my computer ;logical is the disk which I had spoiled;and OS is the C: in my Windows. After I boot, grub let me choose Mandriva or Windows. I chose windows and it tells me:FILE system type unknown, partition type 0x7 Error 13: Invalid or unsupported executable format I doubt something wrong with ubuntu grub Code:
I dont have a boot disk Help me find a way to make it work again, Thanks in advance. |
Quote:
Would have been NTFS. You will need a Win7 recovery disk to fix that. It's possible the Dell Utility partition might fix it, but even if it does, it may also reformat the whole Win7 partition. Or maybe even the entire disk. I never use the vendor utilities until after I have rebuilt the system to how I want. To get Dell update utilities and the like - and always from a [C,D]VD. Backups are useful too. |
Thanks for your reply, I am wondering what should I do what kind of recovery disk I should use, is there any reliable source available for download? Can I do it in Mandriva Linux? Is there a tutorial; Thanks a lot syg00
|
You need a Windows recovery disc - this can't be fixed from Linux.
Read this Microsoft article - note you need the RebuildBcd. I would reckon you'd need to reformat /dev/sda2 as NTFS first. It's possible this won't work unless you also replace the (Linux) MBR code by using the Bootrec.exe FixMBR subcommand as well. This will render your Linux (Mandy) unbootable - that will need to be rectified too (pretty easy). Regardless, I expect your Ubuntu Wubi to be non-bootable - I don't have any experience with Wubi, so can't suggest a means of recovering that. this LQ blog suggests you can get an evaluation copy of Win7 to do the recovery. Haven't tried it. Quite a mess huh ?. |
Thank you syg00, I download the iso file but no avaliable disk for burning
I had checked my harddisk with bootsector, and results are here: http://paste.ubuntu.com/1193796/ I hope what you told me would work. Two more questions: 1 Kindly provide me the way to reformat /dev/sda2 as NTFS, I am really scared that wrong command could make things worse. Is it mkfs.ntfs 2 Since I probably can not boot into Mandriva after the recovery, what about the sector(s) in my hard disk where mandriva was installed? Is it formatted to NTFS as well; how can I utilize it? and why sda2 is shown as NTFS in fdisk -l Thanks a lot |
The partition type (as shown by fdisk -l) is different to the filesystem type (as determined by mkfs). The former is largely ignored. But not alas by the Windows installer/recovery.
Do a mkfs.ntfs on /dev/sda2, the try the rebuildbcd. If that fails, do the fixmbr, then retry the rebuildbcd. Should work, but it's been a while since I needed to recover a Windows system. To get Mandy back bootable, see the doco - should be reasonably straight-forward from a liveCD/install CD/DVD. Been many years since I've bothered with Mandrake (as Mandy was known), but I'm sure they cover this. |
Sorry, Haven't done mkfs.ntfs before fixmbr. So I had installed a new version of windows. Fortunately no data loss.(I had done backup)
Thanks again and I am now know much more about harddisk partition than before. |
All times are GMT -5. The time now is 11:52 AM. |