Re: why i can not put my swap files in /dev?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



2010/7/6 Tang Jianwei <myhnet@xxxxxxxxx>:
> I tried to create some swap files in /dev directory for my desktop.
> the dd and mkswap were ok. but when I try to swapon it, i get this:
>
> # swapon /dev/myswap
> swapon: /dev/myswap: Invalid argument
>
> but when I mv the file to some other directory like /mnt or /, the
> swapon works.

/dev/* is virtual directory containing all devices, not files. create
your swap on disk devices (/dev/sdXX, not in "empty space)

--
Eero,
RHCE
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux