Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 09-09-2016, 01:15 AM   #1
LQ Newbie
Registered: Jul 2016
Posts: 1

Rep: Reputation: Disabled
Oops; installed LVM onto Windows 10 partition

Hi all,
So, tried to install Centos 7 onto "free" partition previously used by Ubuntu; somehow got my wires crossed and installed Centos 7 (with LVM) on the entire Windows 10 1 TeraByte drive; I'd love to get my files back, but not really sure the best way to proceed.
Any hints or suggestions?
Many thanks
Old 09-09-2016, 11:09 AM   #2
LQ Guru
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 7,181

Rep: Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212
Hope you've got a backup.
Old 09-09-2016, 11:51 AM   #3
LQ Guru
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,259

Rep: Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947
Any files that have been overwritten, which means the first ~5 GB on the disk, are gone. You can attempt to use testdisk/photorec to scan the drive to see what's recoverable, but it's going to find a LOT of trash that you'll have to sort through manually. Afterwards, you'll have to format the disk and reinstall Windows from scratch, and then re-load whatever files you managed to recover back onto it.

It's going to be a LONG and painstaking process. If you have a backup then use it, otherwise good luck.
Old 09-09-2016, 01:48 PM   #4
Senior Member
Registered: Aug 2009
Distribution: CentOS
Posts: 2,962

Rep: Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268
It's not just the first 5 GB that's gone. Linux filesystems deliberately spread data around in all the block groups so that files and directories can be stored close to their inodes and have nearby free space into which to expand. Even in an empty filesystem, there will be blocks of filesystem metadata (group descriptors, inodes, ...) at the head of each block group. It's like shooting that NTFS filesystem with a shotgun.

You can see if testdisk's Filesystem Tools can find an intact Master File Table in that NTFS filesystem. If it cannot, all the file names are lost, and all you can get is whatever "anonymous blocks of data that might be files" photorec can recover.


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
Read LVM (ext3) partition in Windows focusbob Linux - Software 1 08-19-2010 04:38 PM
had windows 7, installed fedora 12 on partition, now windows won't boot bieszke2 Linux - Software 14 02-10-2010 11:13 AM
Installed Windows on separate partition and now cannot boot Linux schulte3 Linux - Newbie 5 02-04-2010 02:46 AM
Wine installed a program onto my windows partition, Windows BSOD on boot. DJGCrusader Linux - Enterprise 9 08-14-2009 09:25 AM
Resizing Windows Partition after Linux has been installed Pi Of Five Linux - Software 1 07-06-2004 07:54 PM

All times are GMT -5. The time now is 06:24 PM.

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