well.... this is what the output of dmesg is. Is my USB drive dead?<div><br></div><div><div>bmike1@PresarioLapTop1:~/Desktop$ ./Backup\ bmike1</div><div>building file list ... done</div><div>rsync: mkdir "/mnt/backup/bmike1" failed: Read-only file system (30)</div>
<div>rsync error: error in file IO (code 11) at main.c(605) [Receiver=3.0.9]</div><div>rsync: connection unexpectedly closed (9 bytes received so far) [sender]</div><div>rsync error: error in rsync protocol data stream (code 12) at io.c(605) [sender=3.0.9]</div>
<div>bmike1@PresarioLapTop1:~/Desktop$ dmesg | tail -n 30</div><div>[74384.693378] type=1701 audit(1373570392.790:842): auid=4294967295 uid=1000 gid=1000 ses=4294967295 pid=7116 comm="chromium-browse" reason="seccomp" sig=0 syscall=33 compat=0 ip=0xb63eb424 code=0x50000</div>
<div>[74384.757274] type=1701 audit(1373570392.854:843): auid=4294967295 uid=1000 gid=1000 ses=4294967295 pid=7116 comm="chromium-browse" reason="seccomp" sig=0 syscall=5 compat=0 ip=0xb63eb424 code=0x50000</div>
<div>[74506.322125] audit_printk_skb: 3 callbacks suppressed</div><div>[74506.322138] type=1701 audit(1373570514.438:845): auid=4294967295 uid=1000 gid=1000 ses=4294967295 pid=7127 comm="chromium-browse" reason="seccomp" sig=0 syscall=195 compat=0 ip=0xb63eb424 code=0x50000</div>
<div>[74506.504999] type=1701 audit(1373570514.622:846): auid=4294967295 uid=1000 gid=1000 ses=4294967295 pid=7127 comm="chromium-browse" reason="seccomp" sig=0 syscall=5 compat=0 ip=0xb63eb424 code=0x50000</div>
<div>[74506.551324] type=1701 audit(1373570514.670:847): auid=4294967295 uid=1000 gid=1000 ses=4294967295 pid=7127 comm="chromium-browse" reason="seccomp" sig=0 syscall=5 compat=0 ip=0xb63eb424 code=0x50000</div>
<div>[74506.607251] type=1701 audit(1373570514.726:848): auid=4294967295 uid=1000 gid=1000 ses=4294967295 pid=7127 comm="chromium-browse" reason="seccomp" sig=0 syscall=5 compat=0 ip=0xb63eb424 code=0x50000</div>
<div>[74506.685245] type=1701 audit(1373570514.802:849): auid=4294967295 uid=1000 gid=1000 ses=4294967295 pid=7127 comm="chromium-browse" reason="seccomp" sig=0 syscall=5 compat=0 ip=0xb63eb424 code=0x50000</div>
<div>[74507.230515] type=1701 audit(1373570515.350:850): auid=4294967295 uid=1000 gid=1000 ses=4294967295 pid=7127 comm="chromium-browse" reason="seccomp" sig=0 syscall=5 compat=0 ip=0xb63eb424 code=0x50000</div>
<div>[74700.145045] type=1701 audit(1373570708.298:851): auid=4294967295 uid=1000 gid=1000 ses=4294967295 pid=7139 comm="chromium-browse" reason="seccomp" sig=0 syscall=195 compat=0 ip=0xb63eb424 code=0x50000</div>
<div>[74832.010270] type=1701 audit(1373570840.186:852): auid=4294967295 uid=1000 gid=1000 ses=4294967295 pid=7153 comm="chromium-browse" reason="seccomp" sig=0 syscall=5 compat=0 ip=0xb63eb424 code=0x50000</div>
<div>[74832.010299] type=1701 audit(1373570840.186:853): auid=4294967295 uid=1000 gid=1000 ses=4294967295 pid=7153 comm="chromium-browse" reason="seccomp" sig=0 syscall=5 compat=0 ip=0xb63eb424 code=0x50000</div>
<div>[74832.010316] type=1701 audit(1373570840.186:854): auid=4294967295 uid=1000 gid=1000 ses=4294967295 pid=7153 comm="chromium-browse" reason="seccomp" sig=0 syscall=5 compat=0 ip=0xb63eb424 code=0x50000</div>
<div>[74832.043030] type=1701 audit(1373570840.218:855): auid=4294967295 uid=1000 gid=1000 ses=4294967295 pid=7151 comm="chromium-browse" reason="seccomp" sig=0 syscall=195 compat=0 ip=0xb63eb424 code=0x50000</div>
<div>[74832.043056] type=1701 audit(1373570840.218:856): auid=4294967295 uid=1000 gid=1000 ses=4294967295 pid=7151 comm="chromium-browse" reason="seccomp" sig=0 syscall=195 compat=0 ip=0xb63eb424 code=0x50000</div>
<div>[74832.043073] type=1701 audit(1373570840.218:857): auid=4294967295 uid=1000 gid=1000 ses=4294967295 pid=7151 comm="chromium-browse" reason="seccomp" sig=0 syscall=195 compat=0 ip=0xb63eb424 code=0x50000</div>
<div>[74832.043089] type=1701 audit(1373570840.218:858): auid=4294967295 uid=1000 gid=1000 ses=4294967295 pid=7151 comm="chromium-browse" reason="seccomp" sig=0 syscall=195 compat=0 ip=0xb63eb424 code=0x50000</div>
<div>[74832.043105] type=1701 audit(1373570840.218:859): auid=4294967295 uid=1000 gid=1000 ses=4294967295 pid=7151 comm="chromium-browse" reason="seccomp" sig=0 syscall=195 compat=0 ip=0xb63eb424 code=0x50000</div>
<div>[74832.050368] type=1701 audit(1373570840.226:860): auid=4294967295 uid=1000 gid=1000 ses=4294967295 pid=7151 comm="chromium-browse" reason="seccomp" sig=0 syscall=33 compat=0 ip=0xb63eb424 code=0x50000</div>
<div>[77452.893137] audit_printk_skb: 6 callbacks suppressed</div><div>[77452.893149] type=1701 audit(1373573461.534:863): auid=4294967295 uid=1000 gid=1000 ses=4294967295 pid=7416 comm="chromium-browse" reason="seccomp" sig=0 syscall=5 compat=0 ip=0xb63eb424 code=0x50000</div>
<div>[77452.893172] type=1701 audit(1373573461.534:864): auid=4294967295 uid=1000 gid=1000 ses=4294967295 pid=7416 comm="chromium-browse" reason="seccomp" sig=0 syscall=5 compat=0 ip=0xb63eb424 code=0x50000</div>
<div>[77452.893189] type=1701 audit(1373573461.534:865): auid=4294967295 uid=1000 gid=1000 ses=4294967295 pid=7416 comm="chromium-browse" reason="seccomp" sig=0 syscall=5 compat=0 ip=0xb63eb424 code=0x50000</div>
<div>[77452.951771] type=1701 audit(1373573461.590:866): auid=4294967295 uid=1000 gid=1000 ses=4294967295 pid=7412 comm="chromium-browse" reason="seccomp" sig=0 syscall=195 compat=0 ip=0xb63eb424 code=0x50000</div>
<div>[77452.951797] type=1701 audit(1373573461.590:867): auid=4294967295 uid=1000 gid=1000 ses=4294967295 pid=7412 comm="chromium-browse" reason="seccomp" sig=0 syscall=195 compat=0 ip=0xb63eb424 code=0x50000</div>
<div>[77452.951814] type=1701 audit(1373573461.590:868): auid=4294967295 uid=1000 gid=1000 ses=4294967295 pid=7412 comm="chromium-browse" reason="seccomp" sig=0 syscall=195 compat=0 ip=0xb63eb424 code=0x50000</div>
<div>[77452.951830] type=1701 audit(1373573461.590:869): auid=4294967295 uid=1000 gid=1000 ses=4294967295 pid=7412 comm="chromium-browse" reason="seccomp" sig=0 syscall=195 compat=0 ip=0xb63eb424 code=0x50000</div>
<div>[77452.951846] type=1701 audit(1373573461.590:870): auid=4294967295 uid=1000 gid=1000 ses=4294967295 pid=7412 comm="chromium-browse" reason="seccomp" sig=0 syscall=195 compat=0 ip=0xb63eb424 code=0x50000</div>
<div>[77452.959698] type=1701 audit(1373573461.598:871): auid=4294967295 uid=1000 gid=1000 ses=4294967295 pid=7412 comm="chromium-browse" reason="seccomp" sig=0 syscall=33 compat=0 ip=0xb63eb424 code=0x50000</div>
<div>[77453.098346] type=1701 audit(1373573461.738:872): auid=4294967295 uid=1000 gid=1000 ses=4294967295 pid=7412 comm="chromium-browse" reason="seccomp" sig=0 syscall=5 compat=0 ip=0xb63eb424 code=0x50000</div>
<div>bmike1@PresarioLapTop1:~/Desktop$ </div><div><br></div><div>:-)~MIKE~(-:</div>
<br><br><div class="gmail_quote">On Thu, Jul 11, 2013 at 1:06 PM, Matt Graham <span dir="ltr"><<a href="mailto:danceswithcrows@usa.net" target="_blank">danceswithcrows@usa.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
From: Michael Havens<br>
<div class="im">> bmike1@PresarioLapTop1:~/Desktop$ ls -la /mnt/backup<br>
> ls: reading directory /mnt/backup: Input/output error<br>
<br>
</div>This is not a good sign. ls should never return "I/O error"; that usually<br>
means either filesystem problems or hardware problems. After you see<br>
something like that, you should always do "dmesg | tail -n 30" and see if<br>
anything in the output from dmesg has anything like "sdX: unrecoverable error<br>
reading sector 131072".<br>
<div class="im"><br>
> cp: cannot create regular file `/mnt/backup/Backup bmike1':<br>
> Permission denied<br>
</div><div class="im">> I think this means I need to change the ownership of /mnt/backup<br>
<br>
</div>Not really. As root, you need to create a dir in /mnt/backup/ which is owned<br>
by your user.<br>
<div class="im"><br>
> bmike1@PresarioLapTop1:~/Desktop$ ls -l /mnt<br>
</div><div class="im">> drwxr-xr-x 4 root root 4096 Jul 5 19:06 backup<br>
> drwxr-xr-x 4 root root 4096 Jul 5 19:06 sdc<br>
<br>
</div>When you mount a filesystem on a dir, the mountpoint may or may not change<br>
ownership. Take a look:<br>
<br>
workstation:~$ ls -l /mnt<br>
drwxr-xr-x 2 root root 4096 May 9 15:37 bigred<br>
workstation:~$ mount /mnt/bigred<br>
workstation:~$ ls -l /mnt<br>
drwxrwxrwx 8 mhgraham mhgraham 4096 Dec 31 1969 bigred<br>
<br>
...bigred is a FAT32 filesystem on a USB device. FAT32 doesn't have<br>
permissions, so they're faked at mount time with a umask of 000 and ownership<br>
of me. If this were an ext3 device, the / of the device would be owned by<br>
root:root by default.<br>
<div class="im"><br>
> bmike1@PresarioLapTop1:~/Desktop$ sudo chown bmike1 /mnt/backup<br>
> chown: changing ownership of `/mnt/backup': Input/output error<br>
<br>
</div>Are you sure this disk is OK?<br>
<div class="im"><br>
> rsync: mkdir "/mnt/backup/bmike1" failed: Read-only file system (30)<br>
<br>
</div>Check the output of dmesg and see what's going on.<br>
<div class="im"><br>
> drwxr-xr-x 4 bmike1 root 4096 Jul 5 19:06 backup<br>
</div><div class="im">> Is this looking as it should? What does the 4th place mean (the place that<br>
> says 'root').<br>
<br>
</div>ls -l output is: 1 char for filetype, 9 chars for permissions<br>
(user,group,other), link count (the number of things that are in a directory,<br>
or 1 for non-directories that don't have hard links), user who owns the file,<br>
group who owns the file, size of the file, date, filename.<br>
<div class="HOEnZb"><div class="h5"><br>
--<br>
Matt G / Dances With Crows<br>
The Crow202 Blog: <a href="http://crow202.org/wordpress/" target="_blank">http://crow202.org/wordpress/</a><br>
There is no Darkness in Eternity/But only Light too dim for us to see<br>
<br>
---------------------------------------------------<br>
PLUG-discuss mailing list - <a href="mailto:PLUG-discuss@lists.phxlinux.org">PLUG-discuss@lists.phxlinux.org</a><br>
To subscribe, unsubscribe, or to change your mail settings:<br>
<a href="http://lists.phxlinux.org/mailman/listinfo/plug-discuss" target="_blank">http://lists.phxlinux.org/mailman/listinfo/plug-discuss</a><br>
</div></div></blockquote></div><br></div>