Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
e2fsck on swap
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
henac
n00b
n00b


Joined: 10 Aug 2005
Posts: 14

PostPosted: Mon Sep 12, 2005 10:45 pm    Post subject: e2fsck on swap Reply with quote

Hi,

my fstab looks like

none /dev/shm tmpfs defaults 0 0
/dev/hda2 /boot ext2 defaults,noatime 1 2
/dev/hda3 none swap sw 0 0
/dev/hda5 / ext3 noatime 0 1

although from time to time, it tries to perfom a check on my swap partition!! This occured after an update last week. that's my second problem after making deep update. could it be, it's a kind of fairly bad idea to make deep update often? has anybody an idea how to eliminate this check?

Regards,
Hen
Back to top
View user's profile Send private message
lambada
Apprentice
Apprentice


Joined: 31 Jul 2005
Posts: 157

PostPosted: Tue Sep 13, 2005 12:38 am    Post subject: Reply with quote

I am not exactly sure what the problem is but here is my fstab entry

/dev/hda9 swap swap pri=1 0 0

It works perfectly.
Try changing yours from
/dev/hda3 none swap sw 0 0

to
/dev/hda3 swap swap pri=1 0 0

ans see if that solves your problem.
Hope this helps

by the way my full fstab looks like this(in case you are missing something)
i am using udev

Code:

# Begin /etc/fstab

# file system  mount-point  type        options                 dump  fsck
#                                                                            order

/dev/hda7      /            reiserfs    defaults                    0       0
/dev/hda9      swap         swap        pri=1                    0       0
proc           /proc        proc        defaults                     0       0
sysfs          /sys         sysfs       defaults                      0       0
devpts         /dev/pts     devpts      gid=4,mode=620     0       0
shm            /dev/shm     tmpfs       defaults                  0       0

# non-essential
/dev/hda6      /mnt/e       vfat        defaults,user,umask=000 0       0
/dev/hda8      /storage     ext3        defaults,user,exec      1       2

# End /etc/fstab

_________________
Lambada


Last edited by lambada on Tue Sep 13, 2005 2:03 am; edited 1 time in total
Back to top
View user's profile Send private message
darcon
n00b
n00b


Joined: 26 Jun 2004
Posts: 46

PostPosted: Tue Sep 13, 2005 1:36 am    Post subject: Re: e2fsck on swap Reply with quote

henac wrote:
Hi,

my fstab looks like

none /dev/shm tmpfs defaults 0 0
/dev/hda2 /boot ext2 defaults,noatime 1 2
/dev/hda3 none swap sw 0 0
/dev/hda5 / ext3 noatime 0 1
although from time to time, it tries to perfom a check on my swap partition!!

your missing /proc?? I didn't think you could boot without it. Your swap line looks fine, the 0 in the sixth position (last 0) should cause fsck to skip it, dunno why it's ignoring it and fscking anyway.
Here's the line you should have for proc, if your really missing it then adding it might fix your problem
Code:
# NOTE: The next line is critical for boot!
none                    /proc           proc            defaults               0 0


henac wrote:
that's my second problem after making deep update. could it be, it's a kind of fairly bad idea to make deep update often? has anybody an idea how to eliminate this check?

Regards,
Hen

I run "emerge -uDav world" every couple days, nothing wrong with that
Back to top
View user's profile Send private message
henac
n00b
n00b


Joined: 10 Aug 2005
Posts: 14

PostPosted: Tue Sep 13, 2005 7:30 am    Post subject: different Reply with quote

I figured out what the problem is. It's not the swap. e2fsck aborts checking because the /boot partition is already mounted. So it says

Checking all filesystems...
/dev/hda2 is mounted. e2fsck: Cannot continue, aborting.

Fsck could not correct all errors, manual repair needed

So it seems /boot is mounted before fsck'ed. Does somebody know how to solve this?

Regards,
Hendrik
Back to top
View user's profile Send private message
darcon
n00b
n00b


Joined: 26 Jun 2004
Posts: 46

PostPosted: Wed Sep 14, 2005 2:13 am    Post subject: Reply with quote

add noauto option so /boot isn't mounted automatically. Another plus of doing this is that you can't damage your /boot while your system is running because it isn't mounted.
Code:
/dev/hda2 /boot ext2 defaults,noauto,noatime 1 2
Back to top
View user's profile Send private message
syg00
l33t
l33t


Joined: 23 Aug 2004
Posts: 907
Location: Brisbane, AUS

PostPosted: Wed Sep 14, 2005 2:36 am    Post subject: Reply with quote

Doing this requires you to be more careful about mounting /boot before (for example) copying kernel images over after a re-compile/update.
No major deal, but catches plenty of people.
Back to top
View user's profile Send private message
henac
n00b
n00b


Joined: 10 Aug 2005
Posts: 14

PostPosted: Wed Sep 14, 2005 11:43 am    Post subject: Reply with quote

thx
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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