LinuxQuestions.org
Have you heard the LinuxQuestions.org Podcast?
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Newbie
User Name
Password
Linux - Newbie This 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

Tags used in this thread
Popular LQ Tags , ,

Reply
 
Thread Tools
Old 09-25-2009, 12:15 PM   #1
baldurpet
Member
 
Registered: Dec 2008
Location: Iceland
Distribution: Ubuntu, freeBSD
Posts: 110
Thanked: 0
Recovering a Windows partition in /media


[Log in to get rid of this advertisement]
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?
linuxubuntu baldurpet is offline  
Tag This Post , ,
Reply With Quote
Old 09-25-2009, 12:22 PM   #2
pixellany
Moderator
 
Registered: Nov 2005
Location: Pasadena, CA
Distribution: Arch
Posts: 13,149
Thanked: 283
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.
linux pixellany is online now     Reply With Quote
Old 09-25-2009, 01:06 PM   #3
baldurpet
Member
 
Registered: Dec 2008
Location: Iceland
Distribution: Ubuntu, freeBSD
Posts: 110
Thanked: 0

Original Poster
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?
linuxubuntu baldurpet is offline     Reply With Quote
Old 09-25-2009, 03:10 PM   #4
pixellany
Moderator
 
Registered: Nov 2005
Location: Pasadena, CA
Distribution: Arch
Posts: 13,149
Thanked: 283
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 06:30 PM.. Reason: typo
linux pixellany is online now     Reply With Quote

Reply

Bookmarks


Thread Tools

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 03:09 PM
Recovering a Partition? morrolan Linux - Newbie 5 09-05-2005 11:53 AM
Recovering a windows partition ravalox Linux - Software 5 08-15-2004 03:37 PM
Recovering partition belorion Linux - Software 5 08-09-2004 04:16 PM
Reading Media off the Microsoft Windows 98 Partition saturninus Linux - Newbie 7 08-28-2003 12:35 PM


All times are GMT -5. The time now is 02:51 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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration