O que há de errado com o meu fstab?

0

tentando obter uma segunda unidade para montar na pasta / media / media:

/dev/sda /media/media ext4 auto,exec,rw,user,async 0 0

mas está falhando, fazendo com que eu pule.

Usando 12.04.

Aqui está o arquivo fstab completo:

# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    nodev,noexec,nosuid 0       0
# / was on /dev/sdb1 during installation
UUID=72e34f04-a84f-41b5-931c-8e1a08b0315e /               ext4    errors=remount-ro 0       1
# swap was on /dev/sdb5 during installation
UUID=d2a7845a-01cc-4a55-93a6-f86b694804de none            swap    sw              0       0
/dev/sda /media/media ext4 auto,exec,rw,user,async 0 0  

Aqui está o meu erro:

fsck.ext4: Bad magic number in super-block while trying to open /dev/sda
/dev/sda: 
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&gt;

mountall: fsck /media/media [708] terminated with status 8
mountall: Unrecoverable fsck error: /media/media
/dev/sdb1: clean, 197231/7331840 files, 1544679/29305088 blocks
Ignoring errors with /media/media at user request
mount: wrong fs type, bad option, bad superblock on /dev/sda,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

mountall: mount /media/media [808] terminated with status 32
mountall: Filesystem could not be mounted: /media/media
Skipping /media/media at user request
    
por Mild Fuzz 22.11.2012 / 19:47

1 resposta

2

Acho que o problema pode ser que você está tentando inicializar um dispositivo em vez de uma unidade. Essas instruções podem ajudar.

Tente executar sudo blkid . Isso fornecerá uma lista das unidades e seus identificadores exclusivos (UUID). A saída será algo como ... (provavelmente haverá mais)

/dev/sdb3: LABEL="extras" UUID="94b47b57-1f66-4e1f-8280-4b016c6c055e" TYPE="ext4" 
/dev/sdb5: LABEL="backup" UUID="4b55b1c7-7219-48b4-a82f-b4affb4896df" TYPE="ext4"

encontre o UUID para o drive / partição que você está tentando inicializar automaticamente e use este UUID em seu arquivo / etc / fstab. Também tente montar com opções padrão. A linha seria algo como .....

UUID=<UUID> /media/media    <TYPE>    defaults      2 2

Substitua <UUID> e <TYPE> pelas opções listadas de blkid.

IMPORTANTE : certifique-se de que / media / media exista

Boa sorte

    
por captain_G 22.11.2012 / 21:03