Results 1 to 1 of 1

Thread: Dependency failed for swap, (boots warning at startup)

  1. #1
    Join Date
    2018-Sep
    Posts
    1

    Dependency failed for swap, (boots warning at startup)

    After accidently formating by windows(i use kali alongside win as dual boot)
    i entered into grub rescue, and did the usual stuff to recover grub
    set prefix=(hd0,gpt2)/boot/grub
    set root=(hd0,gpt2)
    ls /
    insmod normal
    normal
    Boot into kali Linux.

    Open a Terminal window.

    Type the following command and press Enter:

    update-grub

    Type the following command and press Enter:

    sudo grub-install /dev/sda
    .
    after that i'v found the swap partition related problem.
    i'v used gparted to re-create my pre-problem swap partition,,,which is now /dev/sda8 and set a new uid for it then i swapon it,,,, and rebooted. but problem remains intact.
    .
    here are some useful information...and Attachments:

    .
    ~# parted /dev/sda print
    Model: ATA TOSHIBA MQ01ABD1 (scsi)
    Disk /dev/sda: 1000GB
    Sector size (logical/physical): 512B/4096B
    Partition Table: gpt
    Disk Flags:

    Number Start End Size File system Name Flags
    1 1049kB 473MB 472MB ntfs Basic data partition hidden, diag
    2 473MB 578MB 105MB fat32 EFI system partition boot, esp
    3 595MB 105GB 104GB ntfs Basic data partition msftdata
    4 105GB 367GB 262GB ntfs Basic data partition msftdata
    5 367GB 624GB 257GB ntfs Basic data partition msftdata
    6 624GB 681GB 57.0GB ext4 msftdata
    8 681GB 686GB 4798MB linux-swap(v1)
    7 686GB 1000GB 314GB ntfs Basic data partition msftdata
    .
    ~# fdisk -l
    Disk /dev/sda: 931.5 GiB, 1000204886016 bytes, 1953525168 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
    Disklabel type: gpt
    Disk identifier: A626C784-9928-427E-98BE-6AB4C21C6DE4

    Device Start End Sectors Size Type
    /dev/sda1 2048 923647 921600 450M Windows recovery environment
    /dev/sda2 923648 1128447 204800 100M EFI System
    /dev/sda3 1161216 204802047 203640832 97.1G Microsoft basic data
    /dev/sda4 204802048 716802047 512000000 244.1G Microsoft basic data
    /dev/sda5 716802048 1218692463 501890416 239.3G Microsoft basic data
    /dev/sda6 1218692464 1330020588 111328125 53.1G Microsoft basic data
    /dev/sda7 1339394048 1953521071 614127024 292.9G Microsoft basic data
    /dev/sda8 1330022400 1339394047 9371648 4.5G Linux swap

    Partition table entries are not in disk order.

    ~# ls -l /dev/disk/by-uuid
    total 0
    lrwxrwxrwx 1 root root 10 Sep 22 18:05 22D2C9AA3CE45543 -> ../../sda1
    lrwxrwxrwx 1 root root 10 Sep 22 18:05 3421472c-3e22-4aff-9396-899a7cb9dc11 -> ../../sda6
    lrwxrwxrwx 1 root root 10 Sep 22 18:05 34E86597E86557DE -> ../../sda4
    lrwxrwxrwx 1 root root 10 Sep 22 18:05 46FC-A325 -> ../../sda2
    lrwxrwxrwx 1 root root 10 Sep 22 18:05 6A108E43108E166B -> ../../sda7
    lrwxrwxrwx 1 root root 10 Sep 22 18:05 78EA3456EA34133C -> ../../sda3
    lrwxrwxrwx 1 root root 10 Sep 22 18:05 af94d399-09f2-46b2-82ff-66065880b4f3 -> ../../sda8
    lrwxrwxrwx 1 root root 10 Sep 22 18:05 D4E08607E085EFD2 -> ../../sda5

    ~# 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/sda7 during installation
    UUID=3421472c-3e22-4aff-9396-899a7cb9dc11 / ext4 errors=remount-ro 0 1
    # /boot/efi was on /dev/sda2 during installation
    UUID=46FC-A325 /boot/efi vfat umask=0077 0 1
    # swap was on /dev/sda9 during installation
    UUID=0e2164f8-aed0-473b-9386-8c69c2b3e2b2 none swap sw 0 0
    /dev/sr0 /media/cdrom0 udf,iso9660 user,noauto 0 0
    root@Mohapurush:~# mkswap /dev/sda9
    mkswap: cannot open /dev/sda9: No such file or directory
    root@Mohapurush:~# grub-install /dev/sda2
    Installing for x86_64-efi platform.
    Could not add entry to BootOrder: Input/output error
    grub-install: error: efibootmgr failed to register the boot entry: No such device or address.
    Attached Images Attached Images

Similar Threads

  1. Error: Mounting failed: Invalid argument on initial startup.
    By thelinuxnoob in forum Installing Archive
    Replies: 2
    Last Post: 2019-04-14, 19:48
  2. Replies: 2
    Last Post: 2016-11-01, 21:29
  3. Kali stole my SWAP!
    By bwana in forum Installing Archive
    Replies: 1
    Last Post: 2015-05-24, 16:40

Posting Permissions

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