0

OK I have installed Ubuntu 13.10. I have my files on a hard drive. Now I want to put them back on my computer but I am nervous. I have already erased the drive. (I thought it would just replace windows and leave my partitioned drive (D) reserved for files alone. It didn't. So I would like to partition my drive and use one for my files the other for the OS. Like I had before.

  • If you experienced data loss (never trust Ubuntu installers for automatic partitioning!!), stop using the hard-drive now. Plug it out, make a backup using dd or ddrescue, then try to salvage any files that you may by using either testdisk or photorec. – landroni Mar 4 '14 at 7:39
  • @landroni : I think he just backed up the data partition to the external drive. – Jacob Vlijm Mar 4 '14 at 7:52
1

Usually, the best is to partition the drive during install, or, in your case, leave the partitions as they are and install Ubuntu on the partion where windows is (replace it).

By default, Ubuntu uses the whole disk for installation. In your case you should have done the installation steps untill you can choose "installation type" and choose "something else" there. Then remove the windows partition and create a swap partition of, let's say 1GB and an ext4 partition to install the system on (mountpoint /).

To make the existing data partition available in the newly installed system, select it (in the same window) and choose "Change" (next to +-); keep the same file system as it already is and give it mountpoint /data or something you like. Do NOT format the partition! That way it would have been as you planned.

In this situation you can choose: do a reinstall and a repartitioning, or just copy your existing data to /home/"yourname". You could of course resize the partition to be able to create your data partition, but it is more "clean" to reinstall; you just installed Ubuntu and probably did not do too much work afterwards. All should take no more than just 30 minutes.

here are a few links to screenshots:

choose "something else" enter image description here

remove existing partitions: enter image description here

create new partitions (in your case somthing like 1x 20GB for Ubuntu, 2gb for swap, the rest for /data (the picture shows adding the swap partition)

Start with the system partition, mountpoint /, then the data partition, /data, and finish with the swap partition. If you do it like that, Ubuntu will set the "type of the new partition" automatically correct. enter image description here

and ready to install: enter image description here`

  • 1
    please write your answer in user easy readable format by splitting down it into paragraphs.And also use backticks `` for codes,paths. – Avinash Raj Mar 4 '14 at 7:56
  • I thought I was doing what you mentioned. The "something else" option is not well documented. I am now currently confused with mounted, swap, extended, ext2, lvmz.flags, etc. I have downloaded gparted and see the screen but???? what do I download to do a screen capture so I can show you what I have going on. I am afraid to plug in my external drives. I only have one copy of pics on one drive (75 gig) and another of music of about (50 gig.) I am using a EEpc with about a 160 gig hd. – user254555 Mar 4 '14 at 8:11
  • If I am to reinstall?? where is the downloaded version on this hard drive or do I need to compleatly do this over again. And?? will it just replace the drive or do I need to delete and clear the drive and then reinstall from my pen drive? – user254555 Mar 4 '14 at 8:23
  • @user254555 I would do a reinstall, I guess you do not have sensitive data on your drive right now? a complete install does not take too much time. I will try to put a few (links to) screenshots here – Jacob Vlijm Mar 4 '14 at 8:28
  • Please include the screenshots in the main answer, not as (non-clickable) links. – landroni Mar 4 '14 at 10:27
-1

Use G Parted Partition utility Install this utility from the software center. You can easily create the partition of your drive.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.