LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   About fstab and swap (https://www.linuxquestions.org/questions/linux-newbie-8/about-fstab-and-swap-147901/)

research2004 02-19-2004 01:31 AM

About fstab and swap
 
Hi!

I can't figure out the problem. I want to execute this to fstab

# /app/tmp/swapfile swapfile swapfile default 0 0
bash: /app/tmp/swapfile: Permission denied.

Anyone can suggest to solve this problem?

On the other hand, when I added it to fstab but when reboot, it give the mounting error.

You advice is very much appreciated!
Thanks

rootboy 02-19-2004 04:12 AM

fstab needs to know what partition your swapfile is on. e.g.:

/dev/hda3 swap swap defaults 0 0


Please post your /etc/fstab.


John

michaelk 02-19-2004 05:10 AM

Are you using a swap partition or a swap file?
For a swap file use:

/location/to/swapfile swap swap defaults 0 0


All times are GMT -5. The time now is 07:28 PM.