Error while mounting a ramdisk file
Hi,
I am trying to add an application to ramdisk. As a first step i removed the 64 bit header. bash$ dd if=uRamdisk bs=64 skip=1 of=ramdisk.gz 21876+1 records in 21876+1 records out Next i uncompressed the ramdisk image. bash$ gunzip -v ramdisk.gz ramdisk.gz: 66.6% -- replaced with ramdisk Next when i try to mount the ramdisk, i get following error: bash# mount -o loop ramdisk /mnt/tmp ramdisk: Permission denied Can someone suggest the cause for this? Thanks, Anuj |
Make sure your loop devices are rw:
/dev/loop: brw-rw---- 1 root disk 7, 0 2007-12-19 21:57 0 brw-rw---- 1 root disk 7, 1 2007-12-19 21:57 1 brw-rw---- 1 root disk 7, 2 2007-12-19 21:57 2 brw-rw---- 1 root disk 7, 3 2007-12-19 21:57 3 brw-rw---- 1 root disk 7, 4 2007-12-19 21:57 4 brw-rw---- 1 root disk 7, 5 2007-12-19 21:57 5 Also look at dmesg after you try to mount the ramdisk. |
All times are GMT -5. The time now is 08:57 PM. |