LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 08-21-2010, 12:22 AM   #1
suneth2318
LQ Newbie
 
Registered: Aug 2010
Posts: 2

Rep: Reputation: 0
how recovery swap partition


I install ubuntu 10 net book version on my Toshiba notebook.i had two partitions c: and D:.i install ubuntu on C: drive and give D: as a swap drive.i have following questions.

01. i had data on D: and will it destroyed?
02. If so how can i reverse or recovery it?
 
Old 08-21-2010, 12:52 AM   #2
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
If you delete a partition (for example, to create a new partition) - yes, you've destroyed the data that was on the old partition.

If you format a filesystem - then yes, you've destroyed any data that might have been there before.

In general, you cannot reverse or recover any such changes once you've made them.

The best you can do in situations like this is:

1) pull the plug as soon as you realize you've made a mistake
2) boot an operating system (Linux is a good choice) from a USB stick or CD-ROM (anything that doesn't touch your hard drive)
3) Try to access the disk (read-only; possibly byte-wise) and see if anything is salvageable

Google for "hard disk recovery tools" - you'll find lots of hits.

I don't know if you'll find an acceptable solution.

You might also want to look here:
http://www.sysresccd.org/

Or here:
http://www.ibm.com/developerworks/li...y/l-knopx.html
http://www.knoppix.net/wiki/Rescue_FAQ
 
Old 08-21-2010, 06:58 AM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,679

Rep: Reputation: 5893Reputation: 5893Reputation: 5893Reputation: 5893Reputation: 5893Reputation: 5893Reputation: 5893Reputation: 5893Reputation: 5893Reputation: 5893Reputation: 5893
Welcome to LinuxQuestions.
I moved your posts to their own thread.
 
Old 08-21-2010, 07:24 AM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,120

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Quote:
Originally Posted by paulsm4 View Post
If you delete a partition (for example, to create a new partition) - yes, you've destroyed the data that was on the old partition.
100% wrong.
Deleting a partition does not affect the data in any way.
Quote:
If you format a filesystem - then yes, you've destroyed any data that might have been there before.
Wrong again.
The metadata for the filsystem will be (somewhat) overlaid, but data carving/forensic techniques can recover undamaged files. NTFS is more of a problem, but do-able.

If it is merely making a swap partition you are concerned about, it merely re-writes the first 10 (IIRC) sectors - have a look for NTFS recovery products - there are some freebies, or try photorec.
 
Old 08-21-2010, 09:15 PM   #5
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Quote:
Deleting a partition does not affect the data in any way.
That's kind of like saying "If you fire a gun straight up into the air, then nobody on the ground will ever get hurt."

Bad advice

Yes, in general when you "delete a partition", you only delete an entry in the partition table (leaving the data untouched ... at least for the time being).

But you're still unable to access the data. And there's no guarantee that recreating the partition will necessarily restore access to the same data at the same place.

In general, one should NOT delete a partition, and one should NOT reformat a filesystem ... unless one is perfectly willing to kiss that data goodbye.

IMHO .. PSM
 
Old 08-22-2010, 05:04 AM   #6
suneth2318
LQ Newbie
 
Registered: Aug 2010
Posts: 2

Original Poster
Rep: Reputation: 0
how recovery swap partition Reply to Thread

Thanks u all for ur responce.Thing is i didnt format,delete or even partition on my D: drive and also i have foremost-1.5.5.tar.So please let me know how to do that.sorry i'm really new for Linux.
 
  


Reply



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
swap file vs. swap partition verndog Ubuntu 16 07-09-2012 08:49 PM
Can swap file or a swap partition be mounted and read? Mr-Bisquit Linux - General 3 06-08-2009 02:16 PM
need bigger swap partition but missing a valid partition table compused Linux - Hardware 3 07-02-2008 08:46 AM
Hard Drive Partition Management - Mandriva Double Partition with Swap File partition moshebagelfresser Linux - Hardware 2 05-23-2008 10:46 AM
Newbie Installing Debian3 on m68k w/250M Partition Needs help creating swap partition AppleMac Linux - Newbie 2 11-01-2002 08:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 06:18 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
Open Source Consulting | Domain Registration