I'm trying to crete a ramdisk of 2gb in centOS 6.2 and the error I get is the following. Any help would be greatly appreciated.
[root@ssb1 ~]# mkfs -q /dev/ram0 2147483648
mkfs.ext2: Filesystem larger than apparent device size.
Proceed anyway? (y,n)
grub.conf
title CentOS (2.6.36.4)
root (hd0,0)
kernel /vmlinuz-2.6.36.4 ro root=UUID=be58af32-27ac-45fe-8341-715df43497ac rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto rhgb quiet raid=noautodetect elevator=noop ramdisk_size=2147483648
Memory info
[root@ssb1 ~]# free
total used free shared buffers cached
Mem: 49455672 3185524 46270148 0 18228 164792
-/+ buffers/cache: 3002504 46453168
Swap: 0 0 0
See https://superuser.com/questions/255060/how-can-i-change-the-amount-and-size-of-linux-ramdisks-dev-ram0-dev-ram15
In particular,
Is this a 32 bit OS or a 64 bit OS?
It looks like you are using 3GB of RAM already and creating a 2GB RAM disk would put you over that magic 4GB mark that 32 bit systems can't handle.