Re: "Cannot find file system superblock" error - how to recover?

From: Scott I. Remick (scott_at_sremick.net)
Date: 01/06/04

  • Next message: Ken Seggerman: "Re: How do I read digital camera on USB port with hppsmtools?"
    Date: Tue, 6 Jan 2004 06:07:23 -0800 (PST)
    To: Malcolm Kay <malcolm.kay@internode.on.net>
    
    

    --- Malcolm Kay <malcolm.kay@internode.on.net> wrote:
    >
    > Beware; if you write a disklabel (or presumably bsdlabel; I have no
    > experience
    > with 5.x) to ad6 you create a "dangerously dedicated"
    > disk, i.e. a disk without slices.

    Ok. I am not saying that's what I want to do, I only mentioned it because
    the man page for disklabel/bsdlabel uses the entire disk (/dev/da0) as an
    example.

    "man disklabel" brings up bsdlabel, which is why I mention bsdlabel instead.

    http://www.freebsd.org/cgi/man.cgi?query=bsdlabel

    > Are you saying that the disklabels reported for ad6s1 and ad6s1c are
    > different?

    This is correct. Your surprise suggests that it was good I mentioned that,
    eh? :) Glad I haven't done anything yet.

    In summary, ad6s1 returns an offset of 0 and no error. ad6s1c returns an
    offset of 63 and the rest of the info is identical except for the following
    error tagged on at the end:

    partition c: partition extends past end of unit
    bsdlabel: partition c doesn't start at 0!
    bsdlabel: An incorrect partition c may cause problems for standard system
    utilities
    partition e: partition extends past end of unit

    > Under FreeBSD 4.x ad6s1 and ad6s1c would normally be aliases referencing
    > the entire slice. Maybe 5.x is different! I'm now very confused.

    I'm not sure... maybe Sergey wants to pipe in here on this point?

    > What is reported by fdisk?

    Ah, I'm at work now. Can't do that from here... I'll let you know later.

    Thanks!
    _______________________________________________
    freebsd-questions@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-questions
    To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"


  • Next message: Ken Seggerman: "Re: How do I read digital camera on USB port with hppsmtools?"

    Relevant Pages

    • Re: seeking help on "adding a disk"
      ... partition and mount it on directory /images. ... fdisk: ... the last command is trying to write past the edge of the disk. ... It looks like things worked up to the bsdlabel which didn't do anything. ...
      (freebsd-questions)
    • Re: seeking help on "adding a disk"
      ... I want to devote the entire disk to FreeBSD and use a single slice ... BIOS sector numbering starts with sector 1 ... The data for partition 1 is: ... It looks like things worked up to the bsdlabel which didn't do ...
      (freebsd-questions)
    • Re: How to safely merge two slices on harddisk?
      ... The disk slices are as follows: ... all the information from /mnt into some new tree in /usr/ports. ... Having done that partition /dev/ad1s1g becomes free and you ...
      (freebsd-questions)
    • Re: good/best practices for gmirror and gjournal on a pair of disks?
      ... Each disk has single slice that covers almost all of the disk. ... slices are combined into the gmirror device, ... Since I'm only gjournal'ing a portion of the underlying gmirror ... Because I'm not journaling the root partition, I chose to ignore the possibility of gjournal marking the mirror clean. ...
      (freebsd-stable)
    • Re: Hard Drive Issues
      ... I'm assuming that particular sector on the drive is dying, ... Looks like you disk is on its way out, from the look of the above ... bsdlabel and newfs the new disk the way you want it. ... Ignore all the stuff above where it displays the partition information. ...
      (freebsd-questions)