LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 06-30-2009, 12:11 PM   #1
surtry
LQ Newbie
 
Registered: Jun 2009
Posts: 1

Rep: Reputation: 0
Urgent help regarding SWAP partion during UBUNTU installation.


Hi Guys,

I am new to this forum, and just got the ubuntu installed in my system(dual boot with xp). I did a mistake while the installation, now I feel that linux needed a better understanding. Anyway coming to the point,

I have 2 hard drives in my system, 160gb(partitioned as c,d,e,f, and 320(partioned as g,h,i). Mostly I have lot of video files for for editing.

Now, while installing ubuntu, I choose E: Which was already formatted (30gb).

while installing it came up with a screen where to install UBUNTU, I remember it did not straight away install in the E:, and i was playing with other options.

somehow I selected SWAP and selected H: (Total 90gb out of which I had about 30 gb of video files)(I thought the files in this partition will not get affected).

Now finally after installing UBUNTU, I could not see the H:,(from UBUNTU and also win xp) there is some files like restore{00D12A6B-83CF-435F-B79B-85D7D168AC21} and a log file. I am afraid all the video files drive has been formated.

Kindly help me how to restore the partition and the files.

Thanks
surtry.
 
Old 06-30-2009, 12:31 PM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 271Reputation: 271Reputation: 271
You can try to use testdisk to restore the partition table to the way it was. This should recreate the partition with minimal file loss. There's a version for Windows if you're more comfortable in that environment.

If that doesn't work, try using photorec (testdisk's sibling -- again there's a Windows version) to recover the video files. It supports many different file formats. Just be aware that you need a LOT of empty disk space and that the files will NOT be named properly. But they should be recoverable.
 
Old 06-30-2009, 12:43 PM   #3
rbees
Member
 
Registered: Mar 2004
Location: northern michigan usa
Distribution: Debian Squeeze, Whezzy, Jessie
Posts: 881

Rep: Reputation: 45
surtry,

You did bad thing. I can't help with recovering your data but I can help you understand better about how to install linux.

My experiance is based on Debian which the bunto's are based on so bear that in mind. After you get your partitions back, if you succed, you need to create some free space on one of your drives. I find that the QTparted live-cd works well for that. It might also recover your data but I don't know how to do that.

Basicaly you pick a partition that has plenty of free space in it and shrink it. That may include several steps.

I hope you have learned to make backups of you important data befor you start. In fact I would think you should make a backup of the damaged partition before you try to restore it.

Remember that linux does not use drive letters like windows. So you will see the drives listed like hda, hdb for ide drives and sda, sdb for sata drives. The partitions will be listed like hda1, hda2 and so on. I don't recall if the numbering starts with Zero (0) or 1, so if there is a zero that is the first partition.

When you get some free space on your drive the install should give you the option to install to that free space. Remember I am not familar with the ubuntoo installs, but debian gives you a couple of partition options. Like "install all files to one partition" and one to "install in seperate partitions". I would use the single partition option.

Hope that helps.
 
Old 06-30-2009, 01:12 PM   #4
thorkelljarl
Senior Member
 
Registered: Jun 2008
Posts: 1,796

Rep: Reputation: 213Reputation: 213Reputation: 213
?- I would do this.

I assume that your system is in a tower and that you can come to the cables connecting the HDD controllers to your HDD.

I would not want to do anything that wrote data to that swap partition, including running any form of linux while that swap was present, also including rescue and restore CDs.

However, were you to disconnect the HDD containing H, and use a copy of PartedMagic or some other linux live-cd with the ability to refresh and re-find devices such as has GParted in PartedMagic, linux would boot without finding and using the swap partition.

After linux has booted, connect the other HDD, refresh the devices, open a terminal, and use the command <fdisk-l> (list) to read the partition tables and post the information here. See man fdisk. You might use the same avoidance method with any other program on a live-cd.

If it is a problem burning an ISO image in Windows, you can burn PartedMagic with several burner programs. I have used this.

http://cdburnerxp.se/

Before trying any recovery operations, I would use Clonezilla or the command <dd> to make a copy of H to a partition or device that I could use as a work copy. I would not want to try working on the original, nor would I change the existing swap/H in any way.

Last edited by thorkelljarl; 06-30-2009 at 01:34 PM.
 
Old 06-30-2009, 11:22 PM   #5
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

Rep: Reputation: 282Reputation: 282Reputation: 282
Quote:
Originally Posted by thorkelljarl View Post
.... After linux has booted, connect the other HDD ....
I would add a warning to this that if your disks are NOT hot swapable, you have the risk to fry the disk or the PC.

For me this would be the absolute last resort if everything else fails.
 
  


Reply


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
Installation of Ubuntu 7.10 (Urgent) Gaf Linux - Newbie 3 03-23-2009 02:37 PM
How much space can a swap partion get? hondo Linux - General 5 05-18-2007 02:18 PM
can we install the inux operating syatem with out swap partion sravanth.svk Linux - General 6 09-29-2006 05:33 AM
SWAP partion not being mounted Boffy Linux - General 6 02-14-2005 03:37 PM
Partions - Swap Partion SBFree Linux - Newbie 8 11-23-2004 05:47 AM


All times are GMT -5. The time now is 10:52 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration