Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Who or what was responsible?

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
uthappam
Posts: 242
Joined: 2010-01-01 17:14
Location: Delhi, India

Who or what was responsible?

#1 Post by uthappam »

Since helpful people on this forum wrote this for me nearly four years ago, I have been using it roughly once each month:

Code: Select all

rsync -uav /home/albert "/media/albert/Expansion Drive"
However, when some days back I used it after moving to the recently released Debian 10.1, it ended with a "no space left" message. Investigation showed that, beside the existing "albert" tree, an "albert1" tree had been created -- apparently with the same structure and content. Also, the external USB hard drive was no longer recognised by the system.

Was all this caused by a change in Debian -- or in rsync -- or by a mistake I made? The original discussion can be seen at
http://forums.debian.net/viewtopic.php?f=10&t=125672

tynman
Posts: 132
Joined: 2016-05-03 19:48
Location: British Columbia, Canada
Been thanked: 2 times

Re: Who or what was responsible?

#2 Post by tynman »

The rogue directory, albert1, may be unrelated to the "no space" error. Most likely, the main problem is the "the external USB hard drive was no longer recognised by the system".

When the external hard drive isn't mounted to "/media/albert/Expansion Drive", the rsync command will write to some other hard drive - probably to your root drive, although that depends on how your system is set up.

Do you know how the external hard drive was getting mounted before the upgrade to Debian 10? (It might also be interesting and/or helpful to know how you upgraded to Debian 10.)

uthappam
Posts: 242
Joined: 2010-01-01 17:14
Location: Delhi, India

Re: Who or what was responsible?

#3 Post by uthappam »

The rsync command was issued at the command line after the external drive had become visible in Thunar. It became unrecognisable after it had stopped with an error message. Debian 10.1 was installed from a DVD.

User avatar
golinux
Posts: 1579
Joined: 2010-12-09 00:56
Location: not a 'buntard!
Been thanked: 1 time

Re: Who or what was responsible?

#4 Post by golinux »

I always do a "dry run" before backing up with grsync. More than once, I had plugged in the drive but forgotten to mount it so in the dry run, new folders were created to receive the data. After mounting the drive, everything worked normally.
May the FORK be with you!

uthappam
Posts: 242
Joined: 2010-01-01 17:14
Location: Delhi, India

Re: Who or what was responsible?

#5 Post by uthappam »

Thank you. Not the problem here: I learnt very soon that the drive needed to be mounted.

User avatar
golinux
Posts: 1579
Joined: 2010-12-09 00:56
Location: not a 'buntard!
Been thanked: 1 time

Re: Who or what was responsible?

#6 Post by golinux »

uthappam wrote:Thank you. Not the problem here: I learnt very soon that the drive needed to be mounted.
Me too but sometimes I forget. :D
May the FORK be with you!

User avatar
wizard10000
Global Moderator
Global Moderator
Posts: 589
Joined: 2019-04-16 23:15
Location: southeastern us
Has thanked: 78 times
Been thanked: 89 times

Re: Who or what was responsible?

#7 Post by wizard10000 »

I use "if mountpoint" to insure backup drive is actually mounted before running my backup job. Looks like this -

Code: Select all

#!/bin/bash

if mountpoint -q /media/internal
  then
     # backup commands go here
  fi
exit 0
Hope this helps -
we see things not as they are, but as we are.
-- anais nin

uthappam
Posts: 242
Joined: 2010-01-01 17:14
Location: Delhi, India

Re: Who or what was responsible?

#8 Post by uthappam »

Thank you, Wizard. It may be best to take this precaution. At this time the small drive is with the young chap who handles hardware matters for me. He said he knows someone who may be able to get into the casing and get the thing going again.

Post Reply