Hi, the dd if should be /dev/zero not /dev/null :-) dd if=/dev/zero of=/mnt/hda1/swapf count=512MB
/dev/null is a nullbyte file /dev/zero is a file full of uncountable zeros On Wed, 2009-01-14 at 10:56 +0200, Angel Tsankov wrote: > [email protected] wrote: > > Hi, > > > > If you have a harddisk, you have 2 options: > > 1) Swapfile. First create a file for the swapspace. the command is > > something like this: (I don't have a linux box here to test. Please > > correct me) > > dd if=/dev/null of=/some/where/swapfile count=512MB > > mkswap /some/where/swapfile > > swapon /some/where/swapfile > > > I tried this: > mke2fs -jq /dev/hda1 (j=journal, q=quiet) > mount /dev/hda1 /mnt/hda1 > EXT3 FS on hda1, internal journal > EXT3-fs: mounted filesystem with ordered data mode. > dd if=/dev/null of=/mnt/hda1/swapf count=512MB > 0+0 records in > 0+0 records out > mkswap /mnt/hda1/swapf > mkswap: error: swap area needs to be at least 40kB > "ls /mnt/hda1/swapf -al" shows that swapf is 0 bytes long > > > > 2) Swappartition. First create a partition of type swap. > > mkswap /dev/hda1 <= replace with actual swappartition > > swapon /dev/hda1 <= replace with actual swappartition > > > > Please let me know if it has worked. > > > This works. > > --Angel -- H CUH Rainer Peter Feller H +------------------------------------------------------------------+ | From: Rainer Peter Feller| | Institut fuer | | The Linux-Expert | | Experimentalphysik | | | | Luruper Chaussee 149| | Telefon: 0049-40-8998-2118| | D-22761 Hamburg | | Telefax: 0049-40-8998-2787| | Building: 67 Room: 5| +------------------------------------------------------------------+ | E-Mail : [email protected] | +------------------------------------------------------------------+ | URLs : http://wwwiexp.desy.de/users/rainer http://p-linux.desy.de| +------------------------------------------------------------------+ -- http://linuxfromscratch.org/mailman/listinfo/lfs-chat FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
