LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-19-2004, 01:31 AM   #1
research2004
LQ Newbie
 
Registered: Feb 2004
Posts: 5

Rep: Reputation: 0
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
 
Old 02-19-2004, 04:12 AM   #2
rootboy
Member
 
Registered: Oct 2001
Distribution: Mint 15
Posts: 770

Rep: Reputation: 51
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
 
Old 02-19-2004, 05:10 AM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,748

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

/location/to/swapfile swap swap defaults 0 0
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
fstab problem: mount: can't find dvd in /etc/fstab or /etc/mtab Nikon01 Slackware 5 11-17-2006 06:15 AM
problem with swap entry in /etc/fstab? kpachopoulos Linux - General 1 10-26-2005 04:19 PM
What process is changing /etc/fstab and deleting my swap mount? ffrr Linux - Software 8 03-18-2005 09:16 PM
swap-space fstab problem MarkGraham Linux - Newbie 3 12-06-2002 11:23 AM
swap-space fstab problem MarkGraham Linux - Newbie 0 12-05-2002 07:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration