Results 1 to 2 of 2

Thread: Kali stole my SWAP!

  1. #1
    Join Date
    2013-Jul
    Posts
    16

    Kali stole my SWAP!

    Laptop had Windows 7.
    Installed Ubuntu 14.04
    --no problem. grub2 gave appropriate choices
    Added mate theme
    --no problem.
    Installed Kali Linux 1.1.0
    --initially defaulted to grub boot menu but got back to grub 2 with grub customizer
    Choosing to boot into windows or kali linux is ok.
    Choosing to boot into Ubuntu show the mate boot screen with this dialog

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~
    Code:
    Disk drive UUID=4f135f04-2b2f-4a9e-a108-53e00e6167ae cannot be found
    Press S to skip or M for manual
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~

    sudo fdisk -l shows:

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~
    Code:
    Disk /dev/sda: 500.1 GB, 500107862016 bytes
    255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 4096 bytes
    I/O size (minimum/optimal): 4096 bytes / 4096 bytes
    Disk identifier: 0x581395e9
    
    Device Boot Start End Blocks Id System
    /dev/sda1 * 2048 411647 204800 7 HPFS/NTFS/exFAT
    /dev/sda2 411648 507443649 253516001 7 HPFS/NTFS/exFAT
    /dev/sda3 507445246 945829887 219192321 f W95 Ext'd (LBA)
    Partition 3 does not start on physical sector boundary.
    /dev/sda4 945829888 976773167 15471640 2 XENIX root
    /dev/sda5 885022720 945829887 30403584 7 HPFS/NTFS/exFAT
    /dev/sda6 507445248 690067455 91311104 83 Linux
    /dev/sda7 868362240 885020671 8329216 82 Linux swap / Solaris
    /dev/sda8 690069504 868360191 89145344 83 Linux
    
    Partition table entries are not in disk order
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    gksudo gedit /etc/fstab shows

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Code:
    # /etc/fstab: static file system information.
    #
    # Use 'blkid' to print the universally unique identifier for a
    # device; this may be used with UUID= as a more robust way to name devices
    # that works even if disks are added and removed. See fstab(5).
    #
    # <file system> <mount point> <type> <options> <dump> <pass>
    # / was on /dev/sda6 during installation
    UUID=b0c6fcd3-3a45-497f-99dd-4c619ed98b28 / ext4 errors=remount-ro 0 1
    # swap was on /dev/sda7 during installation
    UUID=4f135f04-2b2f-4a9e-a108-53e00e6167ae none swap sw 0 0
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    more info:

    Code:
    cat /etc/fstab
    
    
    # /etc/fstab: static file system information.
    #
    # Use 'blkid' to print the universally unique identifier for a
    # device; this may be used with UUID= as a more robust way to name devices
    # that works even if disks are added and removed. See fstab(5).
    #
    # <file system> <mount point>   <type>  <options>       <dump>  <pass>
    # / was on /dev/sda6 during installation
    UUID=b0c6fcd3-3a45-497f-99dd-4c619ed98b28 /               ext4    errors=remount-ro 0       1
    # swap was on /dev/sda7 during installation
    UUID=4f135f04-2b2f-4a9e-a108-53e00e6167ae none            swap    sw              0       0
    
    
     sudo lsblk -fm
    
    NAME   FSTYPE LABEL       MOUNTPOINT NAME     SIZE OWNER GROUP MODE
    sda                                  sda    465.8G root  disk  brw-rw----
    ├─sda1 ntfs                          ├─sda1   200M root  disk  brw-rw----
    ├─sda2 ntfs                          ├─sda2 241.8G root  disk  brw-rw----
    ├─sda3                               ├─sda3     1K root  disk  brw-rw----
    ├─sda4 ntfs   LENOVO_PART            ├─sda4  14.8G root  disk  brw-rw----
    ├─sda5 ntfs   LENOVO                 ├─sda5    29G root  disk  brw-rw----
    ├─sda6 ext4               /          ├─sda6  87.1G root  disk  brw-rw----
    ├─sda7 swap                          ├─sda7     8G root  disk  brw-rw----
    └─sda8 ext4                          └─sda8    85G root  disk  brw-rw----
    sr0                                  sr0     1024M root  cdrom brw-rw----
    
    
    swapon -s
    
    Filename				Type		Size	Used	Priority
    If I start the 'Disks' application and hit the little 'play' button when the swap is highlighted, enter my password then rerun the last command, I get:

    Code:
    swapon -s
    
    Filename				Type		Size	Used	Priority
    /dev/sda7                               partition	8329212	0	-1

    I remember when I installed Kali that I specified the free space on the drive as ext4 and the pre-existing swap partition (from the pre-existing ubuntu 14.04 install) as swap. I saw no reason to have two swap partitions.
    Clearly the partition is not being mounted for some reason when ubuntu boots. Yes, Kali stole my swap.
    help?

  2. #2
    Join Date
    2015-Apr
    Posts
    13
    From ubuntu, try this:
    $ sudo gedit /etc/fstab;

    Modify the last line from:
    --> # swap was on /dev/sda7 during installation
    UUID=4f135f04-2b2f-4a9e-a108-53e00e6167ae none swap sw 0 0
    to:
    # swap was on /dev/sda7 during installation
    /dev/sda7 swap swap sw 0 0

    Now Ubuntu should boot with no problems.

Similar Threads

  1. kali persistent usb swap space
    By feas in forum General Archive
    Replies: 1
    Last Post: 2016-01-10, 19:28
  2. Kali 2.0 Encrypted Swap issue
    By aleister in forum TroubleShooting Archive
    Replies: 1
    Last Post: 2015-10-30, 10:34
  3. kali linux swap partion is Unavailable
    By Lancha in forum TroubleShooting Archive
    Replies: 1
    Last Post: 2014-01-10, 22:16

Posting Permissions

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