LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 07-02-2004, 02:31 PM   #1
drigz
Member
 
Registered: Apr 2004
Distribution: Gentoo ~x86
Posts: 407

Rep: Reputation: 30
Damaged ext3 partition


I have two hard drives. One had one big ntfs partition, and the other had a slackware install. I resized the ntfs partition and added a swap partition and and ext2 partition. I built a Linux From Scratch on this. However, as I had made some mistakes, and not optimised that, I decided to shink it again and build a new LFS. I booted into knoppix and did:
e2fsck -f /dev/hda3
resize2fs /dev/hda3 50000M
fdisk
delete partition 3
create partition 3 size 50000M
create partition 4 rest of disk
boot into LFS on hda3
mke2fs /dev/hda4
startxfce4

However, when I started up xfce4, i soon realised that / was read-only (it was not before I started xfce4 - i rebooted and checked this). I closed xfce4, and found the following error kept appearing in lines of 4:
EXT3-fs error (device hda3) in start_transaction: Journal has aborted

I booted into slackware, and ran e2fsck /dev/hda3, which gave this output:
Code:
root@ayro:/mnt# e2fsck /dev/hda3
e2fsck 1.35 (28-Feb-2004)
The filesystem size (according to the superblock) is 12800000 blocks
The physical size of the device is 12207270 blocks
Either the superblock or the partition table is likely to be corrupt!
Abort<y>? no

/dev/hda3 contains a file system with errors, check forced.
Pass 1: Checking inodes, blocks, and sizes
Error reading block 12222466 (Invalid argument) while doing inode scan.  Ignore error<y>? no

Error while scanning inodes (6111232): Can't read next inode
e2fsck: aborted
I realised that it had been shrunk too much, so I tried resize2fs /dev/hda3 (which should resize it to the size of the device right?):
Code:
root@ayro:/mnt# resize2fs /dev/hda3
resize2fs 1.35 (28-Feb-2004)
Please run 'e2fsck -f /dev/hda3' first.

root@ayro:/mnt# resize2fs -f /dev/hda3
resize2fs 1.35 (28-Feb-2004)
Resizing the filesystem on /dev/hda3 to 12207270 (4k) blocks.
resize2fs: Can't read an block bitmap while trying to resize /dev/hda3
Please tell me how I can get it usable again...

EDIT: When I booted into LFS to find out the error message, it started saying that ext3 was getting errors when I tried to access certain files (/sbin/shutdown for example) and now I can't mount it from slackware (it says wrong fs type for mount -t ext3 and 2). Is there something like recover in Linux, so I can get some of my stuff back?

Last edited by drigz; 07-02-2004 at 05:40 PM.
 
Old 07-03-2004, 12:09 PM   #2
drigz
Member
 
Registered: Apr 2004
Distribution: Gentoo ~x86
Posts: 407

Original Poster
Rep: Reputation: 30
ok, i got a program which looked at my ext3 partition from windows, retrieved all the vital files, and now im building a new lfs in the space taken up by hda3&4
 
  


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
Rescue a damaged partition Timer Linux - General 4 10-07-2005 03:54 PM
Cannot mount ext3 filesystem on damaged hard drive Mathieu_G Linux - Hardware 3 04-01-2005 10:51 PM
Damaged partition after installation ratavaz Mandriva 1 03-22-2004 04:49 PM
Slackware 9.1: ext3 Filesystem Damaged Chu Linux - General 2 03-01-2004 11:22 PM
Xandros Desktop damaged my XP partition.. why ? Santorres Linux - General 1 12-23-2003 11:50 AM


All times are GMT -5. The time now is 07:01 AM.

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