LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-14-2009, 05:42 AM   #1
kosys
Member
 
Registered: Dec 2007
Location: Kolkata, WB,India
Posts: 30

Rep: Reputation: 15
Red face Seagate External HDD getting unmounted after certain period of inactivity


Hi All,

This is an external HDD(500 GB) Seagate(Freeagent go), OS is RHEL 5.3.
This external HDD has two primary partitions:

Disk /dev/sda: 500.1 GB, 500107860992 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 1 30401 244196001 83 Linux
/dev/sda2 30402 60801 244188000 83 Linux


Now everytime I'm mounting the hard disk, after certain period of inactivity, its getting unmounted and then remounted in 'Read only' mode. Say, 1 or 2 minutes after mounting in read-write mode, whenever I'm trying to copy some files to HDD, its giving the following error:

[root@demo ~]# tar -zcvf /webb1/test.txt test_bkp/
tar: /webb1/test.txt: Cannot open: Read-only file system
tar: Error is not recoverable: exiting now
test_bkp/
test_bkp/test12009-12-08
test_bkp/stopERP
test_bkp/test3
test_bkp/startERP
test_bkp/test_bkp.log


Following is an excerpt of the /var/log/messages(when files are being copied to the external HDD):


Dec 11 11:14:40 demo kernel: sd 6:0:0:0: Device not ready: <6>: Current: sense k
ey: Not Ready
Dec 11 11:14:40 demo kernel: Add. Sense: Logical unit not ready, initializin
g command required
Dec 11 11:14:40 demo kernel:
Dec 11 11:14:40 demo kernel: end_request: I/O error, dev sda, sector 1052751
Dec 11 11:14:40 demo kernel: printk: 110 messages suppressed.
Dec 11 11:14:40 demo kernel: Buffer I/O error on device sda1, logical block 1315
86
Dec 11 11:14:40 demo kernel: lost page write due to I/O error on sda1
Dec 11 11:14:40 demo kernel: Aborting journal on device sda1.
Dec 11 11:15:07 demo kernel: ext3_abort called.
Dec 11 11:15:07 demo kernel: EXT3-fs error (device sda1): ext3_journal_start_sb:
Detected aborted journal
Dec 11 11:15:07 demo kernel: Remounting filesystem read-only
Dec 11 11:21:14 demo kernel: sd 6:0:0:0: Device not ready: <6>: Current: sense k
ey: Not Ready
Dec 11 11:21:14 demo kernel: Add. Sense: Logical unit not ready, initializin
g command required
Dec 11 11:21:14 demo kernel:
Dec 11 11:21:14 demo kernel: end_request: I/O error, dev sda, sector 489969049
Dec 11 11:21:14 demo kernel: Buffer I/O error on device sda2, logical block 1971
23
Dec 11 11:21:14 demo kernel: lost page write due to I/O error on sda2
Dec 11 11:21:14 demo kernel: Aborting journal on device sda2.
Dec 11 11:21:42 demo kernel: ext3_abort called.
Dec 11 11:21:42 demo kernel: EXT3-fs error (device sda2): ext3_journal_start_sb:
Detected aborted journal
Dec 11 11:21:42 demo kernel: Remounting filesystem read-only

Sometimes its also throwing the following error when giving 'ls -l' command:

# ls -l
ls: reading directory .: Input/output error
total 0

This is a serious issue.....if anyone can highlight as to where the problem lies......with the HDD or with the Kernel.......a suggestion is highly appreciable.

Thanks and Regards,
Kosys
 
Old 12-14-2009, 07:48 AM   #2
AutoBot
Member
 
Registered: Mar 2002
Location: I can see you from here.
Distribution: Gentoo 1.3b
Posts: 184

Rep: Reputation: 34
It appears as if your drive is potentially going bad, run fsck.ext3 on it to make sure it isn't simply corruption.
 
Old 12-14-2009, 09:18 AM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
There is a known inactivity issue with freeagent drives and assume that this is the issue with your setup as well but had not seen any posts that the drive would remount.

http://news.softpedia.com/news/Worka...nt-73528.shtml
http://www.theinquirer.net/inquirer/...rkaround-linux
 
Old 12-15-2009, 01:14 AM   #4
kosys
Member
 
Registered: Dec 2007
Location: Kolkata, WB,India
Posts: 30

Original Poster
Rep: Reputation: 15
Red face

Hi AutoBot,

As suggested by you, I ran e2fsck:


# e2fsck /dev/sda
e2fsck 1.39 (29-May-2006)
Couldn't find ext2 superblock, trying backup blocks...
e2fsck: Bad magic number in super-block while trying to open /dev/sda

The superblock could not be read or does not describe a correct ext2
filesystem. If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193 <device>

Then again I ran as given in the error message but it threw the same error:

# e2fsck -b 8193 /dev/sda
e2fsck 1.39 (29-May-2006)
e2fsck: Bad magic number in super-block while trying to open /dev/sda

The superblock could not be read or does not describe a correct ext2
filesystem. If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193 <device>




Quote:
Originally Posted by AutoBot View Post
It appears as if your drive is potentially going bad, run fsck.ext3 on it to make sure it isn't simply corruption.
 
Old 12-15-2009, 10:59 AM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Quote:
e2fsck /dev/sda
You need to specify a partition ID i.e. sda1 or sda2.
 
Old 12-15-2009, 11:04 PM   #6
kosys
Member
 
Registered: Dec 2007
Location: Kolkata, WB,India
Posts: 30

Original Poster
Rep: Reputation: 15
Red face

Hi Michael,

Following are the activities I did:

# fsck.ext3 /dev/sda1
e2fsck 1.39 (29-May-2006)
/dev/sda1 contains a file system with errors, check forced.
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
/dev/sda1: 14/30539776 files (7.1% non-contiguous), 9636758/61049000 blocks


# fsck.ext3 /dev/sda2
e2fsck 1.39 (29-May-2006)
/dev/sda2 contains a file system with errors, check forced.
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
/dev/sda2: 14/30583008 files (7.1% non-contiguous), 7333373/61046784 blocks

But still the issue exists. Please help.......

Regards,
Kosys


Quote:
Originally Posted by michaelk View Post
You need to specify a partition ID i.e. sda1 or sda2.
 
Old 12-16-2009, 08:04 AM   #7
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Have you tried disabling the drive's power saving feature?
 
Old 12-16-2009, 11:44 PM   #8
kosys
Member
 
Registered: Dec 2007
Location: Kolkata, WB,India
Posts: 30

Original Poster
Rep: Reputation: 15
Hi Michael,

Thanks for your response. May I know how to disable the drive's power saving feature?

Also can you tell me why you are suggesting so? How would this help?

Thanks once again,
Kosys

Quote:
Originally Posted by michaelk View Post
Have you tried disabling the drive's power saving feature?
 
Old 12-17-2009, 11:39 AM   #9
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Quote:
Originally Posted by kosys View Post
Hi Michael,

Thanks for your response. May I know how to disable the drive's power saving feature?

Also can you tell me why you are suggesting so? How would this help?
Did you read the links I posted?
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Need Help, I unmounted external USB HDD, now will not mount thebrainman SUSE / openSUSE 3 12-14-2008 05:07 PM
Ubuntu compatibility issues with Seagate Free Agent Pro External hdd? meandyou Linux - Hardware 3 12-03-2008 10:23 AM
seagate external HDD r00tNinj4 Linux - Hardware 1 03-19-2006 07:02 AM
How do I automatically logout after a period of inactivity? AshleyK Linux - Security 4 12-31-2004 10:47 PM
Log entry during period of inactivity Gavin Linux - General 1 01-14-2002 01:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:58 AM.

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