LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-02-2012, 10:46 AM   #1
fkayal
LQ Newbie
 
Registered: Sep 2012
Location: Manchester, CT
Posts: 2

Rep: Reputation: Disabled
Question lost access to my windows7 drive(Dual-boot windows 7&Ubuntu) - Bootmgr is compressed


I lost access to my windows 7 drive (Dual-boot windows 7 & Ubuntu). By mistake I compress my windows 7 drive C:\ from within windows. Every time I try to run Windows 7 from my dual boot menu. I get the message: Bootmgr is compressed, Press CTRL-ALT-DEL to restart. I could run Bootrec /fixmbr, diskpart, or attrib to rebuild my MBR table through DOS command windows using my windows 7 recovery CD. The problem I or windows 7 recovery CD cannot access drive C: where is my windows 7 (/Dev/sda1). I get the error message: Cannot open volume for direct access or system cannot find the drive path or drive specified. I still can access all my windows folders and files through home folder in Ubuntu. I relay don't want to reformat and reinstall windows . I come across your website for the use of the DD command, which allow to run DOS commands within Ubuntu, which I did it in basic general to check my MBR record, etc. I am not familiar with the use of the DD commands and how to run the exact command to rebuild my BCD with the codes:

bootrec /fixmbr
bootrec /fixboot
bootrec /rebuildbcd

or compact /u /a c:\*.*

or chkdsk /r /f c:

This is the output of my partitions within Ubuntu with the command:

sudo fdisk -lu

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000d86c0

Device Boot Start End Blocks Id System
/dev/sda1 * 63 910358895 455179416+ 7 HPFS/NTFS/exFAT
/dev/sda2 910360574 972582911 31111169 5 Extended
/dev/sda3 972582912 976771055 2094072 82 Linux swap / Solaris
/dev/sda5 910360576 972582911 31111168 83 Linux

I really appreciated, if anyone could kindly, help code the above DOS commands using the DD commands to fix this issue. I am just not comfortable of doing so for not knowing the exact codes and in the process destroy my MBR and reinstall my both OS allover again. Any other advice to how to fix this issue.
 
Old 09-03-2012, 12:28 PM   #2
casualfred
Member
 
Registered: Aug 2012
Location: Kentucky, USA
Distribution: Slackware
Posts: 97

Rep: Reputation: 27
Unfortunately, the dd command in Linux doesn't allow you to run DOS commands. It actually is a direct file copying program (example: if you wanted to make a direct backup of a partition). I would do three things:

1) backup all your important Windows files
2) try following the steps here from the Microsoft forum
3) if that gets Windows working again, fix it back to dual boot by booting from the Ubuntu CD; follow this guide for that.

Best of luck!
 
Old 09-04-2012, 12:25 AM   #3
fkayal
LQ Newbie
 
Registered: Sep 2012
Location: Manchester, CT
Posts: 2

Original Poster
Rep: Reputation: Disabled
Thank you casualfred. I did go through the method at Microsoft forum (I get the above /fixmbr codes) and also using windows recovery CD, but with no luck, I get the same error message: Cannot open volume for direct access or system cannot find the drive path or drive specified. I also, tried boot-repair, bootmed, mbrtool, testdisk, and and DIY data recovery utlity, again with no luck. According to Windows Tech, this is linux issue and should be solved within Ubuntu. This is why, I thought DD commands will be able to so. Any other advice?
 
Old 09-04-2012, 08:55 AM   #4
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,547

Rep: Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498
Quote:
By mistake I compress my windows 7 drive C:\ from within windows
How can that be a Linux problem? You refer to BCD in your initial post, are you using the windows bootloader to boot both or did you have Grub installed? My understnding is that the programs needed to repair the mbr are not available on a Recovery disk and you need a full installation CD/DVD. I believe there are programs available to do this which you can download for free.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
CentOS & Windows7 dual boot problem rupeshm62 Linux - Desktop 3 08-15-2012 11:36 AM
Bootmgr is missing on ubuntu and windows 7 dual boot bomberb17 Linux - Newbie 5 04-10-2011 07:40 PM
Dual Boot Grub. Windows XP BOOTMGR not found thealmightyos Linux - Software 15 12-04-2010 02:19 AM
dual boot problem: windows7 and ubuntu baxzius Linux - Newbie 2 02-03-2010 04:33 PM
loading dual boot ubuntu: lost access to everything (no boot at all) JohnLocke Linux - Newbie 10 10-07-2008 10:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration