Sunday, 6 January 2013
- Home /
- Operating Systems /
- Ubuntu installation - Dont play with swap space ! It can cost you data loss !
Ubuntu installation - Dont play with swap space ! It can cost you data loss !
Thats it i couldnt believe what i did with just one click. I deleted 248GB of data on my hard drive. Just because i wasn't careful enough and of course lazy to backup my data before i do anything else. The ubuntu installation provides you with the 3 main options. To install ubuntu alongside an existing operating system, to delete everything else and to make clear ubuntu installation and the last one which gives you more control to make partitions and separate ubuntu installation on different area.
And since i had windows 7 i wanted to make dual boot so i clicked on Something Else. Now this brings the other page which lets you create and delete partitions as well as shrinking existing partitions. Be careful though ubuntu drive partitioning differs from windows. I could not get it at first time but then i understood.
Ubuntu separates drives with magic letters a b c and numbers. For example if i have two hard drives with two partitions on each one that means 4 partitions. And what ubuntu would do is this
dev/sda1 - first drive first partition
dev/sda2 - first drive second partition
dev/sdb1 - second drive first partition
dev/sdb2 - second drive second partition
As we can see ubuntu separates drives with letters a b and partitions with numbers 1 2. And when we select a partition on the bottom we can see the name of the manufacturer of the drive we have. That way we can see which drive is selected. We must be careful when making partitions and deleting.
Be careful when using swap space because if by mistake you select a drive that has data on it to use it as a swap space you will erase everything on that drive just by one click. Because ubuntu converts that drive to different file system that windows and other operating system dont read. For example on windows we have NTFS and FAT and on ubuntu we have Ext2 Ext3 Ext4 and others. However you can still save your data if you follow some careful steps the ubuntu community explains. But still the percentage is very very low for you to get back 100% of data's you lost. So be careful read the instructions on ubuntu installation, and very very important dont be lazy and make sure you back up your data before installing any operating system. As for ubuntu be careful when using swap space. Create new partition around 1GB for swap space is enough. And make sure in that partition you dont have data. However i haven't seen any improvements by using swap space so dont mess with it. I warmed you Do Not Mess With SWAP SPACE !!! i lost my data and i know what kind of headache is so i dont want others to suffer too.