Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
swapon suddenly not working anymore?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
lo-jay
l33t
l33t


Joined: 27 Feb 2005
Posts: 862

PostPosted: Fri Feb 04, 2011 7:05 pm    Post subject: swapon suddenly not working anymore? Reply with quote

my bootsplash shows me that the swap-partition fails to be mounted during boot -
no probs there before:

Code:
# swapon -s
Filename                                Type            Size    Used    Priority


Code:
# /etc/fstab: static file system information.
#
# noatime turns off atimes for increased performance (atimes normally aren't
# needed; notail increases performance of ReiserFS (at the expense of storage
# efficiency).  It's safe to drop the noatime options if you want and to
# switch between notail / tail freely.
#
# The root filesystem should have a pass number of either 0 or 1.
# All other filesystems should have a pass number of 0 or greater than 1.
#
# See the manpage fstab(5) for more information.
#

# <fs>                  <mountpoint>    <type>          <opts>          <dump/pass>

# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/sda1               /boot           ext2            defaults,noatime 1 2
/dev/sda3               /               ext4            noatime         0 1
/dev/sda3               none            swap            sw              0 0
/dev/sda5               /home           ext4            defaults,noatime 0 2
/dev/sda6               /usr            ext4            defaults,noatime 0 2
/dev/sda7               /opt            ext4            defaults,noatime 0 2
/dev/sda8               /var            ext4            defaults,noatime 0 2
/dev/sda9               /tmp            ext4            defaults,noatime 0 2

/dev/cdrom              /mnt/cdrom      auto            noauto,ro,user  0 0

proc                    /proc           proc            defaults        0 0
#/dev/fd0               /mnt/floppy     auto            noauto          0 0

# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
#  use almost no memory if not populated with files)
shm                     /dev/shm        tmpfs           nodev,nosuid,noexec     0 0


where would i start digging?

Code:
fdisk -l

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x45bca98e

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          13      102400   83  Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2              13         274     2097152   82  Linux swap / Solaris
Partition 2 does not end on cylinder boundary.
/dev/sda3             274         797     4194304   83  Linux
Partition 3 does not end on cylinder boundary.
/dev/sda4             797       38914   306176344    5  Extended
Partition 4 does not end on cylinder boundary.
/dev/sda5             797       34738   272629760   83  Linux
/dev/sda6           34738       36565    14680064   83  Linux
/dev/sda7           36565       37088     4194304   83  Linux
/dev/sda8           37088       37610     4194304   83  Linux
/dev/sda9           37610       38914    10472792   83  Linux


cheers
_________________
lo-jay

The mechanic "One of 'em Dodge Chargers - let him go by."
The driver "Not today!"

taken from "Two Lane Blacktop"
Back to top
View user's profile Send private message
skellr
l33t
l33t


Joined: 18 Jun 2005
Posts: 988
Location: The Village, Portmeirion

PostPosted: Fri Feb 04, 2011 7:19 pm    Post subject: Reply with quote

dmesg is usually helpful with this sort of thing.

The fstab you posted has sda3 for swap and fdisk says it's on sda2. It's easy to miss.
Back to top
View user's profile Send private message
lo-jay
l33t
l33t


Joined: 27 Feb 2005
Posts: 862

PostPosted: Sat Feb 05, 2011 5:07 am    Post subject: Reply with quote

yeah, did correct the fstab, not sure how that happened?

thanks again!
_________________
lo-jay

The mechanic "One of 'em Dodge Chargers - let him go by."
The driver "Not today!"

taken from "Two Lane Blacktop"
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum