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

2010-07-06 Thread Robert Heller
At Tue, 06 Jul 2010 22:30:10 +0800 CentOS mailing list wrote: > > > > In the past I only heard that /proc and /sys are "RAM directories", now /proc and /sys are psuedo directories -- they hook into kernel data structures. > I get /dev as well. thank you. With 2.6 kernels and udev, /dev ha

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

2010-07-06 Thread Jerry McAllister
On Tue, Jul 06, 2010 at 10:14:19AM -0400, John Kennedy wrote: > On Tue, Jul 6, 2010 at 10:01 AM, wrote: > > > Jerry McAllister wrote: > > > On Tue, Jul 06, 2010 at 06:41:06PM +0800, Tang Jianwei wrote: > > > > > >> I tried to create some swap files in /dev directory for my desktop. > > >> the dd

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

2010-07-06 Thread Robert Heller
At Tue, 6 Jul 2010 10:01:10 -0400 CentOS mailing list wrote: > > Jerry McAllister wrote: > > On Tue, Jul 06, 2010 at 06:41:06PM +0800, Tang Jianwei wrote: > > > >> 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 g

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

2010-07-06 Thread Tang Jianwei
In the past I only heard that /proc and /sys are "RAM directories", now I get /dev as well. thank you. Tang Jianwei On 07/06/2010 10:14 PM, John Kennedy wrote: On Tue, Jul 6, 2010 at 10:01 AM, > wrote: Jerry McAllister wrote: > On Tue, Jul 06, 2010 at 06:4

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

2010-07-06 Thread John Kennedy
On Tue, Jul 6, 2010 at 10:01 AM, wrote: > Jerry McAllister wrote: > > On Tue, Jul 06, 2010 at 06:41:06PM +0800, Tang Jianwei wrote: > > > >> 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: > >> > >> # swa

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

2010-07-06 Thread m . roth
Jerry McAllister wrote: > On Tue, Jul 06, 2010 at 06:41:06PM +0800, Tang Jianwei wrote: > >> 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

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

2010-07-06 Thread Jerry McAllister
On Tue, Jul 06, 2010 at 06:41:06PM +0800, Tang Jianwei wrote: > 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

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

2010-07-06 Thread Robert Heller
At Tue, 06 Jul 2010 18:41:06 +0800 CentOS mailing list wrote: > > 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 fi

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

2010-07-06 Thread Tang Jianwei
Thank you and Mogens. and I also think this is the cause. Tang Jianwei On 07/06/2010 06:50 PM, Eero Volotinen wrote: /dev/* is virtual directory containing all devices, not files. create your swap on disk devices (/dev/sdXX, not in "empty space)

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

2010-07-06 Thread Mogens Kjaer
On 07/06/2010 12:41 PM, Tang Jianwei wrote: > I tried to create some swap files in /dev directory for my desktop. > the dd and mkswap were ok. Does the file exist after reboot? I think the /dev directory is made in a RAM disk (tmpfs), not a useful place to put a swapfile. Mogens -- Mogens Kjae

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

2010-07-06 Thread Eero Volotinen
2010/7/6 Tang Jianwei : > 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

[CentOS] why i can not put my swap files in /dev?

2010-07-06 Thread Tang Jianwei
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. could sb. tell me w