-2

I have installed Ubuntu in my Dell-Inspiron-N5010 laptop today and it was looking like a complicated one, without knowing about the partition thing, So the result of that is, I can't access to a part of storage (means hidden) if there is any chance where i can repair that through the live CD or by other means?

5
  • 1
    Can you clarify what you mean by "I have lost a part of the storage" - what exactly have you lost ? Jun 6, 2016 at 13:01
  • 1
    I don't see how is the question related to the title...
    – gogeccc
    Jun 6, 2016 at 13:10
  • @JonasCz I have previously installed windows 7 and created 3 partitions out of 500GB Hard Disk. So I have lost a part of the storage Jun 6, 2016 at 13:37
  • @GaganCJ Do you mean you lost data or that your available space under windows shrank? I think you are talking about the latter, in which case your phrasing is unfortunate. And what does that have to do with Swap? Do you want to know if you really need a swap partition?
    – Potaito
    Jun 6, 2016 at 15:06
  • @JonasCz its like i am not been able access to that partition space or i think its hidden Jun 28, 2016 at 3:21

3 Answers 3

3

To question stated in the title: Swap partition is, simply said extension to your RAM. When system uses almost whole RAM and there are some less used applications, core moves to the SWAP partition in order to save RAM space. What is more, if you hibernate your computer, whole content of RAM is placed to SWAP. That's why it should be at least the size as your RAM.

If you feel like you lost too much space, you can easily corrext it via liveCD or liveUSB. Simply boot in live mode and open gparted (if not installed, install it by typing into terminal sudo apt install gparted). There you can make changes to your existing partitions. In general, try not to touch /boot partition. Also, don't forget to make SWAP as big as your RAM (or twice the big, if you have less than 4GBs of RAM). If you would need help with gparted, follow this simple guide http://gparted.org/display-doc.php%3Fname%3Dhelp-manual

4
  • can I use it without liveCD? Jun 6, 2016 at 13:30
  • no, you can't, because the disks you would try to change are in use, so you have to do it not from your harddrive installation. But you can use USB instead of CD. Jun 6, 2016 at 13:33
  • and how make my other OS disk to be invisible in Ubuntu? Jun 6, 2016 at 13:39
  • You don't have make it invisible, just don't mount it and don't make any changes to it. Ubuntu will recognize other OS on separate partitions, so you will see, what not to touch. Jun 6, 2016 at 13:42
3

SWAP = Virtual RAM, extension for the physical RAM, used only when needed. Swap concept is nothing new, it is used by Windows too, but in a different form.

In Windows, when RAM is fully used (100%), it will automatically be extended by using free space on C:\ partition. If C:\ is fully used, the mechanism of extended RAM fails and Windows get stuck on blue screens. You can manually assign Windows to use free space from other partitions as swap, but that's a rather difficult task (and dangerous) for the usual user.

Swap in linux is smarter than that, by keeping swap space in a reserved (separated) partition, always available to get into action, whenever necessary.

1

Swap partitions are used to create a bigger working area than system RAM, they are mostly not needed now that RAM is cheap and plentiful.

One other use for swap is as the storage for suspend/hibernate modes, without a swap partition you won't be able to do that.

Not the answer you're looking for? Browse other questions tagged .