You are not logged in.

#1 2010-11-13 12:38:20

llawwehttam
Member
From: United Kingdom
Registered: 2010-01-19
Posts: 181

[solved]Boot up time in excess of 10mins e2fsck

On boot up when my HDD's are checked occasionally everything seems to run smoothly except when my 1TB storage drive is checked.

Its a Samsung F3 1TB drive formatted with ext3.

When its checked it sticks on 20% for a good 8mins and then takes up to 5 mins to finish checking when it continues.


I have 4GB DDR3 RAM and an AMD Phenom II x4 955 BE so that's not the problem.

There is a lot of data on the drive if that makes a difference, ie in excess of 700GB.

Is it normal for it to take so long?

It can get quite irritating.


########################################################

Solution was to convert the Ext3 formatted HDD to EXT4.

Last edited by llawwehttam (2010-11-23 16:35:47)

Offline

#2 2010-11-13 13:26:24

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [solved]Boot up time in excess of 10mins e2fsck

It's pretty normal. Change the fs to ext4 and it'll be much faster.

Offline

#3 2010-11-13 13:36:08

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,731
Website

Re: [solved]Boot up time in excess of 10mins e2fsck

+1 for ext4

Offline

#4 2010-11-13 14:04:14

llawwehttam
Member
From: United Kingdom
Registered: 2010-01-19
Posts: 181

Re: [solved]Boot up time in excess of 10mins e2fsck

Thanks guys,

I'm looking at the instructions here: https://wiki.archlinux.org/index.php/Ex … ns_to_ext4

Looks like a good idea.


How long does it take to convert at a guess?
Just want a vague idea so i know if its gone drastically wrong.


EDIT:

tune2fs -O extents,uninit_bg,dir_index /dev/the_partition 

was pretty much instant and

fsck -fp /dev/the_partition

didn't work as stated as possible in the documentation so I'm running ;

fsck -f /dev/the_partition

and got a whole load of checksum errors in the group descriptors as expected. Its been about 10 mins and its now on pass 2: Checking the directory structure.

Looking good so far.

Will edit my fstab in a minute.

EDIT: Woot Woot:

Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
data: 4404/61054976 files (4.8% non-contiguous), 111799389/244190456 blocks

That was much faster than I thought it would be.

Is it worth running:

find /data -xdev -type f -print0 | xargs -0 chattr +e
find /data -xdev -type d -print0 | xargs -0 chattr +e

as suggested in the wiki?

Last edited by llawwehttam (2010-11-13 14:59:37)

Offline

#5 2010-11-22 21:57:40

llawwehttam
Member
From: United Kingdom
Registered: 2010-01-19
Posts: 181

Re: [solved]Boot up time in excess of 10mins e2fsck

I decided to go ahead and run

find /data -xdev -type f -print0 | xargs -0 chattr +e

as I have finally got some time on my hands.

It seems to be taking forever though.

What would be a good guestimate for time to do this to a 1TB HDD?

Also is it safe to cancel it at some point?

EDIT:

All in all it took just over 10 mins fior the first command and then about 2 secs for the second one.

However they both need to be run in root.

Will update the wiki to state that.

Last edited by llawwehttam (2010-11-22 22:16:25)

Offline

Board footer

Powered by FluxBB