Impossible de monter une partition Linux

Bonjour,

avant de réutiliser une ancienne partition, je voudrais savoir s'il n'y a plus rien dessus.
Mais quand je cherche à la monter j'ai un message d'erreur :

~$ sudo mount /dev/hdd3 /mnt/hdd3
mount: you must specify the filesystem type

Pourtant il s'agit bien d'une partition Linux, probablement ext3.

Disk /dev/hdd: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdd1 1 1246 10008463+ 83 Linux
/dev/hdd3 1247 8924 61673535 83 Linux
/dev/hdd4 8925 9729 6466162+ 5 Extended
/dev/hdd5 8925 9729 6466162 83 Linux

Le montage en précisant ext2, ext3 ou reiserfs ne donne rien non plus.

:~$ sudo mount /dev/hdd3 /mnt/hdd3 -t ext2
mount: wrong fs type, bad option, bad superblock on /dev/hdd3,
missing codepage or other error
In some cases useful info is found in syslog - try
dmesg | tail or so

Rien d'intéressant dans syslog :

Jan 16 19:50:33 xxxx-desktop kernel: [17182057.188000] VFS: Can't find an ext2 filesystem on dev hdd3.

Je suis en Ubuntu 6.10

Une idée quelqu'un ? Merci.
Configuration: Linux Ubuntu 6.10
Firefox 2.0.0.11

9 réponses

  1. Aîe : j'ai le message suivant :

    ~$ dmesg | grep hdd
    [17179577.180000] ide1: BM-DMA at 0xffa8-0xffaf, BIOS settings: hdc:DMA, hdd:DMA
    [17179579.176000] hdd: WDC WD800BB-55JKC0, ATA DISK drive
    [17179579.340000] hdd: max request size: 128KiB
    [17179579.340000] hdd: 156301488 sectors (80026 MB) w/2048KiB Cache, CHS=65535/16/63, UDMA(33)
    [17179579.340000] hdd: cache flushes supported
    [17179579.340000] hdd: hdd1 hdd3 hdd4 < hdd5 >
    [17179616.316000] EXT3 FS on hdd5, internal journal
    [17180706.632000] EXT3-fs warning (device hdd1): ext3_clear_journal_err: Filesystem error recorded from previous mount: IO failure
    [17180706.632000] EXT3-fs warning (device hdd1): ext3_clear_journal_err: Marking fs in need of filesystem check.

    Est-ce lié à mon problème ? Y a-t-il moyen de réparer ?
    1. Your installs have failed.
      remount your filesystem like this:

      mount -o remount,rw /


      then do a

      sudo dpkg --configure -a


      And the installation will continue.
  2. J'ai donc fait check du File System :

    ~$ sudo fsck /dev/hdd3
    fsck 1.39 (29-May-2006)
    e2fsck 1.39 (29-May-2006)
    Couldn't find ext2 superblock, trying backup blocks...
    fsck.ext2: Bad magic number in super-block while trying to open /dev/hdd3

    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>

    C'est grave, docteur ?

    :(
    1. Modérateur
      Salut,

      Affiche d'abord "cat /etc/fstab" peut être y verras-tu le système de fichier alloué à cette partition...

      Ensuite si c'est bien de l'ext2fs, alors essaie de taper la commande préconisée par "fsck" :
      sudo e2fsck -b 8193 /dev/hdd3
      ;-))
      1. La partition n'est pas montée au démarrage (il s'agit d'une précédente installation de Linux sur une autre machine : disque de récupération), elle n'apparaît pas avec cat /etc/fstab.

        J'ai essayé sudo e2fsck -b 8193 /dev/hdd3, même résultat...
        1. Bon, je crois que c'est mort :

          après avoir consulté le site :

          http://ww1.cepcasa.info/divers

          j'ai tenté les commandes :

          $ sudo mkfs.ext3 -n /dev/sdb3
          mke2fs 1.40.2 (12-Jul-2007)
          Filesystem label=
          OS type: Linux
          Block size=4096 (log=2)
          Fragment size=4096 (log=2)
          7716864 inodes, 15418383 blocks
          770919 blocks (5.00%) reserved for the super user
          First data block=0
          Maximum filesystem blocks=0
          471 block groups
          32768 blocks per group, 32768 fragments per group
          16384 inodes per group
          Superblock backups stored on blocks:
          32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
          4096000, 7962624, 11239424

          $ sudo mount /dev/sdb3 -t ext3 -o ro,sb=11239424 /mnt/hdd3/
          mount: wrong fs type, bad option, bad superblock on /dev/sdb3,
          missing codepage or helper program, or other error
          In some cases useful info is found in syslog - try
          dmesg | tail or so

          $ sudo mount /dev/sdb3 -t ext3 -o ro,sb=393216 /mnt/hdd3/
          mount: wrong fs type, bad option, bad superblock on /dev/sdb3,
          missing codepage or helper program, or other error
          In some cases useful info is found in syslog - try
          dmesg | tail or so

          ~$ dmesg | tail
          [ 1340.918877] VFS: Can't find an ext2 filesystem on dev sdb3.
          [ 1376.330184] NET: Registered protocol family 10
          [ 1376.330651] lo: Disabled Privacy Extensions
          [ 1386.447017] NET: Registered protocol family 17
          [ 1399.100742] eth0: no IPv6 routers present
          [ 1655.254024] VFS: Can't find ext3 filesystem on dev sdb3.
          [ 1671.574173] VFS: Can't find ext3 filesystem on dev sdb3.
          [ 1713.575173] VFS: Can't find ext3 filesystem on dev sdb3.
          [ 1751.135457] VFS: Can't find ext3 filesystem on dev sdb3.
          [ 2235.319425] VFS: Can't find ext3 filesystem on dev sdb3.

          même chose avec plusieurs valeurs de backup possibles multipliées ou non par 4...

          GParted me dit :
          Unable to detect filesystem! Possible reasons are:
          -The filesystem is damaged
          -The filesystem is unknown to GParted
          -There is no filesystem (unformatted)


          Je précise que j'ai upgradé à Ubuntu 7.10 (Gusty)

          Une dernière idée avant reformatage ?
          1. cetet ligne (/dev/hdd3 1247 8924 61673535 83 Linux ) dit que c'est un ext3 ( 83 ), ligne surement obtenue avec un fdisk /dev/hdd ; puis p )
            essaie de monter ta partition par fstab :

            dans un terminal : ( tiré de http://bruno.sanchiz.free.fr/spip/spip.php?article100 ) ATTENTION à ne pas avoir de répertoire ou fichier br_123456
            ls -l /dev/disk/by-uuid/*
            ou mieux :
            ls -l /dev/disk/by-uuid/* | cut -d":" -f2 | grep sda3 | cut -d" " --fields 4,2 | sed -e "s/\/dev\/disk\/by-uuid\//UUID=/" -e "s/..\/..\// \/media\//" >br_123456 && more br_123456 |sed -e "s/-/%/g" -e "T pas-" -e "s/%/-/g" -e "s/$/ ext3 defaults 0 0/" -e "b fin" -e ":pas-" -e "s/$/ ntfs defaults 0 0/" -e ":fin" && rm br_123456

            qui va te donner

            UUID=000000-0000-0000......... /media/sda3 ext3 defaults 0 0

            ensuite
            sudo gedit /etc/fstab
            et rajoute la ligne du dessus, puis
            sudo mkdir /media/sda3 ( s'il n'exiqste pas encore )
            sudo mount -a
            1. Ça ne marche toujours pas :

              $ ls -l /dev/disk/by-uuid/* | cut -d":" -f2 | cut -d" " --fields 2,4 | sed -e "s/\/dev\/disk\/by-uuid\//UUID=/" -e "s/..\/..\// \/media\//"
              UUID=07D0-0C04 /media/sda1
              UUID=b78497dc-0342-4f89-9ae4-e0170a719869 /media/sda5
              UUID=cb4a61c8-1771-4dab-9555-e991d840002e /media/sdb1
              UUID=ddcac84c-fbb2-4d27-af7b-931d39229905 /media/sda6
              UUID=ff3995d5-f5d3-4a64-9a43-9036af43405e /media/sdb5

              La partition que je cherche à monter est /dev/sdb3

              $ sudo fdisk /dev/sdb

              Disk /dev/sdb: 80.0 GB, 80026361856 bytes
              255 heads, 63 sectors/track, 9729 cylinders
              Units = cylinders of 16065 * 512 = 8225280 bytes
              Disk identifier: 0x0005f038

              Device Boot Start End Blocks Id System
              /dev/sdb1 1 1246 10008463+ 83 Linux
              /dev/sdb3 1247 8924 61673535 83 Linux
              /dev/sdb4 8925 9729 6466162+ 5 Extended
              /dev/sdb5 8925 9729 6466162 83 Linux

              Y aurait-il un moyen de remettre un UUID et cela suffirait-il à rendre lisible la partition ?

              N. B. pour ceux qui auraient suivi le fil, le passage en 7.04 a changé mon disque /dev/hdd en /dev/sdb ; ça pourra faire l'objet d'un autre post...
              1. je ne sais plus
                essaie avec les outils gparted et les dépendances déiverses après avoir enlever usb, dd externe ....
                essaie avec un disque live pour voir
                bonen chance
                1. Depuis la version 6.10, ubuntu utilise le UUID pour connecter les disques : http://doc.ubuntu-fr.org/uuid_et_label

                  J'ai donc essayé de mettre un UUID mais sans succès :
                  # tune2fs -U time /dev/sdb3
                  tune2fs 1.40.2 (12-Jul-2007)
                  tune2fs: Bad magic number in super-block while trying to open /dev/sdb3
                  Couldn't find valid filesystem superblock.

                  L'UUID de /dev/sdb3 n'apparaît toujours pas :
                  # blkid
                  /dev/sda1: UUID="07D0-0C04" TYPE="vfat" 
                  /dev/sda5: UUID="b78497dc-0342-4f89-9ae4-e0170a719869" SEC_TYPE="ext2" TYPE="ext3" 
                  /dev/sda6: TYPE="swap" UUID="ddcac84c-fbb2-4d27-af7b-931d39229905" 
                  /dev/sdb1: UUID="cb4a61c8-1771-4dab-9555-e991d840002e" SEC_TYPE="ext2" TYPE="ext3" 
                  /dev/sdb5: UUID="ff3995d5-f5d3-4a64-9a43-9036af43405e" SEC_TYPE="ext2" TYPE="ext3"

                  Je ne vois plus de solution. Je vais reformater.

                  Merci pour votre aide.