Gentoo Archives: gentoo-user

From: jcd <jcd@××××××.cz>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] ext3 partition dissapeared :(
Date: Tue, 23 Jan 2007 16:23:47
Message-Id: 1169569078.10964.10.camel@paulie.kitchen
In Reply to: Re: [gentoo-user] ext3 partition dissapeared :( by Alan McKinnon
1 Alan McKinnon píše v Út 23. 01. 2007 v 16:39 +0100:
2 > On Tuesday 23 January 2007 13:11, jcd wrote:
3 > > Hi.
4 > > I'm in bad situation. I have two physical disks. First (DiskA) have
5 > > 200GB and second (DiskB) have 160GB capacity. On DiskB I have Linux
6 > > partitions and some data partitions. On DiskA I had had 40GB NTFS
7 > > (Windows) and 160GB NTFS partitions (data), but I already deleted
8 > > Windows partition. So, I copied data from 160GB partition on DiskA to
9 > > temporary space on DiskB, then I deleted remaining NTFS partition on
10 > > DiskA and created one 200GB ext3 partition (I think so. In cfdsik I
11 > > chose partition type '83 Linux') and then formatted it 'mke2fs
12 > > -j /dev/sdb1'. Then I copied (moved :( ) all the data back to DiskA
13 > > and everuthing was fine. It was yesterday. Today I started PC and at
14 > > startup init said "Some local filesystems failed to mount". OK, in
15 > > /etc/fstab I have "/dev/sdb1 /mnt/zaloha ext3 noatime 0 2" ... it
16 > > seems to be good. I also tried to change ext2, but with both 'mount
17 > > -a' says:
18 > > mount: wrong fs type, bad option, bad superblock on /dev/sdb1,
19 > > missing codepage or other error
20 > > In some cases useful info is found in syslog - try
21 > > dmesg | tail or so.
22 > > In /var/log/messages I found just "VFS: Can't find ext3 filesystem on
23 > > dev sdb1" :((. When I try just 'mount /dev/sdb1 /mnt/zaloha',
24 > > at /mnt/zaloha I have mounted that old Windows partition that I
25 > > already deleted. Do you know any solution how can I get back my ext3
26 > > partition to get back my data please? And what could be cause of this
27 > > problem or when I can find what is the cause? Thanks very very much.
28 >
29 > You've given lots of words, but very very little information, not even
30 > the commands you used to perform these actions. Without this info it
31 > becomes very hard to help you out.
32 >
33 > Meantime, please provide the output of the following commands:
34 >
35 > fdisk -l
36 > fsck /dev/sdb1
37 > mount /dev/sdb1 /some/mount/point
38 >
39 > and we'll take it from there
40 >
41 > alan
42 >
43
44 OK. Here it is (I confused First disk capacity, 250GB instead of 200GB):
45
46 ------------------------------------------------------------------------
47 #fdisk -l /dev/sdb
48 Disk /dev/sdb: 250.0 GB, 250059350016 bytes
49 240 heads, 63 sectors/track, 32301 cylinders
50 Units = cylindry of 15120 * 512 = 7741440 bytes
51
52 Device Boot Start End Blocks Id System
53 /dev/sdb1 1 32301 244195528+ 83 Linux
54 ------------------------------------------------------------------------
55
56 ------------------------------------------------------------------------
57 #fsck /dev/sdb1
58 fsck 1.39 (29-May-2006)
59 e2fsck 1.39 (29-May-2006)
60 Couldn't find ext2 superblock, trying backup blocks...
61 fsck.ext3: Bad magic number in super-block while trying to
62 open /dev/sdb1
63
64 The superblock could not be read or does not describe a correct ext2
65 filesystem. If the device is valid and it really contains an ext2
66 filesystem (and not swap or ufs or something else), then the superblock
67 is corrupt, and you might try running e2fsck with an alternate
68 superblock:
69 e2fsck -b 8193 <device>
70 ------------------------------------------------------------------------
71
72 When I do "mount /dev/sdb1 /mnt/zaloha" at /mnt/zaloha I see that old
73 Windows NTFS partition that I already deleted (There are "Program
74 Files", "WINDOWS", ...). I don't understand why (somewhere I read that
75 ext3 start writing at the middle of the disk space to prevent
76 defragmentation).
77
78
79 --
80 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] ext3 partition dissapeared :( Hans-Werner Hilse <hilse@×××.de>