Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Is my Ubuntu partition "connected" to the swap?

  1. #1
    Join Date
    Apr 2015
    Beans
    6

    Is my Ubuntu partition "connected" to the swap?

    Hi all, I'm having a strange issue after formatting my hard drive, or rather, I don't even know whether this is an issue, I'm somewhat confused.

    So, I have erased a Windows 7 (32 bit) partition on my hard drive with Gparted, then installed a fresh Windows 7 (64 bit) on the free space. Naturally, it has erased GRUB and I booted from a Live CD in order to restore it, but then I saw in Gparted that my Ubuntu partition (which I didn't format at all) turned into "unallocated space". Luckily, I could restore it using testdisk and I've successfully reinstalled GRUB, too, so that's not the issue. However, after restoring my Ubuntu partition and opening Gparted again, I found that there was a weird unallocated 1 Mib blob between the Windows and the Ubuntu partition (screenshot in the link below). Funnily, I remember that it was allocated and called /sda5/ before I used testdisk on my Ubuntu partition, but now it is unallocated.

    My assumption is that it was sort of header which linked my Ubuntu partition with the Linux Swap partition, otherwise I can't make much sense of it. Please, if someone could have a look at the screenshot below and give some useful advice, I would be very thankful.

    Screenshot:
    http://fs2.directupload.net/images/150409/fx6sczni.png

    Edit: Otherwise, if this is just some random blob I don't need to care about, is there a way to test whether my Swap is "active"? That's the only thing I'm afraid about, I don't know how the main partition connects to the Swap.
    Last edited by holograus; April 9th, 2015 at 08:52 PM.

  2. #2
    Join Date
    Jul 2008
    Beans
    2,732

    Re: Is my Ubuntu partition "connected" to the swap?

    When you click on the swap, does it say active?

  3. #3
    Join Date
    Apr 2015
    Beans
    6

    Re: Is my Ubuntu partition "connected" to the swap?

    Where can I see this in Gparted? Is there a toolbar? Sorry, I'm not very experienced with this sort of things.

    Edit: Oh, I see, right click gave an option to "activate swap space" (I'm translating from the German tooltip), but when I tried it, I got an error. So I guess the swap indeed isn't linked to my main partition.

    Edit2: http://fs1.directupload.net/images/150409/pb6uj2kn.png
    Last edited by holograus; April 9th, 2015 at 09:00 PM.

  4. #4
    Join Date
    Jul 2008
    Beans
    2,732

    Re: Is my Ubuntu partition "connected" to the swap?

    In gparted double click on the swap and a new window will come up. Using the "disk" from the menu you see a window like this if not using gparted.

  5. #5
    Join Date
    Apr 2015
    Beans
    6

    Re: Is my Ubuntu partition "connected" to the swap?

    Okay thank you. Yes, it is marked as "inactive", just as I assumed. Any way to fix it and to restore the 1 Mib blob as a "header"?

  6. #6
    Join Date
    Jul 2008
    Beans
    2,732

    Re: Is my Ubuntu partition "connected" to the swap?

    If using gparted highlight swap and then right click and select swap on. It should switch to active.

  7. #7
    Join Date
    Jul 2008
    Beans
    2,732

    Re: Is my Ubuntu partition "connected" to the swap?

    Here is a little more info if needed.

    http://askubuntu.com/questions/33697...m-installation

  8. #8
    Join Date
    Apr 2015
    Beans
    6

    Re: Is my Ubuntu partition "connected" to the swap?

    Doesn't work for some reason, see my second post, I've already tried. There is a screenshot attached with the error message. Half of it is in English, here is what the German parts say:

    swapon: /dev/sda3/: swapon failed: the argument is invalid
    swapon: &&: "stat" failed: file or directory not found

  9. #9
    Join Date
    Apr 2015
    Beans
    6

    Re: Is my Ubuntu partition "connected" to the swap?

    After editing the /etc/fstab/ document as suggested in the guide above and running "sudo swapon -a" I'm getting the following output:

    swapon: /dev/sda3: swapon failed: the argument is invalid

  10. #10
    Join Date
    Apr 2015
    Beans
    6

    Re: Is my Ubuntu partition "connected" to the swap?

    Update:
    This http://askubuntu.com/questions/39683...valid-argument did the trick, now my swap is active. Issue can be marked as solved.

Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •