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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
12-14-2009, 05:42 AM
|
#1
|
Member
Registered: Dec 2007
Location: Kolkata, WB,India
Posts: 30
Rep:
|
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
|
|
|
12-14-2009, 07:48 AM
|
#2
|
Member
Registered: Mar 2002
Location: I can see you from here.
Distribution: Gentoo 1.3b
Posts: 184
Rep:
|
It appears as if your drive is potentially going bad, run fsck.ext3 on it to make sure it isn't simply corruption.
|
|
|
12-15-2009, 01:14 AM
|
#4
|
Member
Registered: Dec 2007
Location: Kolkata, WB,India
Posts: 30
Original Poster
Rep:
|
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
It appears as if your drive is potentially going bad, run fsck.ext3 on it to make sure it isn't simply corruption.
|
|
|
|
12-15-2009, 10:59 AM
|
#5
|
Moderator
Registered: Aug 2002
Posts: 26,758
|
You need to specify a partition ID i.e. sda1 or sda2.
|
|
|
12-15-2009, 11:04 PM
|
#6
|
Member
Registered: Dec 2007
Location: Kolkata, WB,India
Posts: 30
Original Poster
Rep:
|
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
You need to specify a partition ID i.e. sda1 or sda2.
|
|
|
|
12-16-2009, 08:04 AM
|
#7
|
Moderator
Registered: Aug 2002
Posts: 26,758
|
Have you tried disabling the drive's power saving feature?
|
|
|
12-16-2009, 11:44 PM
|
#8
|
Member
Registered: Dec 2007
Location: Kolkata, WB,India
Posts: 30
Original Poster
Rep:
|
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
Have you tried disabling the drive's power saving feature?
|
|
|
|
12-17-2009, 11:39 AM
|
#9
|
Moderator
Registered: Aug 2002
Posts: 26,758
|
Quote:
Originally Posted by kosys
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?
|
|
|
All times are GMT -5. The time now is 05:42 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|