Urgent help regarding SWAP partion during UBUNTU installation.
Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.