LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 11-18-2012, 03:33 PM   #1
AllanB
LQ Newbie
 
Registered: Jun 2006
Location: Titirangi, Auckland, New Zealand
Distribution: Ubuntu 10.04LTS
Posts: 24

Rep: Reputation: 0
Cannot Access HDD


I have a P4 running Ubuntu 10.04LTS. It has 2 HDD's; 160 GB SATA2 for Windows and a 300 GB SATA2 for Ubuntu. The PC refused to start yesterday so I booted it with 10.04LTS on a live CD. The system sees both drives and the 160GB one is accessable, but the 300GB is seen, but not accessable.
Am I able to recover data form this drive; I only want one Thunderbird mailbox and one directory of correspondence.
Yes, I know I should have backed it up a week ago! Any help will be very much appreciated.

Here are the messages:

Unable to mount 294 GB Filesystem
DBus error org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.

When an attempt is made to access the drive this is the message:
Unable to mount 294 GB Filesystem
DBus error org.gtk.Private.RemoteVolumeMonitor.Failed: An operation is already pending

GParted reports this:
/dev/sdc2 ext4 273.70 GiB size 187.01 GiB used

Disk Utility
Error checking filesystem on volume
An error occurred while performing an operation on "294 GB Filesystem" (Partition 1 of ATA ST3300622AS): The device is busy There is already a job running

It also reports 24 bad sectors.
 
Old 11-18-2012, 05:59 PM   #2
jv2112
Member
 
Registered: Jan 2009
Location: New England
Distribution: Arch Linux
Posts: 718

Rep: Reputation: 102Reputation: 102
Lightbulb



After you back up your data. I would suggest a couple of steps.

I would suggest boot via parted majic and run diagnostic to determine if it is a hardware problem.

If not the next step I would try is boot again from the live Ubuntu disk and reinstall grub.
 
Old 11-19-2012, 04:41 AM   #3
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 11,024
Blog Entries: 1

Rep: Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364
Member Response

Hi,

You should boot 'single' user mode then run 'fsck' on the filesystem or use the LiveCD to run 'fsck' on the file system in question. This will insure no conflicts.
Excerpt from 'man fsck';
Quote:
NAME
fsck - check and repair a Linux filesystem

SYNOPSIS
fsck [-lsAVRTMNP] [-C [fd]] [-t fstype] [filesys...] [--] [fs-specific-options]

DESCRIPTION
fsck is used to check and optionally repair one or more Linux filesystems. filesys can be a device name (e.g. /dev/hdc1,
/dev/sdb2), a mount point (e.g. /, /usr, /home), or an ext2 label or UUID specifier (e.g.
UUID=8868abf6-88c5-4a83-98b8-bfc24057f7bd or LABEL=root). Normally, the fsck program will try to handle filesystems on
different physical disk drives in parallel to reduce the total amount of time needed to check all of them.

If no filesystems are specified on the command line, and the -A option is not specified, fsck will default to checking
filesystems in /etc/fstab serially. This is equivalent to the -As options.

The exit code returned by fsck is the sum of the following conditions:

0 No errors
1 Filesystem errors corrected
2 System should be rebooted
4 Filesystem errors left uncorrected
8 Operational error
16 Usage or syntax error
32 Fsck canceled by user request
128 Shared-library error

The exit code returned when multiple filesystems are checked is the bit-wise OR of the exit codes for each filesystem that
is checked.

In actuality, fsck is simply a front-end for the various filesystem checkers (fsck.fstype) available under Linux. The
filesystem-specific checker is searched for in /sbin first, then in /etc/fs and /etc, and finally in the directories
listed in the PATH environment variable. Please see the filesystem-specific checker manual pages for further details.
 
Old 11-20-2012, 03:27 PM   #4
AllanB
LQ Newbie
 
Registered: Jun 2006
Location: Titirangi, Auckland, New Zealand
Distribution: Ubuntu 10.04LTS
Posts: 24

Original Poster
Rep: Reputation: 0
Gary,
Many thanks for your suggestions, as a consequence I used e2fsck, not fsck, as the drive in question has an ext4 filesystem.

Here is the command and the message:

ubuntu@ubuntu:~$ sudo e2fsck -p /dev/sdc2
e2fsck: Attempt to read block from filesystem resulted in short read while trying to open /dev/sdc2
Could this be a zero-length partition?
ubuntu@ubuntu:~$

I will now look at your suggested guides, and also read up on the other command options. I hope that the record of the file structure was not contained in the reported 24 bad sectors.

Regards Allan
 
Old 11-20-2012, 04:58 PM   #5
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 11,024
Blog Entries: 1

Rep: Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364
Member Response

Hi,
Quote:
Originally Posted by AllanB View Post
Gary,
Many thanks for your suggestions, as a consequence I used e2fsck, not fsck, as the drive in question has an ext4 filesystem.

Here is the command and the message:

ubuntu@ubuntu:~$ sudo e2fsck -p /dev/sdc2
e2fsck: Attempt to read block from filesystem resulted in short read while trying to open /dev/sdc2
Could this be a zero-length partition?
ubuntu@ubuntu:~$

I will now look at your suggested guides, and also read up on the other command options. I hope that the record of the file structure was not contained in the reported 24 bad sectors.

Regards Allan
'fsck' is the front end for filesystem checks.
Quote:
In actuality, fsck is simply a front-end for the various filesystem checkers (fsck.fstype) available under Linux. The filesystem-specific checker is
searched for in /sbin first, then in /etc/fs and /etc, and finally in the directories listed in the PATH environment variable. Please see the filesys-
tem-specific checker manual pages for further details.
If you do a 'man fsck' you will get;
Quote:
Normally, the fsck program
will try to handle filesystems on different physical disk drives in parallel to reduce the total amount of time needed to check all of them.

If no filesystems are specified on the command line, and the -A option is not specified, fsck will default to checking filesystems in /etc/fstab seri-
ally. This is equivalent to the -As options.
.
.
.
SEE ALSO
fstab(5), mkfs(8), fsck.ext2(8) or fsck.ext3(8) or e2fsck(8), cramfsck(8), fsck.minix(8), fsck.msdos(8), fsck.jfs(8), fsck.nfs(8), fsck.vfat(8),
fsck.xfs(8), fsck.xiafs(8), reiserfsck(8).
Plus be sure to either insure no access to the filesystem by others by using 'single' user mode or boot using a LiveCD.

You might test the hdd with the manufactures diagnostic set.
HTH!
 
Old 11-21-2012, 11:28 AM   #6
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
If fsck fails, it's not good. You can try using ddrescue to image the partition to a good drive and then carve data from the image using testdisk or foremost.
 
Old 11-22-2012, 07:11 PM   #7
AllanB
LQ Newbie
 
Registered: Jun 2006
Location: Titirangi, Auckland, New Zealand
Distribution: Ubuntu 10.04LTS
Posts: 24

Original Poster
Rep: Reputation: 0
After startup from live CD, ubuntu 10.04LTS, single user. The drive appears to be busy, even though I haven't mounted it.

ubuntu@ubuntu:~$ sudo e2fsck -f /dev/sdc1
e2fsck 1.41.11 (14-Mar-2010)
e2fsck: Device or resource busy while trying to open /dev/sdc1
Filesystem mounted or opened exclusively by another program?

ubuntu@ubuntu:~$ umount /dev/sdc1
umount: /dev/sdc1 is not mounted (according to mtab)

Output from Disk Utility
File system check on "294 GB Filesystem" (Partition 1 of ATA ST3300622AS) completed
File system is NOT clean.

Then tried mounting /sdc, the message:

Error mounting volume
An error occurred while performing an operation on "294 GB Filesystem" (Partition 1 of ATA ST3300622AS): The device is busy
Details
A job is pending on /dev/sdc1

I have also run dumpe2fs, and then taken the second superblock, as below:

ubuntu@ubuntu:~$ sudo dumpe2fs /dev/sdc1 | grep -i superblock > sblock.txt
dumpe2fs 1.41.11 (14-Mar-2010)
ubuntu@ubuntu:~$ sudo e2fsck -f -b32768 /dev/sdc1
e2fsck 1.41.11 (14-Mar-2010)
e2fsck: Device or resource busy while trying to open /dev/sdc1
Filesystem mounted or opened exclusively by another program?
ubuntu@ubuntu:~$

I have, as H_TexMex_H taken a copy of a rescue CD but not used it yet.

Many thanks and regards

printf("goodbye, Dennis");
The Economist's Headline for Dennis Ritchie's Obituary
 
Old 11-23-2012, 06:51 AM   #8
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 11,024
Blog Entries: 1

Rep: Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364
Member Response

Hi,

Try one of these LiveCD;
Quote:
UBCD Ultimate Boot CD <- 'UBCD allows users to run floppy-based diagnostic tools from most CDROM drives on Intel-compatible machines, no operating system required. The cd includes many diagnostic utilities.'

SystemRescueCd <- 'is a Linux system on a bootable CD-ROM for repairing your system and recovering your data after a crash. It aims to provide an easy way to carry out admin tasks on your computer, such as creating and editing the partitions of the hard disk. It contains a lot of system utilities (parted, partimage, fstools, ...) and basic tools (editors, midnight commander, network tools).' + 'Online-Manual
If you do not pass 'single' to the *buntu install CD the HD device may be used. Above diagnostic LIveCD should boot as 'single'.
 
1 members found this post helpful.
Old 11-25-2012, 07:44 PM   #9
AllanB
LQ Newbie
 
Registered: Jun 2006
Location: Titirangi, Auckland, New Zealand
Distribution: Ubuntu 10.04LTS
Posts: 24

Original Poster
Rep: Reputation: 0
The Ultimate Boot CD has given me access to the HDD and I have been able to retrieve all of the files I wanted, plus some. It is a far easier job with the right tools.
Many thanks for your help, I really appreciate it.
Regards Allan
 
Old 11-25-2012, 08:11 PM   #10
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 11,024
Blog Entries: 1

Rep: Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364
Member Response

Your Welcome!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Why can't I access my other HDD's skeksis Slackware 3 09-12-2009 01:19 PM
Cannot access hdd macubex Linux - Newbie 1 04-10-2009 07:56 AM
HDD access password theriel Linux - Security 5 01-17-2009 07:44 AM
Can't access HDD through fdisk Vindane Slackware 2 05-10-2006 11:51 AM
Multiple access to the same HDD F0ul_Olli Linux - Hardware 3 09-07-2005 11:15 AM


All times are GMT -5. The time now is 02:15 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration