well.... this is what the output of dmesg is. Is my USB drive dead?

bmike1@PresarioLapTop1:~/Desktop$ ./Backup\ bmike1
building file list ... done
rsync: mkdir "/mnt/backup/bmike1" failed: Read-only file system (30)
rsync error: error in file IO (code 11) at main.c(605) [Receiver=3.0.9]
rsync: connection unexpectedly closed (9 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(605) [sender=3.0.9]
bmike1@PresarioLapTop1:~/Desktop$ dmesg | tail -n 30
[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
[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
[74506.322125] audit_printk_skb: 3 callbacks suppressed
[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
[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
[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
[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
[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
[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
[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
[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
[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
[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
[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
[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
[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
[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
[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
[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
[77452.893137] audit_printk_skb: 6 callbacks suppressed
[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
[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
[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
[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
[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
[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
[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
[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
[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
[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
bmike1@PresarioLapTop1:~/Desktop$ 

:-)~MIKE~(-:


On Thu, Jul 11, 2013 at 1:06 PM, Matt Graham <danceswithcrows@usa.net> wrote:
From: Michael Havens
> bmike1@PresarioLapTop1:~/Desktop$ ls -la /mnt/backup
> ls: reading directory /mnt/backup: Input/output error

This is not a good sign.  ls should never return "I/O error"; that usually
means either filesystem problems or hardware problems.  After you see
something like that, you should always do "dmesg | tail -n 30" and see if
anything in the output from dmesg has anything like "sdX: unrecoverable error
reading sector 131072".

> cp: cannot create regular file `/mnt/backup/Backup bmike1':
> Permission denied
> I think this means I need to change the ownership of /mnt/backup

Not really.  As root, you need to create a dir in /mnt/backup/ which is owned
by your user.

> bmike1@PresarioLapTop1:~/Desktop$ ls -l /mnt
> drwxr-xr-x 4 root root 4096 Jul  5 19:06 backup
> drwxr-xr-x 4 root root 4096 Jul  5 19:06 sdc

When you mount a filesystem on a dir, the mountpoint may or may not change
ownership.  Take a look:

workstation:~$ ls -l /mnt
drwxr-xr-x 2 root root 4096 May  9 15:37 bigred
workstation:~$ mount /mnt/bigred
workstation:~$ ls -l /mnt
drwxrwxrwx 8 mhgraham mhgraham 4096 Dec 31  1969 bigred

...bigred is a FAT32 filesystem on a USB device.  FAT32 doesn't have
permissions, so they're faked at mount time with a umask of 000 and ownership
of me.  If this were an ext3 device, the / of the device would be owned by
root:root by default.

> bmike1@PresarioLapTop1:~/Desktop$ sudo chown bmike1 /mnt/backup
> chown: changing ownership of `/mnt/backup': Input/output error

Are you sure this disk is OK?

> rsync: mkdir "/mnt/backup/bmike1" failed: Read-only file system (30)

Check the output of dmesg and see what's going on.

> drwxr-xr-x 4 bmike1 root 4096 Jul  5 19:06 backup
> Is this looking as it should? What does the 4th place mean (the place that
> says 'root').

ls -l output is:  1 char for filetype, 9 chars for permissions
(user,group,other), link count (the number of things that are in a directory,
or 1 for non-directories that don't have hard links), user who owns the file,
group who owns the file, size of the file, date, filename.

--
Matt G / Dances With Crows
The Crow202 Blog:  http://crow202.org/wordpress/
There is no Darkness in Eternity/But only Light too dim for us to see

---------------------------------------------------
PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org
To subscribe, unsubscribe, or to change your mail settings:
http://lists.phxlinux.org/mailman/listinfo/plug-discuss