LinuxQuestions.org
Help answer threads with 0 replies.
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 03-10-2014, 04:58 PM   #1
EmmetOT
LQ Newbie
 
Registered: Mar 2014
Posts: 2

Rep: Reputation: Disabled
Apparently Ubuntu overwrote both OSs on my dual partition?


My computer dual booted Windows 7 and Windows 8. I decided to install Ubuntu and since I wasn't using Windows 8, figured I'd reuse the partition I'd made for it. So (in Windows 7) I formatted the Windows 8 drive.

So when I start up the Ubuntu install, it tells me its found a Windows 8 install and asks what I want to do. I figure it found some residual boot instructions or something, and since I want to replace it, I tell it to erase that information.

Now my computer boots straight into Ubuntu, and I can't seem to find any trace of my old Windows 7 install. (Though I'm really inexperienced with Linux and maybe it's there somewhere.) However I have a suspiciously large amount of space on this partition...

It's not the end of the world if I deleted everything, I just lost some game saves and some photos, but it'd be nice to know if anything's retrievable.

And if everything IS gone - if someone could point out a way to merge my partitions, since I'm apparently single booting now, that'd be nice too.
 
Old 03-10-2014, 05:08 PM   #2
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 6,869

Rep: Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247
The first step to find out what is still on the computer is to open a terminal in Ubuntu and type: sudo fdisk -l(Lower case Letter L in the command). In the output in the far right column 'System' look to see if you have HPFS/NTFS on any partition. If you do, you still have some type of windows partition.
 
1 members found this post helpful.
Old 03-10-2014, 05:14 PM   #3
EmmetOT
LQ Newbie
 
Registered: Mar 2014
Posts: 2

Original Poster
Rep: Reputation: Disabled
Doesn't look like it.

...Whoops!

Code:
Disk /dev/sda: 640.1 GB, 640135028736 bytes
255 heads, 63 sectors/track, 77825 cylinders, total 1250263728 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: 0x00055fa1

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048      499711      248832   83  Linux
/dev/sda2          501758  1250263039   624880641    5  Extended
/dev/sda5          501760  1250263039   624880640   8e  Linux LVM

Disk /dev/mapper/ubuntu--vg-root: 635.6 GB, 635579662336 bytes
255 heads, 63 sectors/track, 77271 cylinders, total 1241366528 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: 0x00000000

Disk /dev/mapper/ubuntu--vg-root doesn't contain a valid partition table

Disk /dev/mapper/ubuntu--vg-swap_1: 4294 MB, 4294967296 bytes
255 heads, 63 sectors/track, 522 cylinders, total 8388608 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: 0x00000000

Disk /dev/mapper/ubuntu--vg-swap_1 doesn't contain a valid partition table

Disk /dev/sdb: 4010 MB, 4010803200 bytes
128 heads, 54 sectors/track, 1133 cylinders, total 7833600 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: 0xc3072e18

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *        3192     7833599     3915204    c  W95 FAT32 (LBA)
 
Old 03-10-2014, 10:51 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 14,834

Rep: Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820
You are using the entire disk for Ubuntu - no merging to be done. I'm surprised that used LVM, but I haven't installed it in a while.

So here's what happened.
You had Win7 - when you installed Win8 it updated the Win7 bootcode in the Win7 partition - so while it looked like (and was) the Win8 bootloder, the code actually exited in the Win7 partition.
The Ubuntu installer sees that Win8 boot code and (wrongly) suggests to you it's a Win8 installation. Which you say to delete ...

Ubuntu then uses the entire (now empty) disk. Not your fault BTW, just another lame installer.
 
Old 03-11-2014, 08:47 AM   #5
kishor joshi
Member
 
Registered: Jan 2013
Location: Pune,India
Distribution: Linux Mint17.1 Cinnamon, 64-bit,Lubuntu 14.04
Posts: 54
Blog Entries: 1

Rep: Reputation: Disabled
Recovering Photos

Open Synaptic Package Manager and install testdisk.
Then open terminal.
$sudo photorec
photorec is opened.You can recover Documents,Spreadsheets,audio/video files.photos etc.
Choose only one type of file at a time ,so that home folder does not get full.
please refer my blog
http://www.linuxquestions.org/questi...-joshi-698489/

Last edited by kishor joshi; 03-11-2014 at 08:48 AM.
 
Old 03-11-2014, 11:24 AM   #6
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: CentOS
Posts: 2,959

Rep: Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268
Quote:
Originally Posted by kishor joshi View Post
Open Synaptic Package Manager and install testdisk.
Then open terminal.
$sudo photorec
You really do not want to be doing that from your current installation. Any writing to that disk greatly decreases your chances of recovering old files. You need to boot from alternative media and save any recovered files to an external disk drive or USB flash drive. My personal favorite is SystemRescueCD, which includes both testdisk and photorec in its set of tools.
 
1 members found this post helpful.
Old 03-11-2014, 05:50 PM   #7
joe_2000
Member
 
Registered: Jul 2012
Location: Aachen, Germany
Distribution: Void, Debian
Posts: 808

Rep: Reputation: 216Reputation: 216Reputation: 216
Not helpful at this point, but maybe as a hint for the future: Do not rely on guided partitioning in any installer.
Do it manually, and make sure you are erasing the right partitions.
I typically set up the partitioning before even starting any installer from within gparted upfront in a live system. That way you can avoid these kinds of situations...
 
2 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Overwrote Partition Info dougp23 Linux - Newbie 3 10-04-2013 04:46 PM
Overwrote first bytes of windows partition kinetic Linux - Software 5 12-17-2010 12:45 AM
[SOLVED] accidentally overwrote 1TB partition... any way to recover data? :( zuzoa Linux - Newbie 4 09-13-2009 01:59 PM
Ubuntu overwrote my own MBR-Grub located on another partition. How do I restore it? sirbender Linux - General 5 04-25-2009 08:01 PM
mkreiserfs overwrote my ext2 backup partition! ah! Mishkinman Linux - Software 2 05-03-2004 05:18 PM


All times are GMT -5. The time now is 02:43 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration