rodpas
(usa Debian)
Enviado em 18/10/2013 - 10:00h
Bom dia Galera do VOL,
O meu problema é o seguinte tenho um script que segue;
############################################################
#!/bin/bash
# VARIAVEIS
ORIGEM="/home /backup /etc /opt/firebird /var/www"
DESTINO="/mnt/"
RSYNC="/usr/bin/rsync -var --delete"
SYNC="/bin/sync"
MOUNT="/bin/mount -v"
UMOUNT="/bin/umount -v"
# CONDICOES
$MOUNT -t ext3 -L BACKUP $DESTINO
if [ -f /mnt/.lock ] ; then
echo "Media pronta para backup"
$RSYNC $ORIGEM $DESTINO
$SYNC
$UMOUNT $DESTINO
else
echo "Sem media para backup"
fi
##############################################################
No meu antigo HD está funcionando perfeito, o problema é que estou substituindo o HD de backup pelo tempo de uso por novo. Mas quando fiz a troca do HD quando o script é executado me retorna mensagem;
mount: tal partição não foi encontrada
Sem media para backup
Unica diferença que notei entrei os dois discos foi;
##############################################################
DISCO NOVO
Disk /dev/sdc: 1000.2 GB, 1000204885504 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cilindros of 16065 * 512 = 8225280 bytes
Disk identifier: 0xe204b3bc
Dispositivo Boot Start End Blocks Id System
/dev/sdc1 * 1 121602 976759808 7 HPFS ou NTFS
###############################################################
DISCO ANTIGO FUNCIONANDO
Disk /dev/sdc: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cilindros of 16065 * 512 = 8225280 bytes
Disk identifier: 0xcbce2081
Dispositivo Boot Start End Blocks Id System
/dev/sdc1 1 121601 976760001 83 Linux
###############################################################
Obrigado a todos!!!
Abraço!
Att,