Lost my Windows 7 OC four days after installing Ubuntu.

Asked by thomas dieter

Just installed Ubuntu as dual boot with the Windows 7 which came with my new Acer Aspire 722 acquired only five months ago. Except for major unresolved Ubuntu problems with Skype, Rhythmbox and Wine, both operating systems worked well for three days. Then my Windows 7 disappeared. It is no longer listed as an option in Grub. I do not have and never had a Windows disc. What happened? Is my Windows OC and all files within gone forever?

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu grub2 Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

No as you will have a backup of your important data.

Can you give the output of:

uname -a; dpkg -l | grep linux-image

Thanks

Revision history for this message
thomas dieter (greentr3) said :
#2

Not sure how I do that.  Do I plug that into the Terminal and send you a copy of what comes up in the Terminal?  I am very new to this.  Thank You

________________________________
 From: actionparsnip <email address hidden>
To: <email address hidden>
Sent: Monday, August 20, 2012 7:35 PM
Subject: Re: [Question #206365]: Lost my Windows 7 OC four days after installing Ubuntu.

Your question #206365 on Ubuntu changed:
https://answers.launchpad.net/ubuntu/+question/206365

    Status: Open => Needs information

actionparsnip requested more information:
No as you will have a backup of your important data.

Can you give the output of:

uname -a; dpkg -l | grep linux-image

Thanks

--
To answer this request for more information, you can either reply to
this email or enter your reply at the following page:
https://answers.launchpad.net/ubuntu/+question/206365

You received this question notification because you asked the question.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

Yes, press CTRL+ALT+T and paste the command into the terminal and hit ENTER

Revision history for this message
thomas dieter (greentr3) said :
#4

This is what it reveals:

pjmatvey@pjmatvey-AO722:~$ uname -a; dpkg -l | grep linux-image

Linux pjmatvey-AO722 3.2.0-29-generic-pae #46-Ubuntu SMP Fri Jul 27 17:25:43 UTC 2012 i686 athlon i386 GNU/Linux
ii  linux-image-3.2.0-23-generic-pae       3.2.0-23.36
   Linux kernel image for version 3.2.0 on 64 bit x86 SMP
ii  linux-image-3.2.0-29-generic-pae       3.2.0-29.46
   Linux kernel image for version 3.2.0 on 32 bit x86 SMP
ii  linux-image-generic-pae                       3.2.0.29.31
   Generic Linux kernel image

pjmatvey@pjmatvey-AO722:~$

________________________________
 From: actionparsnip <email address hidden>
To: <email address hidden>
Sent: Tuesday, August 21, 2012 7:26 AM
Subject: Re: [Question #206365]: Lost my Windows 7 OC four days after installing Ubuntu.

Your question #206365 on Ubuntu changed:
https://answers.launchpad.net/ubuntu/+question/206365

    Status: Open => Answered

actionparsnip proposed the following answer:
Yes, press CTRL+ALT+T and paste the command into the terminal and hit
ENTER

--
If this answers your question, please go to the following page to let us
know that it is solved:
https://answers.launchpad.net/ubuntu/+question/206365/+confirm?answer_id=2

If you still need help, you can reply to this email or go to the
following page to enter your feedback:
https://answers.launchpad.net/ubuntu/+question/206365

You received this question notification because you asked the question.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#5

Try:

sudo apt-get --purge remove linux-image-3.2.0-23-generic-pae; sudo apt-get --purge autoremove

HTH

Revision history for this message
thomas dieter (greentr3) said :
#6

This came up:

pjmatvey@pjmatvey-AO722:~$ sudo apt-get --purge remove linux-image-3.2.0-23-generic-pae; sudo apt-get --purge autoremove
[sudo] password for pjmatvey:
Sorry, try again.
[sudo] password for pjmatvey:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  linux-image-3.2.0-23-generic-pae*
0 upgraded, 0 newly installed, 1 to remove and 13 not upgraded.
1 not fully installed or removed.
After this operation, 113 MB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 178006 files and directories currently installed.)
Removing linux-image-3.2.0-23-generic-pae ...
Examining /etc/kernel/prerm.d.
run-parts: executing /etc/kernel/prerm.d/dkms 3.2.0-23-generic-pae /boot/vmlinuz-3.2.0-23-generic-pae
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.2.0-23-generic-pae /boot/vmlinuz-3.2.0-23-generic-pae
update-initramfs: Deleting /boot/initrd.img-3.2.0-23-generic-pae
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.2.0-23-generic-pae /boot/vmlinuz-3.2.0-23-generic-pae
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.2.0-29-generic-pae
Found initrd image: /boot/initrd.img-3.2.0-29-generic-pae
Found memtest86+ image: /boot/memtest86+.bin
done
The link /vmlinuz is a damaged link
Removing symbolic link vmlinuz
 you may need to re-run your boot loader[grub]
The link /initrd.img is a damaged link
Removing symbolic link initrd.img
 you may need to re-run your boot loader[grub]
The link /initrd.img.old is a damaged link
Removing symbolic link initrd.img.old
 you may need to re-run your boot loader[grub]
Purging configuration files for linux-image-3.2.0-23-generic-pae ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.2.0-23-generic-pae /boot/vmlinuz-3.2.0-23-generic-pae
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.2.0-23-generic-pae /boot/vmlinuz-3.2.0-23-generic-pae
Setting up alsa-hda-dkms (0.1) ...
Removing old alsa-hda-0.1 DKMS files...

------------------------------
Deleting module version: 0.1
completely from the DKMS tree.
------------------------------
Done.
Loading new alsa-hda-0.1 DKMS files...
First Installation: checking all kernels...
Building only for 3.2.0-29-generic-pae
Building for architecture i686
Building initial module for 3.2.0-29-generic-pae
Error! Bad return status for module build on kernel: 3.2.0-29-generic-pae (i686)
Consult /var/lib/dkms/alsa-hda/0.1/build/make.log for more information.
dpkg: error processing alsa-hda-dkms (--configure):
 subprocess installed post-installation script returned error exit status 10
Errors were encountered while processing:
 alsa-hda-dkms
E: Sub-process /usr/bin/dpkg returned an error code (1)
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 13 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up alsa-hda-dkms (0.1) ...
Removing old alsa-hda-0.1 DKMS files...

------------------------------
Deleting module version: 0.1
completely from the DKMS tree.
------------------------------
Done.
Loading new alsa-hda-0.1 DKMS files...
First Installation: checking all kernels...
Building only for 3.2.0-29-generic-pae
Building for architecture i686
Building initial module for 3.2.0-29-generic-pae
Error! Bad return status for module build on kernel: 3.2.0-29-generic-pae (i686)
Consult /var/lib/dkms/alsa-hda/0.1/build/make.log for more information.
dpkg: error processing alsa-hda-dkms (--configure):
 subprocess installed post-installation script returned error exit status 10
Errors were encountered while processing:
 alsa-hda-dkms
E: Sub-process /usr/bin/dpkg returned an error code (1)

pjmatvey@pjmatvey-AO722:~$

________________________________

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#7

ok run:

sudo update-grub

If you see windows in the output, reboot to test

Revision history for this message
thomas dieter (greentr3) said :
#8

No Windows in the output.  Just this:

pjmatvey@pjmatvey-AO722:~$ sudo update-grub
[sudo] password for pjmatvey:
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.2.0-29-generic-pae
Found initrd image: /boot/initrd.img-3.2.0-29-generic-pae
Found memtest86+ image: /boot/memtest86+.bin
done
pjmatvey@pjmatvey-AO722:~$

Revision history for this message
pjmatvey (pjmatvey) said :
#9

So this concludes that Ubuntu destroyed my new notebook's Windows 7 OS and all my data and files are gone forever?

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#10

What is the output of:

sudo fdisk -l

Thanks

Revision history for this message
pjmatvey (pjmatvey) said :
#11

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x000712fb

   Device Boot Start End Blocks Id System
/dev/sda1 * 2048 585939547 292968750 83 Linux
/dev/sda2 617322494 625141759 3909633 5 Extended
Partition 2 does not start on physical sector boundary.
/dev/sda5 617322496 625141759 3909632 82 Linux swap / Solaris

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#12

Looks like you selected the wrong install option. The installer has used all the available space to install with

Revision history for this message
pjmatvey (pjmatvey) said :
#13

Thanks for your effort.

How could that happen? My Windows 7 and Ubutu eached worked for 3-4 days then Windows 7 disappeared.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#14

Not sure, if you run:

df -h

Does it occupy the full space?

Can you help with this problem?

Provide an answer of your own, or ask thomas dieter for more information if necessary.

To post a message you must log in.