LinuxQuestions.org
Visit Jeremy's Blog.
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, 02: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, 05: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, 06:10 AM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,940

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

/location/to/swapfile swap swap defaults 0 0
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 07:15 AM
problem with swap entry in /etc/fstab? kpachopoulos Linux - General 1 10-26-2005 05:19 PM
What process is changing /etc/fstab and deleting my swap mount? ffrr Linux - Software 8 03-18-2005 10:16 PM
swap-space fstab problem MarkGraham Linux - Newbie 3 12-06-2002 12:23 PM
swap-space fstab problem MarkGraham Linux - Newbie 0 12-05-2002 08:06 PM


All times are GMT -5. The time now is 07:08 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration