On 05/07/2018 07:01 AM, Thomas Schmitt wrote:
Hi,

Richard Owlett wrote:
richard@debian-jan13:~$ stat / | fgrep Device
Device: 80eh/2062d      Inode: 2           Links: 22
richard@debian-jan13:~$ stat /media | fgrep Device
Device: 80eh/2062d      Inode: 131073      Links: 5

"/media" was not the directory to examine.
You need to examine the directory which you gave as second argument to cp.
In your initial post of this thread the cp command is quoted as

   cp -ax /  "/media/richard/MISC
   backups/dev_sda14/"

(Dunno whether the line break in that mail is significant.)
[SNIP]

The line break was an email artifact and have changed partition label to prevent future confusion.

This is the output of script command:



Script started, file is typescript

#

#

rm -rv /media/root/MISC-backups/

#

#

ls /media/richard/MISC-backups/dev_sda14/

#

#

stat / | fgrep Device

#

#

stat /media | fgrep Device

#

#

stat /media/richard/MISC-backups/dev_sda14/ | fgrep Device

#

#

cp -ax /  /media/richard/MISC-backups/dev_sda14/

#

#

ls /media/richard/MISC-backups/dev_sda14/

#

#

ls /media/richard/MISC-backups/dev_sda14/*

#

#

ls /media/richard/MISC-backups/dev_sda14/home/richard

#

#

ls -aRil /media/richard/MISC-backups/dev_sda14/

#

#

exit

root@debian-jan13:/home/richard# #

root@debian-jan13:/home/richard# #

root@debian-jan13:/home/richard# rm -rv /media/root/MISC-backups/

rm: cannot remove '/media/root/MISC-backups/': No such file or directory

root@debian-jan13:/home/richard# #

root@debian-jan13:/home/richard# #

root@debian-jan13:/home/richard# ls /media/richard/MISC-backups/dev_sda14/

home  lost+found

root@debian-jan13:/home/richard# #

root@debian-jan13:/home/richard# #

root@debian-jan13:/home/richard# stat / | fgrep Device

Device: 80eh/2062d      Inode: 2           Links: 22

root@debian-jan13:/home/richard# #

root@debian-jan13:/home/richard# #

root@debian-jan13:/home/richard# stat /media | fgrep Device

Device: 80eh/2062d      Inode: 131073      Links: 5

root@debian-jan13:/home/richard# #

root@debian-jan13:/home/richard# #

root@debian-jan13:/home/richard# stat /media/richard/MISC-backups/dev_sda14/ | 
fgrep Device

Device: 819h/2073d      Inode: 15728641    Links: 4

root@debian-jan13:/home/richard# #

root@debian-jan13:/home/richard# #

root@debian-jan13:/home/richard# cp -ax /  
/media/richard/MISC-backups/dev_sda14/



cp: cannot stat 
'/media/richard/MISC-backups/dev_sda14/home/richard/.local/share/Trash/expunged/1449727740/grub2
 problem-2018-02-13/grub2 problem-2018-02-13/...
... ...
... grub2 problem-2018-02-13': File name too long

^C

root@debian-jan13:/home/richard#

root@debian-jan13:/home/richard# #

root@debian-jan13:/home/richard# #

root@debian-jan13:/home/richard# ls /media/richard/MISC-backups/dev_sda14/

home  lost+found

root@debian-jan13:/home/richard# #

root@debian-jan13:/home/richard# #

root@debian-jan13:/home/richard# ls /media/richard/MISC-backups/dev_sda14/*

/media/richard/MISC-backups/dev_sda14/home:

richard



/media/richard/MISC-backups/dev_sda14/lost+found:

root@debian-jan13:/home/richard# #

root@debian-jan13:/home/richard# #

root@debian-jan13:/home/richard# ls 
/media/richard/MISC-backups/dev_sda14/home/richard

Desktop  Documents  Downloads  Music  Pictures  Public  Templates  Videos

root@debian-jan13:/home/richard# #

root@debian-jan13:/home/richard# #

I also have the output of
  ls -aRil /media/richard/MISC-backups/dev_sda14/
available. IIRC someone had requested I run a similar command.
TIA


Reply via email to