Results 1 to 2 of 2
Hi all,
I'm trying to setup a simple swapfile, using the commands shown below, and getting swapfile has holes error.
#dd if=/dev/zero of=/swapfile bs=1M count=20
20+0 records in
20+0 records ...
- 11-23-2010 #1Just Joined!
- Join Date
- Nov 2010
- Posts
- 2
swap file has holes
Hi all,
I'm trying to setup a simple swapfile, using the commands shown below, and getting swapfile has holes error.
#dd if=/dev/zero of=/swapfile bs=1M count=20
20+0 records in
20+0 records out
#mkswap /swapfile
#swapon /swapfile
swapon: swapfile has holes
swapon: /swapfile: Invalid argument
can any body help to solve this problem?
Regards
Ashwani
- 11-23-2010 #2
Take a look at Creating a swap space


Reply With Quote

