[mntent]: a linha 16 em / etc / fstab é ruim

0

Eu estou tentando mount -a meu disco rígido. Mas acabei conseguindo isso responder

root@server:~# mount -a
[mntent]: line 16 in /etc/fstab is bad
[mntent]: line 18 in /etc/fstab is bad
[mntent]: line 20 in /etc/fstab is bad
[mntent]: line 22 in /etc/fstab is bad

Abaixo estão minhas informações de blkid e fstab .

Posso saber como devo corrigir isso?

root@server:~# blkid
/dev/sda1: UUID="2c5e3f03-9c84-45ce-8b66-250b2ee16f18" TYPE="ext4" 
/dev/sda3: UUID="4fbcae12-a919-498e-8eb5-43cd60ef939d" TYPE="ext4" 
/dev/sdc1: UUID="ef042524-6d80-430f-980a-fb658362f8fa" TYPE="ext4" 
/dev/sdb1: UUID="2bc1aa0c-ccb1-4f12-89c5-0bfa56f43ddf" TYPE="ext4" 
/dev/sdd1: UUID="b6eb5a17-f4b8-45ba-bdfb-34c6f15198b7" TYPE="ext4" 
/dev/sde1: LABEL="GMS Backup" UUID="d33007ad-90e0-42d5-9c51-0e1999c18f00" TYPE="ext4" 


# /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/sda1 during installation
UUID=2c5e3f03-9c84-45ce-8b66-250b2ee16f18 /               ext4    errors=remoun$
# /home was on /dev/sda3 during installation
UUID=4fbcae12-a919-498e-8eb5-43cd60ef939d /home           ext4    defaults     $
# swap was on /dev/sda5 during installation
UUID=516752cc-4617-4016-a8cb-93979d289241 none            swap    sw           $
# /media was on /dev/sdb1 during installation
UUID=2bc1aa0c-ccb1-4f12-89c5-0bfa56f43ddf /media           ext4    defaults    $
# /media was on /dev/sdd1 during installation
UUID=b6eb5a17-f4b8-45ba-bdfb-34c6f15198b7 /media           ext4    defaults    $
# /media was on /dev/sdc1 during installation
UUID=ef042524-6d80-430f-980a-fb658362f8fa /media           ext4    defaults    $
# /media was on /dev/sde1 during installation
UUID=d33007ad-90e0-42d5-9c51-0e1999c18f00 /media           ext4    defaults    $

Aprecie muito antecipadamente.

    
por user1343112 17.03.2015 / 12:45

2 respostas

1

AFAIK você não pode ter vários dispositivos de bloco diferentes (conforme indicado pelos diferentes UUIDs) montados no mesmo ponto de montagem do sistema de arquivos /media (pelo menos não sem algum tipo de sistema de arquivos de sobreposição).

Você precisaria criar pontos de montagem separados, como /media/disk1 , /media/disk2 e assim por diante, e então modificar seu arquivo fstab para algo como

# /media was on /dev/sdb1 during installation
UUID=2bc1aa0c-ccb1-4f12-89c5-0bfa56f43ddf /media/disk1           ext4    defaults
# /media was on /dev/sdd1 during installation
UUID=b6eb5a17-f4b8-45ba-bdfb-34c6f15198b7 /media/disk2           ext4    defaults
# /media was on /dev/sdc1 during installation
UUID=ef042524-6d80-430f-980a-fb658362f8fa /media/disk3           ext4    defaults
# /media was on /dev/sde1 during installation
UUID=d33007ad-90e0-42d5-9c51-0e1999c18f00 /media/disk4           ext4    defaults
    
por steeldriver 17.03.2015 / 17:42
0

Edite /etc/fstab e exclua todos os $ no final das linhas.

    
por Carl H 17.03.2015 / 12:49