nixCraft Linux Forum

nixCraft

Linux / UNIX Tech Support Forum

Unable to Access Storage Partition

This is a discussion on Unable to Access Storage Partition within the Ubuntu / Debian forums, part of the Linux Distribution category; Hi, First time poster, long time reader of the forums... So, I'm running Ubuntu 8.04.1 LTS for servers. I run ...


Go Back   nixCraft Linux Forum > Linux Distribution > Ubuntu / Debian

Linux answers from nixCraft.


Ubuntu / Debian Discussion about Debian or Ubuntu Linux related problems.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-06-2009, 10:20 AM
Junior Member
User
 
Join Date: Jun 2009
OS: Ubuntu 8.04.1 Server LTS
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
jmg999 is on a distinguished road
Default Unable to Access Storage Partition

Hi,
First time poster, long time reader of the forums...
So, I'm running Ubuntu 8.04.1 LTS for servers. I run the OS on its own 250GB HDD. I also have an EXT3 3.2TB RAID-5 array. This is what's become unreachable. I've been having an issue w/ the onboard NIC, I believe. It causes kernel panics every so often, and the system has to be given a hard shutdown. Yesterday, when I attempted to restart it, I ran into some major difficulties.
First off, there was an indicator upon boot that there was some damage to the array. The suggestion was to run fsck. This took me into a management shell. Running an fsck didn't help, and I was given this message:


Code:
jeffe@USC:~$ sudo fsck /dev/sda1
[sudo] password for jeffe:
fsck 1.40.8 (13-Mar-2008)
e2fsck 1.40.8 (13-Mar-2008)
fsck.ext2: Superblock invalid, trying backup blocks...
fsck.ext2: Bad magic number in super-block while trying to open /dev/sda1
 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>

So, trying this method for all my alternate superblocks, I was presented w/ this:
Code:
jeffe@USC:~$ sudo fsck -b 32768 /dev/sda1
fsck 1.40.8 (13-Mar-2008)
e2fsck 1.40.8 (13-Mar-2008)
fsck.ext2: Device or resource busy while trying to open /dev/sda1
Filesystem mounted or opened exclusively by another program?

However, the partition is not mounted, nor are there any processes running that are tied to it. Even running fuser couldn't resolve this. I then took a look at fdisk -l. It showed the partition had this filesystem type: EFI GPT. This is not correct. After reading everything I could find online, I finally made the decision to use fdisk to change the label back to 83 Linux. I did this, but it didn't help anything. When I try to run fsck or e2fsck, it still gets me nowhere:
Code:
jeffe@USC:~$ sudo e2fsck /dev/sda1
e2fsck 1.40.8 (13-Mar-2008)
e2fsck: Superblock invalid, trying backup blocks...
e2fsck: Bad magic number in super-block while trying to open /dev/sda1
 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>
 jeffe@USC:~$ sudo e2fsck -b 98304 /dev/sda1
e2fsck 1.40.8 (13-Mar-2008)
e2fsck: Device or resource busy while trying to open /dev/sda1
Filesystem mounted or opened exclusively by another program?
 jeffe@USC:~$ dmesg |tail
[  386.826582] VFS: Can't find ext3 filesystem on dev sda1

I've tried from both single-user mode and logged in as myself. I've also booted to a live CD, hoping that the device would not appear to be in use; no luck. I even tried booting to a GParted live CD, but it was unable to see the partition that the array is on. If anyone has any new ideas, I'm open to trying it. This array has a great deal of data on it that is irreplaceable. Any help would be immensely appreciated. Thank you very much.




Jeff
Reply With Quote
  #2 (permalink)  
Old 06-06-2009, 07:01 PM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
OS: RHEL
Scripting language: Bash and Python
Posts: 2,710
Thanks: 11
Thanked 244 Times in 183 Posts
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

Boot from Live CD.

Do not mount /dev/sda1. Running fsck on /dev/sda1 will result into data loss. Umount it:
Code:
umount /dev/sda1
fsck optionons /dev/sda1
__________________
Vivek Gite
Linux Evangelist
Be proud RHEL user, and let the world know about your enterprise choices! Join RedHat user group.
Always use CODE tags for posting system output and commands!
Do you run a Linux? Let's face it, you need help
Reply With Quote
  #3 (permalink)  
Old 06-06-2009, 08:30 PM
Junior Member
User
 
Join Date: Jun 2009
OS: Ubuntu 8.04.1 Server LTS
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
jmg999 is on a distinguished road
Default

Thanks for the reply. The partition is not mounted. You can see from the code I've posted that fsck isn't an option due to busy device issues, which must first be corrected.
Reply With Quote
  #4 (permalink)  
Old 07-06-2009, 12:35 AM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
OS: RHEL
Scripting language: Bash and Python
Posts: 2,710
Thanks: 11
Thanked 244 Times in 183 Posts
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

EFI GPT is correct as fdisk command cannot create a partition size larger than 2TB. You have to use Intel EFI/GPT partition tables. Run following to get location of all superblocks and try them one by one (you may also need to change back to eft)
Code:
dumpe2fs /dev/sda1 | grep Backup
Also, if care is not taken data loss may occure so be careful.
__________________
Vivek Gite
Linux Evangelist
Be proud RHEL user, and let the world know about your enterprise choices! Join RedHat user group.
Always use CODE tags for posting system output and commands!
Do you run a Linux? Let's face it, you need help
Reply With Quote
  #5 (permalink)  
Old 07-06-2009, 12:50 AM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
OS: RHEL
Scripting language: Bash and Python
Posts: 2,710
Thanks: 11
Thanked 244 Times in 183 Posts
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

Oh just incase if something goes wrong, use TestDisk to recover data TestDisk - CGSecurity

Good luck!
__________________
Vivek Gite
Linux Evangelist
Be proud RHEL user, and let the world know about your enterprise choices! Join RedHat user group.
Always use CODE tags for posting system output and commands!
Do you run a Linux? Let's face it, you need help
Reply With Quote
  #6 (permalink)  
Old 28-06-2009, 02:43 PM
Junior Member
User
 
Join Date: Jun 2009
OS: Ubuntu
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
tiemen3r is on a distinguished road
Default

Hi, Sorry for possibly digging up an old, irrelevant thread, but there might be more people looking for the solution. This is actually a bug in e2fsck, introduced in 1.40.7. Here's a link to a thread on the Ubuntu Forums with a reply (and a workaround!) from the maintainer himself: [ubuntu] e2fsck reports device as busy with -b parameter - Ubuntu Forums
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
Unable to delete LVM partition gopi_kolagani Linux software 2 21-02-2009 08:54 PM
unable to access ftp server via Internet explorer satishap Web servers 1 14-09-2008 09:26 PM
Adding storage function to a mail server satimis Databases servers 0 04-01-2008 01:15 PM
Access windows partition mannrj45 Linux software 2 04-12-2006 09:03 AM
Debian recovery mode read only access make it write access Donavit Linux software 1 30-12-2005 12:49 AM


All times are GMT +5.5. The time now is 03:06 PM.


Powered by vBulletin® Version 3.8.5 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2010 nixCraft. All rights reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38