Find the answer to your Linux question:
Results 1 to 3 of 3
So I logged into my debian sarge linux box and was getting error messages where it couldn't write to some mail queue because of the "Read-only Filesystem" Googling that, I ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Mar 2006
    Posts
    1

    help me save my harddrive


    So I logged into my debian sarge linux box and was getting error messages where it couldn't write to some mail queue because of the "Read-only Filesystem"

    Googling that, I rebooted, in order to run fsck on the device.

    I couldn't actually get it to boot, recovery mode or no. So instead I booted a cd of knoppix. So I am know staring at a knoppix xterm trying to use fsck on my harddrive.

    I type

    fsck /dev/hda0

    and I get :

    fsck 1.35
    e2fsck 1.35
    fsck.ext: No such file or directory while trying to open /dev/hda0

    The superblock could not be read or does not describe a correct ext2 filesystem. If the device is valid and it really contains an ext2 filesystem (and not swap or ufs or something else), then the superblock is corrupt, and you might try running e2fsck with an alternate superblock:
    e2fsck -b 8193 <device>



    anyway, I can't even see /dev/hda0, though I can see /dev/hda, /dev/hda1...

    any ideas? I have data on this drive that I can not lose, and yes, I know I should have backed it up.

    help?

    Jeremy

  2. #2
    Linux Enthusiast
    Join Date
    Jul 2005
    Location
    Maryland
    Posts
    522
    Do you you have any other operating systems installed on that drive? Do you have any other drives to which you can save the data (can be hard drive, USB drive, or even drive on another computer)?
    If you only have Debian installed on that drive, then Debian is probably on /dev/hda1 . If there other partitions on the drive, then partition's number may be something else (/dev/hda#). Knoppix probably has detected all the partitions and displayed them on the Desktop. If not, open the terminal and type:
    Code:
    /sbin/fdisk -l /dev/hda
    It should show you what partitions there are on the drive.
    See which one is your Debian (Linux) partition.
    Before you try to fix the filesystem, backup your data to another drive or computer using Knoppix (the procedure will depend on which other drive you can use). Then try to run fsck on /dev/hda1 (if that's your Debian partition, or substitute 1 with appropriate number).

  3. #3
    Linux User
    Join Date
    Feb 2006
    Posts
    484
    The 0 is the fault
    No device in any linux with name hd*0.
    The hda0=hda and only hda exist.
    Well use

    fsck /dev/hda

    if you have two or more partitions on hda use

    fsck /dev/hdaN where N=1,2,3,.....

    have fun!

  4. $spacer_open
    $spacer_close

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •