fstab question
Hi, I'm running Slackware 12.0 and this is my fstab:
Code:
aufs / aufs defaults 0 0 # AutoUpdate Code:
fstab: line 8 is bad but I can't find why Thanks to those who lose 1 second with this |
That's because line 8 is your swap partition. It should look more like this...
Code:
|
Think it need a simple change
nvm Chromezero got it first lol.
|
Swap space is not mounted or used like other mounted file systems.
Try changing your line 8 to: Code:
/dev/sda2 none swap sw 0 0 |
On one hand I tried
Code:
/dev/sda2 swap swap defaults 0 0 # Autoupdate Code:
/dev/sda2 none swap defaults 0 0 # Autoupdate |
As mentioned your swap is not really mounted as a drive. Here is a print out from my fstab.
Code:
# /etc/fstab: static file system information. |
Tried both (swap and none) and the problem remains the same
|
Could you post your fstab? It will help us alot better.
|
Just to double check, is /dev/sda2 formatted as a swap partition? If it's formatted as ext3, it can't be used as a swap partition. You should be able to use fdisk to take a look.
Code:
fdisk /dev/sda |
When I posted for 1st time this was my fstab:
Code:
Morphy rc.d # cat /etc/fstab Code:
Morphy rc.d # cat /etc/fstab Code:
Morphy rc.d # cat /etc/fstab Code:
Morphy rc.d # fdisk /dev/sda |
Is there some reason that you are not putting the 0 0 at the end of your swap line as follows?
Code:
/dev/sda2 none swap sw 0 0 # Autoupdate |
Each line in fstab (but comments) has 6 (no more, no less, I mean really "six") fields. "man fstab" will give you the details if you are interested. The line that AurocaCA posted is the right one, assuming that sda2 is the right partition. Swap partitions are not mounted, so the mount point is "none" and that's how it should remain. Type swap, options "sw" are the standard for swap partitions. The other two fields can be "0 0", but that doesn't meant that they can be ignored. They must be there. So fix your fstab and all should be fine.
Again, I really advise you to read the fstab man page, you will save yourself a lot of trouble. |
All times are GMT -5. The time now is 01:31 AM. |