Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

Overwritted my Windows 10 with Linux...


  • Please log in to reply
78 replies to this topic

#1 Collomps

Collomps

  • Members
  • 30 posts
  • OFFLINE
  •  
  • Local time:03:50 AM

Posted 16 September 2015 - 07:52 PM

As the title says i overwritted my Win10 with Linux.

 

I was a happy Windows 10 user until las week when i tried to install Linux (OpenSuse) as a dual boot just for fun and to learn. Did something wrong and my Windows is gone. With Testdisk i see i still have NTFS partitions (Including boot ones) and Linux takes only a small percentage of the disk:

Disk /dev/sda - 500 GB / 465 GiB - CHS 60801 255 63
   Partition               Start        End    Size in sectors
>  HPFS - NTFS              0  32 33    12 223 19     204800 [Reserved to the system]
   FAT16 >32M               0  32 33    20   3 47     319488 [NO NAME]
   HPFS - NTFS             12 223 20 60743 209 10  975642624
   Linux Swap              20   3 48   281 252 35    4208640
   Linux                  281 252 36  5504  10 10   83892224
   Linux                 5504  10 11 60801  80 15  888350720
   HPFS - NTFS          60743 209 11 60801  47 46     921600

 

This is just a small part of the log, all the other sections shows only Windows partitions, being those three Linux partitions the only ones in the 500gb HD.
Its a desktop PC, i3 processor, 4gb RAM, 64 bits, Intel main board seems not to have BIOS chip on it (Is there a non BIOS system? Maybe i need to look better, but the "Bios" looks different to the one i am used to -This PC is "newer"-).
 

Can i recover my Windows without erasing my important data? Maybe repairing the boot sectors or something like that?

Thanks!!!



BC AdBot (Login to Remove)

 


#2 Drew1903

Drew1903

  • Banned
  • 1,052 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:09:50 PM

Posted 16 September 2015 - 08:11 PM

Ok, not being on exactly what you did but, from what you say, sound like you need to re-install Win10.  Assuming it was an Upgrade, you can now clean install it on the drive (partition) where it was.
 

Maybe someone more familiar w/ Linux might offer a different suggestion.  Important data should not suffer as that would be on your Data drive not, the same drive as the OS, right?

 

More info from you might help.


 


Edited by Drew1903, 16 September 2015 - 08:11 PM.


#3 yu gnomi

yu gnomi

  • Members
  • 532 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Chicago suburb
  • Local time:10:50 PM

Posted 16 September 2015 - 08:22 PM

especially more details on how you installed Linux, if you followed a guide you found on-line, please post a link to it.



#4 Collomps

Collomps
  • Topic Starter

  • Members
  • 30 posts
  • OFFLINE
  •  
  • Local time:03:50 AM

Posted 16 September 2015 - 08:29 PM

Ok, not being on exactly what you did but, from what you say, sound like you need to re-install Win10.  Assuming it was an Upgrade, you can now clean install it on the drive (partition) where it was.
 

Maybe someone more familiar w/ Linux might offer a different suggestion.  Important data should not suffer as that would be on your Data drive not, the same drive as the OS, right?

 

More info from you might help.


 

Well, i had Win7 before and it upgraded automatically to Win10 so i dont have the Win10 install disks to do the repair.  I dont know the internal procees involved in installing Linux but it seems it didnt touch 80-90% of the previous Windows data. I think if i reinstall Win10 (I downloaded the Win10 64 bits ISO) i will erase all my important data and that would be really bad! :(



#5 leithanne

leithanne

  • Members
  • 327 posts
  • OFFLINE
  •  
  • Gender:Female
  • Location:Philly 'burbs
  • Local time:11:50 PM

Posted 16 September 2015 - 08:34 PM

I know just enough about Linux to be dangerous. Something about installing Linux, if not done right, messes with the MBR. Go to the Linux Forum. The folks, there, fix this all the time.


Edited by leithanne, 16 September 2015 - 08:36 PM.


#6 yu gnomi

yu gnomi

  • Members
  • 532 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Chicago suburb
  • Local time:10:50 PM

Posted 16 September 2015 - 08:41 PM

Impossible to know for sure what happened from what you posted, but my guess would be that Grub (Linux boot loader program) over-wrote your MBR with instructions to find your Linux boot partition and boot from there.

 

Approaches to fix that are either to enter Windows RE and fix the MBR (which I don't know how to do in Windows 10), or use a Linux utility to fix the MBR (which would probably work, unless Windows 10 MBR is different than in other Windows OS's).

 

If you are knowledgeable about Grub, there is also the option to fix it so that you can dual-boot, but I don't know enough about Grub to help you with that.



#7 Drew1903

Drew1903

  • Banned
  • 1,052 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:09:50 PM

Posted 16 September 2015 - 08:53 PM

If Linux was, indeed, put on its own drive & you did not actually overwrite Win10 then, Win10 IS still there... and it does sound like the MBR is buggered.  IF you can't fix that, save your data from Win10 & THEN re-install it.  Should be able to 'see' the Win10 drive & its contents from the Linux installation.


Edited by Drew1903, 16 September 2015 - 08:54 PM.


#8 Collomps

Collomps
  • Topic Starter

  • Members
  • 30 posts
  • OFFLINE
  •  
  • Local time:03:50 AM

Posted 16 September 2015 - 08:56 PM

To install Linux i used YaST (Yet another Setup Tool), seemed easy and fast (see the description here->http://yast.github.io/), but fast is not always good unless you drive a drag racing car, so i messed up. It has a "Recommended patition" option (Or something like that) and i choose that option as i believed it was'nt touching my Win10 partitions but i was obviously wrong, and it did. :'(



#9 Collomps

Collomps
  • Topic Starter

  • Members
  • 30 posts
  • OFFLINE
  •  
  • Local time:03:50 AM

Posted 16 September 2015 - 08:59 PM

I know just enough about Linux to be dangerous. Something about installing Linux, if not done right, messes with the MBR. Go to the Linux Forum. The folks, there, fix this all the time.

I will take a look over there! :)



#10 jonuk76

jonuk76

  • Members
  • 2,182 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Wales, UK
  • Local time:03:50 AM

Posted 16 September 2015 - 09:02 PM

I'd guess Windows is still there but it's not been picked up by the bootloader.  Things have got more complicated since the transition to UEFI and GPT partition tables.

 

Can you post the output of the command

parted -l
in a terminal with admin privileges?  I think in OpenSUSE there is an admin terminal shortcut, or if not just start a normal terminal and type su and hit enter.  It will ask for your password before logging you in as administrator.

7sbvuf-6.png


#11 Collomps

Collomps
  • Topic Starter

  • Members
  • 30 posts
  • OFFLINE
  •  
  • Local time:03:50 AM

Posted 16 September 2015 - 09:02 PM

 

If you are knowledgeable about Grub, there is also the option to fix it so that you can dual-boot, but I don't know enough about Grub to help you with that.

In Linux i am a complete and perfect Noob, so fixing Grub would be a try and error approach for me! Maybe i can fix MBR?



#12 Collomps

Collomps
  • Topic Starter

  • Members
  • 30 posts
  • OFFLINE
  •  
  • Local time:03:50 AM

Posted 16 September 2015 - 09:05 PM

parted -l

linux-ag5a:~ # parted -l
Model: ATA ST3500641AS (scsi)
Disk /dev/sda: 500GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

Number  Start   End     Size    File system     Name     Flags
 1      1049kB  165MB   164MB   fat16           primary  boot
 2      165MB   2319MB  2155MB  linux-swap(v1)  primary
 3      2319MB  45.3GB  43.0GB  btrfs           primary
 4      45.3GB  500GB   455GB   xfs             primary


Model: ATA ST320LT020-9YG14 (scsi)
Disk /dev/sdb: 320GB
Sector size (logical/physical): 512B/4096B
Partition Table: msdos
Disk Flags:

Number  Start   End    Size   Type     File system  Flags
 1      1049kB  106MB  105MB  primary  ntfs         boot, type=07
 2      106MB   160GB  160GB  primary  ntfs         type=07
 3      160GB   320GB  160GB  primary  ntfs         type=07


Model: WDC WD32 00BEVT-60A23T0 (scsi)
Disk /dev/sdc: 320GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:

Number  Start   End    Size    Type     File system  Flags
 1      1049kB  210MB  209MB   primary  ntfs         boot, type=07                                                                             
 2      210MB   305GB  305GB   primary  ntfs         type=07                                                                                   
 3      305GB   320GB  14.8GB  primary  ntfs         type=07                                                                                   
 4      320GB   320GB  108MB   primary  fat32        lba, type=0c                                                                              
                



#13 jonuk76

jonuk76

  • Members
  • 2,182 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Wales, UK
  • Local time:03:50 AM

Posted 16 September 2015 - 09:08 PM

Right, you have 3 disks each apparently with boot flags.  Is (was) your Windows 10 installed on the 500Gb Seagate drive?


7sbvuf-6.png


#14 Collomps

Collomps
  • Topic Starter

  • Members
  • 30 posts
  • OFFLINE
  •  
  • Local time:03:50 AM

Posted 16 September 2015 - 09:10 PM

The other disks are external drives, one containing WinBackup files (old Win7 ones) and the other just connected today with unrelated data.

 

The OS is (Was?) in the 500 Gb drive.



#15 jonuk76

jonuk76

  • Members
  • 2,182 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Wales, UK
  • Local time:03:50 AM

Posted 16 September 2015 - 09:18 PM

Thanks for clarifying.  I'm afraid it looks like your SUSE install wiped Windows completely. It is no more.

 

 


Number  Start   End     Size    File system     Name     Flags
 1      1049kB  165MB   164MB   fat16           primary  boot
 2      165MB   2319MB  2155MB  linux-swap(v1)  primary
 3      2319MB  45.3GB  43.0GB  btrfs           primary
 4      45.3GB  500GB   455GB   xfs             primary

 

 

Partition 1 will be the EFI partition.

#2 is Linux swap

#3 is probably Linux system files (using the Btrfs file system)

#4 is probably your Linux home partition (using the XFS file system)

 

It's impossible for either partition 3 or 4 to be Windows, because those are Linux/Unix file systems.  A Windows partition would be labelled as HPFS/NTFS.

 

Sorry to be the bearer of bad news :(

 

EDIT Testdisk or other utilities may be able to recover stuff, but I'm really not experienced on that and suggest someone more familiar with recovery tools has a look at this.  At this point, the less you use the computer the better, as once data is overwritten, it is essentially gone forever.

 

EDIT EDIT apologies if I misunderstood from your first post, as I thought you had resized the Windows partitions and simply weren't able to boot Windows, rather than overwrote it completely.


Edited by jonuk76, 16 September 2015 - 09:24 PM.

7sbvuf-6.png





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users