LinuxQuestions.org
Visit Jeremy's Blog.
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-25-2009, 11:15 AM   #1
baldurpet
Member
 
Registered: Dec 2008
Location: Iceland
Distribution: Ubuntu, freeBSD
Posts: 110

Rep: Reputation: 15
Recovering a Windows partition in /media


I deleted the Windows partition on my Ubuntu computer, it was located in my /media directory.

Is there any chance of recovery and if so what is the best course of action?
 
Old 09-25-2009, 11:22 AM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728
First, are you sure that you deleted the partition? Tell us exactly what you did and post the output of "sudo fdisk -l" (ell, not one)

Note that a partition is not "in a directory". Partitions get mounted to mountpoints which are the same a directories in the file structure. Is it possible you only deleted the mount point?

All this aside, data IS recoverable as long as you don't write to the disk. The absoluter safest thing would be to shut down and then boot up from a live CD to sort things out.
 
Old 09-25-2009, 12:06 PM   #3
baldurpet
Member
 
Registered: Dec 2008
Location: Iceland
Distribution: Ubuntu, freeBSD
Posts: 110

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by pixellany View Post
First, are you sure that you deleted the partition? Tell us exactly what you did and post the output of "sudo fdisk -l" (ell, not one)

Note that a partition is not "in a directory". Partitions get mounted to mountpoints which are the same a directories in the file structure. Is it possible you only deleted the mount point?

All this aside, data IS recoverable as long as you don't write to the disk. The absoluter safest thing would be to shut down and then boot up from a live CD to sort things out.
The partition was a folder in /media/disk7 I recall, I didn't know that at the time so I accidentally deleted it (that was actually some time ago).

But let's assume everything is recoverable- what software should I use on the live CD?
 
Old 09-25-2009, 02:10 PM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728
No, the partition was mounted to a folder. (In this context, folder, directory, and mountpoint are synonymous) I hate to nitpick, but if you are digging into recovery, we need to be precise.

First, run "sudo fdisk -l" as I indicated previously. We need to confirm what partitions are there and--if the windows one is missing--at least get some clues where it is.

Recovery tools include "testdisk" and "photorec", but it depends on what you have.

By the way, is there important data on that partition? If not, why not simply re-install Windows?

Last edited by pixellany; 09-25-2009 at 05:30 PM. Reason: typo
 
  


Reply

Tags
recovery, windows


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
Media Only On Partition 1, Accessible to Linux and Windows on Partions 2 and 3? Birillo0022 Linux - Newbie 1 01-30-2008 02:09 PM
Recovering a Partition? morrolan Linux - Newbie 5 09-05-2005 10:53 AM
Recovering a windows partition ravalox Linux - Software 5 08-15-2004 02:37 PM
Recovering partition belorion Linux - Software 5 08-09-2004 03:16 PM
Reading Media off the Microsoft Windows 98 Partition saturninus Linux - Newbie 7 08-28-2003 11:35 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration