익명 15:45

Linux error after swapon -a: cannot find the device

Linux error after swapon -a: cannot find the device

Please give me advice on how to solve the error below.

Linux details:

Kernel version: 2.6.18

Linux-OS-5.3

Thanks

 # fdisk -l | grep /c0d0p6
   /dev/cciss/c0d0p6           31790       33845     8385898+  82  Linux swap / Solaris
 # mkswap /dev/cciss/c0d0p6
   Setting up swapspace version 1, size = 8587153 kB
 # echo '/dev/cciss/c0d0p6 none swap sw 0 0' >> /etc/fstab
 # swapon -a
   swapon: cannot find the device for LABEL=SW-cciss/c0d0p6


Top Answer/Comment:

Try

mkswap -L SW-cciss/c0d0p6 /dev/cciss/c0d0p6

Edit: could you try changing the fstab entry you describe above to read

/dev/cciss/c0d0p6 swap swap defaults 0 0
상단 광고의 [X] 버튼을 누르면 내용이 보입니다