Hi,

On Wed, 24 Jan 2007 19:37:16 +0100
jcd <[EMAIL PROTECTED]> wrote:

> "Everything was fine" mean; I created partition and then formatted it
> without any errors or warnings. There are messages from syslog:
> -----------------------------------------------------------------------
> Jan 22 23:43:16 localhost EXT3 FS on sdb1, internal journal
> Jan 22 23:43:16 localhost EXT3-fs: mounted filesystem with ordered data
> mode.

OK, you've got a syslog. That's excellent. The question is: Did you
reboot between changing the partition layout and creating the
filesystem? Anyway, my suggestion would have been to run gpart.

> Why it can happen when replacing two partitions with large one?

Because (c)fdisk modifies the partition table that's on the disk. The
kernel uses a different in-RAM copy of that partition table -- usually
in the state it's been at boot time. Fdisk actually tries to let the
kernel reload the partition table -- but this often fails. Only a
reboot synchronizes the kernel's cached copy of the partition table
with the "real" one that's been written to disk. So your new partition
table is only valid after a reboot. fdisk actually issues a warning
about this, I'm not sure about cfdisk. Why it is talking about
accessing "sdb1" and mounting it as ext3 -- I dunno. Maybe some major
partition layout inconsistency?

> I tried gpart with this output:
> -----------------------------------------------------------------------
> #gpart /dev/sdb
> Begin scan...
> Possible partition(Windows NT/W2K FS), size(40959mb), offset(0mb)
> Possible partition(Linux ext2), size(197512mb), offset(40959mb)
> End scan.

Bene, bene, excellent! So it seems to be true, the linux partition is
still hiding on that disk at offset 40959MB.

> Primary partition(2)
>    type: 131(0x83)(Linux ext2 filesystem)
>    size: 197512mb #s(404505360) s(83885760-488391119)
>    chs:  (1023/239/63)-(1023/239/63)d (5548/0/1)-(32300/239/63)r

If you have some free spare space on another disk, try to dd that
partition into a file and loop-mount it. E.g.

$ dd if=/dev/sdb of=/elsewhere/ext3fs bs=$(expr 83885760 / 197512) 
skip=83885760 count=$(expr 488391119 - 83885760)
$ mount -o loop /elsewhere/ext3fs /mnt/test

Otherwise, you have to try and create a valid partition entry for that
"hidden" partition. gpart can do that too, AFAIK. But I prefer the
"backup" way I outlined above.

-hwh
-- 
gentoo-user@gentoo.org mailing list

Reply via email to