LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-25-2013, 06:01 AM   #1
PreguntoYo
Member
 
Registered: Jan 2012
Distribution: openSUSE, Gentoo, Slackware
Posts: 73

Rep: Reputation: 15
Question 1 TB portable HD doesn't stop reading an writing if formatted with ext4


Has this ever happened to you?

I've bought a 1 TB portable HD which I pretend to use for backups.

I've partitioned it GPT, and I wanted to format a big partition (about 900 GB) with ext4, but when I mount it, the led which indicates that the drive is working doesn't stop; it keeps blinking all the time.

This doesn't happen if I format the same partition with ext2 or ext3. I'd like to preserve this HD in good working condition as much as possible. I'm afraid this constant reading-writing behavior could damage it.

What is happening?. Could I tune the ext4 filesystem in any way to prevent this?. Or Should I better format the HD with ext2 or ext3?.

Thanks in advance for any help.
 
Old 08-25-2013, 11:48 AM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,340

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
I also have a 1 TB portable HD which I have formated into 4 250 GB partitions. It is a Iomega Prestige Desktop Hard Drive model 34919. I use this drive for backups and it is disconnected and turned off most of the time. When I leave the hard drive turned on and plugged in but unmounted the read/write light sometimes blinks continuously. I don't know why it blinks and I have used this drive for over a year with no problems. Whenever it starts blinking I unplug it and turn it off.

I bought this drive on Amazon and read the reviews before I bought it. One of the reviewers described this type of behavior on his external hard drive but he could find no problems created by the drive's occasional self generated activity.

"I'm afraid this constant reading-writing behavior could damage it."

I agree. That's why I always turn it off when not in use. Have you had any problems with the drive other than being perplexed by its behavior?

----------------------
Steve Stites
 
Old 08-25-2013, 02:22 PM   #3
PreguntoYo
Member
 
Registered: Jan 2012
Distribution: openSUSE, Gentoo, Slackware
Posts: 73

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by jailbait View Post
I also have a 1 TB portable HD which I have formated into 4 250 GB partitions. It is a Iomega Prestige Desktop Hard Drive model 34919. I use this drive for backups and it is disconnected and turned off most of the time. When I leave the hard drive turned on and plugged in but unmounted the read/write light sometimes blinks continuously. I don't know why it blinks and I have used this drive for over a year with no problems. Whenever it starts blinking I unplug it and turn it off.

I bought this drive on Amazon and read the reviews before I bought it. One of the reviewers described this type of behavior on his external hard drive but he could find no problems created by the drive's occasional self generated activity.

"I'm afraid this constant reading-writing behavior could damage it."

I agree. That's why I always turn it off when not in use. Have you had any problems with the drive other than being perplexed by its behavior?

----------------------
Steve Stites
No, no more problems, but I have not used it seriously, still. I've just partitioned, made the filesystem and mounted it (to discover the led blinking continuously).

If I'm going to use it for backups, I'd like to be sure that it will work right, for as long as possible. My plan was to rsync my /home every 20 minutes, via a shell script in crontab. Then this drive would only have to work a little, every 20 minutes.

If we both have this problem with ext4, ...could it be a bug?. I wonder if the developers are aware of this.

If no one can suggest some tuning options to make the filesystem work... properly (?), I think I'll just use ext2 or ext3. Maybe I can sacrifice performance for durability, in this case.
 
Old 08-25-2013, 07:40 PM   #4
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,340

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
"If we both have this problem with ext4, ...could it be a bug?. I wonder if the developers are aware of this."

I can get the problem by powering up the drive and never connecting it to my USB port. The problem on my drive is intermittent. Intermittents are characteristic of hardware rather than software. So I think it is probably a hardware problem. I only run the drive about 10 minutes a day so turning it off the rest of the time works. Sometimes I forget to power it off after doing a backup and sometime during the next hour I will notice the read-write light flickering. I sometimes notice the flickering when I power the drive up and don't get around to doing the backup for a while.

I never thought to try ext2 and ext3. The way that ext4 handles dirty cache buffers is different than the way ext3 handles them so conceivable there could be a problem in ext4 writes that does not exist in ext3. Before you reach that conclusion you should run ext3 for a lengthy period and see if a hardware intermittent shows up.

Another test would be to format the partition as ext4 and mount it as ext3. ext4 has enough backward compatibility that you can run ext4 as ext3 and it just runs slower. See if the problem shows up under these conditions.

The best test is to power up the drive and do not connect it to your computer. Let it run for a while and see if the problem occurs like it does on my drive under this test.

Obviously power off when not in use is not a solution in your case. If you want to fix the problem I suggest you contact the manufacturer first and see what they say. If they say it is software then try the ext4 people.

-------------------------
Steve Stites

Last edited by jailbait; 08-25-2013 at 07:42 PM.
 
Old 08-27-2013, 02:44 PM   #5
PreguntoYo
Member
 
Registered: Jan 2012
Distribution: openSUSE, Gentoo, Slackware
Posts: 73

Original Poster
Rep: Reputation: 15
lazy_itable_init

Thanks for your answers jailbait, I think I've found it:

By default, an ext4 filesystem is created with the lazy_itable_init option enabled (more info in the man page). What does this mean?.

The inode table is not initialized when the filesystem is created (which speeds up filesystem creation), but the kernel will have to initialize the filesystem in the background when it will be first mounted.

I guess that while the bigger the filesystem, this reading-writing behavior will last for longer, and if it is in a backup USB drive like mine, it will be more noticeable than my system's HD current read-write operations.

As a reference, in a 855 GiB ext4 filesystem it stopped in less than 2 hours.

I still wonder what happens if you umount the filesystem before it ends up initializing the inode table for the first time.

I hope I've been helpful to any readers, if so, add to my reputation

I'll mark this thread as solved as soon as I find a way to edit the tittle, I promise.

Last edited by PreguntoYo; 08-27-2013 at 02:49 PM. Reason: Spelling
 
2 members found this post helpful.
  


Reply

Tags
ext4



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Can't see files/folder on a formatted ext4 hard drive. rssn6 Debian 21 03-06-2012 06:36 PM
[SOLVED] Data Recovery, formatted my ext4 as vfat by mistake Halobok Linux - General 11 02-13-2012 02:48 AM
USB DISK formatted ext4 not working kujirasan Linux - Hardware 9 02-09-2011 11:06 AM
[SOLVED] Just formatted partition (ext4) is 5.4% used!? 512upload Ubuntu 16 11-14-2010 11:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:17 PM.

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
Open Source Consulting | Domain Registration