public inbox for linux-newbie@vger.kernel.org
 help / color / mirror / Atom feed
From: Ray Olszewski <ray@comarre.com>
To: linux-newbie@vger.kernel.org
Subject: Re: Lost HD Partition
Date: Tue, 20 Jun 2006 22:15:37 -0700	[thread overview]
Message-ID: <4498D5F9.6040803@comarre.com> (raw)
In-Reply-To: <44995A5E.2030004@skyinet.net>

Peter wrote:
> For some reason I cannot access my important /usr/local hard drive 
> partition.
> 
> mount /mnt/hda6
> mount: wrong fs type, bad option, bad superblock on /dev/hda6,
> missing codepage or other error
> 
> # /sbin/fdisk /dev/hda6 -p
> 
> Disk /dev/hda6: 1998 MB, 1998710784 bytes
> 16 heads, 63 sectors/track, 3872 cylinders
> Units = cylinders of 1008 * 512 = 516096 bytes
> 
> Device Boot Start End Blocks Id System
> ----------
> The drive has/had ext3 which information apparently got lost
> 
> How could I access this drive again and remake it ext3 w/o losing the data?
> 
> What other info is needed?
> 
> Thanks & regards

The way you are mounting (or trying to mount) hda6 relies on the 
information about it entered into /etc/fstab . Take a look at that file 
and see if it suggests a solution; if it doesn't, you should probably 
post it here, since one of us might then spot something you missed.

For example, is it possible that fstab specifies the <type> as "ext3" 
rather than as "ext3,ext2"? If so, and if the ext3 journal "got lost" 
somehow (I'm not really clear on what you are telling us happened), then 
the kernel would not try to fall back to ext2 ... offhand, I don't know 
what error it would give, but the one you are seeing at least seems 
consistent with this.

The fdisk information you provide seems a bit sparse. You didn't include 
the partition table info, just what looks like the information about the 
small (by today's standards) physical disk (which would be /dev/hda, not 
/dev/hda6). The combination of that and the fact that my version of 
fdisk doesn't have a -p option leaves me unable to make specific 
suggestions about how you should provide the partition table info.

Have you tried running e2fsck on this partition? If so, what happens?

The usual way to add an ext3 journal to an ext2 filesystem is with 
tune2fs ... specifically, "tune2fs -j /dev/hda6".

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

  reply	other threads:[~2006-06-21  5:15 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-21 14:40 Lost HD Partition Peter
2006-06-21  5:15 ` Ray Olszewski [this message]
2006-06-21 19:23   ` Peter
2006-06-21 13:56     ` chuck gelm
2006-06-21 19:47     ` Hal MacArgle
  -- strict thread matches above, loose matches on Subject: below --
2006-06-22 13:02 Peter
2006-06-22 13:58 ` Hal MacArgle

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4498D5F9.6040803@comarre.com \
    --to=ray@comarre.com \
    --cc=linux-newbie@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox