Find the answer to your Linux question:
Results 1 to 7 of 7
Whenever I start my system I get an error that says "Cannot acess resume device (swap-hda4)", then it loads just fine, but it doesn't mount the swap partition. The error ...
  1. #1
    Just Joined! Ozzi's Avatar
    Join Date
    Mar 2007
    Location
    Iasi, Romania
    Posts
    48

    Exclamation Canot mount swap partition

    Whenever I start my system I get an error that says "Cannot acess resume device (swap-hda4)", then it loads just fine, but it doesn't mount the swap partition. The error occured recently after I had to reset my computer beacuse it became unresponsive. I've deleted the swap partition and recreated it, but still no result. After the system boots I can mount the partition using gparted, but why doesn't it mount it at startup? My distro is FC6. Thanks.

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    post the contents of /etc/fstab and output of 'fdisk -l' command.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  3. #3
    Just Joined! Ozzi's Avatar
    Join Date
    Mar 2007
    Location
    Iasi, Romania
    Posts
    48
    Content of /etc/fstab:

    LABEL=/ / ext3 defaults 1 1
    devpts /dev/pts devpts gid=5,mode=620 0 0
    tmpfs /dev/shm tmpfs defaults 0 0
    proc /proc proc defaults 0 0
    sysfs /sys sysfs defaults 0 0
    LABEL=SWAP-hda4 swap swap defaults 0 0
    /dev/hda6 /media/data ext3 defaults 0 0
    As for /sbin/fdisk -l, that didn't output anything. I tried "$ /sbin/fdisk -l /dev/hda" and it returned "Cannot open /dev/hda". I have an ide hard disk (westren digital 80GB).

  4. #4
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    execute this
    Code:
    su -
    fdisk -l
    i think Label of SWAP partition has been changed. check the outassign 'SWAP-hda4' label to SWAP partition using GParted.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  5. #5
    Just Joined! Ozzi's Avatar
    Join Date
    Mar 2007
    Location
    Iasi, Romania
    Posts
    48
    The Swap partition has no label (at least that's what gparted said). I changed the label in fstab to SWAP but I get the same error.

    By te way, fdisk returned:

    HTML Code:
    Disk /dev/hda: 80.0 GB, 80026361856 bytes
    255 heads, 63 sectors/track, 9729 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    
       Device Boot      Start         End      Blocks          Id        System
    /dev/hda1   *           1        1274    10233373+    7        HPFS/NTFS
    /dev/hda2            1275        8454    57673350     f        W95 Ext'd (LBA)
    /dev/hda3            8455        9663     9711292+    83       Linux
    /dev/hda4            9664        9729      530145      82      Linux swap / Solaris
    /dev/hda5            1275        1724     3614593+    7       HPFS/NTFS
    /dev/hda6            1725        8454    54058693+   83       Linux

  6. #6
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    if there isn't any Label assigned to SWAP partition, remove Label tag in /etc/fstab file too.
    Code:
    /dev/hda4 swap swap defaults 0 0
    OR assign Label "SWAP-hda4" using GParted and keep SWAP entry in /etc/fstab file as it is.
    Code:
    LABEL=SWAP-hda4 swap swap defaults 0 0
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  7. #7
    Just Joined! Ozzi's Avatar
    Join Date
    Mar 2007
    Location
    Iasi, Romania
    Posts
    48
    Couldn't find out how to relabel the partition with gparted, so I modified /etc/fstab as you said. Now I get the same error at startup, but the swap partition gets mounted automaticaly, so i guess the problem is solved. Very peculiar. Thanks a lot

Posting Permissions

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