LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 02-04-2011, 08:54 AM   #1
davide123
Member
 
Registered: Jan 2010
Location: tampa bay fl
Distribution: fedora redhat 9 10 11 12 13 &14 x86_64 & i686; Peppermint, MintOne; RHEL 4 5 6, Ubuntu, SliTaz etc,
Posts: 102

Rep: Reputation: 16
Keep getting "?" question marks in permissions spot when doing ls -al on a New USB HD


I had this error before, I ran e2fsck several times, then gave up and bought a brand new USB HD....
Now I am getting the same errors. I am not sure when exactly it is happening, however I have a DUMP Backup running late at night, and when I come in the morning, I get I/O error in the log for it
Code:
 DUMP: Date of this level 0 dump: Thu Feb  3 22:00:01 2011
  DUMP: Dumping /dev/sda5 (/usr) to /coldback/weekly/usr.2011.02.03
  DUMP: Label: /usr1
  DUMP: Writing 10 Kilobyte records
  DUMP: mapping (Pass I) [regular files]
  DUMP: mapping (Pass II) [directories]
  DUMP: estimated 14397298 blocks.
  DUMP: Cannot open output "/coldback/weekly/usr.2011.02.03": Input/output error
  DUMP: Do you want to retry the open? - forced abort
  DUMP: The ENTIRE dump is aborted.

Code:
 ls -al
total 32
drwxr-xr-x   5 root root  4096 Nov 17 14:28 .
drwxr-xr-x  26 root root  4096 Nov 17 13:56 ..
drwx------   2 root root 16384 Nov 17 14:19 lost+found
?---------   ? ?    ?        ?            ? metal
drwx------   2 root root  4096 Jan 22 22:20 weekly
It happens to both the dirs in that drive. I'm not sure how I would find out if its the dump creating the error, or what is going on here...could it be a bad usb port? How would I find exactly when the OS reads the permissions as "?"'s


PS--- Below is the script I am using for Dump Backups....

Code:
#!/bin/csh
#
# Script to perform dump of directories to USB external drive.
#
#
# Set variables to dump
setenv USB /coldback/weekly
setenv TODAY "`date '+%Y.%m.%d'`"
setenv LOGFILE /var/log/backups/dump_usb_backup.$TODAY
setenv FILESYSTEM1 /usr
setenv FILESYSTEM2 /var
setenv FILESYSTEM3 /home
setenv FILESYSTEM4 /
setenv FILESYSTEM5 /boot
#
#
# Create today's LOGFILE
touch $LOGFILE
#
# Dump filesystems to tape
/sbin/dump -0 -f $USB/usr.$TODAY -q $FILESYSTEM1 >>& $LOGFILE
/sbin/dump -0 -f $USB/var.$TODAY -q $FILESYSTEM2 >>& $LOGFILE
/sbin/dump -0 -f $USB/home.$TODAY -q $FILESYSTEM3 >>& $LOGFILE
/sbin/dump -0 -f $USB/root.$TODAY -q $FILESYSTEM4 >>& $LOGFILE
/sbin/dump -0 -f $USB/boot.$TODAY -q $FILESYSTEM5 >>& $LOGFILE
#
#
# Check for errors
set ERR="`grep -i 'DUMP IS DONE' ${LOGFILE}|wc -l`"
#
#
if ( $ERR < 5 ) then
        mail -s "USB Backup failed on `hostname`" root </dev/null
else
        mail -s "USB Backup succeeded on `hostname`" root </dev/null
endif
Here's cat /var/log/messages for the time of the Cron Job Backup

Code:
Feb  3 22:00:11 stpgeosvr kernel: Device sdb not ready.
Feb  3 22:00:11 stpgeosvr kernel: end_request: I/O error, dev sdb, sector 728760391
Feb  3 22:00:11 stpgeosvr kernel: EXT3-fs error (device sdb1): read_inode_bitmap: Cannot read inode bitmap - block_group = 2780, inode_bitmap = 91095041
Feb  3 22:00:11 stpgeosvr kernel: Aborting journal on device sdb1.
Feb  3 22:00:15 stpgeosvr kernel: EXT3-fs error (device sdb1) in ext3_new_inode: IO failure
Feb  3 22:00:15 stpgeosvr kernel: EXT3-fs error (device sdb1) in ext3_create: IO failure
Feb  3 22:00:19 stpgeosvr kernel: ext3_abort called.
Feb  3 22:00:19 stpgeosvr kernel: EXT3-fs error (device sdb1): ext3_journal_start_sb: Detected aborted journal
Feb  3 22:00:19 stpgeosvr kernel: Remounting filesystem read-only
Again this is the second USB Drive with this issue & this Drive is straight out the box. I am going to run e2fsck and the DUMP again, but I am pretty sure I will get these errors again

Last edited by davide123; 02-04-2011 at 09:03 AM.
 
Old 02-04-2011, 09:03 AM   #2
GNULinuxGuy
LQ Newbie
 
Registered: Jan 2011
Location: Southeastern US
Distribution: Arch, Debian, Linux Mint
Posts: 11

Rep: Reputation: 1
Your best bet is to check dmesg output for clues. It definitely looks like it could be a hardware issue (or possibly a driver issue, but it appears somehow corruption is getting written to disk).
 
Old 02-04-2011, 09:18 AM   #3
davide123
Member
 
Registered: Jan 2010
Location: tampa bay fl
Distribution: fedora redhat 9 10 11 12 13 &14 x86_64 & i686; Peppermint, MintOne; RHEL 4 5 6, Ubuntu, SliTaz etc,
Posts: 102

Original Poster
Rep: Reputation: 16
Just ran e2fsck....

Code:
 e2fsck -pv /dev/sdb
/dev/sdb: Superblock has a bad ext3 journal (inode 8).
CLEARED.
*** ext3 journal has been deleted - filesystem is now ext2 only ***

/dev/sdb: Resize inode not valid.

/dev/sdb: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.
        (i.e., without -a or -p options)
[root@stpgeosvr ~]# e2fsck -pv /dev/sdb1
/dev/sdb1: recovering journal
/dev/sdb1 contains a file system with errors, check forced.

      38 inodes used (0%)
       5 non-contiguous inodes (13.2%)
         # of inodes with ind/dind/tind blocks: 25/25/5
27587271 blocks used (22%)
       0 bad blocks
      11 large files

      25 regular files
       4 directories
       0 character device files
       0 block device files
       0 fifos
       0 links
       0 symbolic links (0 fast symbolic links)
       0 sockets
--------
      29 files
I am running my Dump now, I will post happens....

PS Dmesg showed nothing of interest that wasn't in /var/log/messages...
 
Old 02-04-2011, 09:52 AM   #4
davide123
Member
 
Registered: Jan 2010
Location: tampa bay fl
Distribution: fedora redhat 9 10 11 12 13 &14 x86_64 & i686; Peppermint, MintOne; RHEL 4 5 6, Ubuntu, SliTaz etc,
Posts: 102

Original Poster
Rep: Reputation: 16
DUMP Log.....

Code:
cat /var/log/backups/dump_usb_backup.2011.02.04
  DUMP: Date of this level 0 dump: Fri Feb  4 10:17:11 2011
  DUMP: Dumping /dev/sda5 (/usr) to /coldback/weekly/usr.2011.02.04
  DUMP: Label: /usr1
  DUMP: Writing 10 Kilobyte records
  DUMP: mapping (Pass I) [regular files]
  DUMP: mapping (Pass II) [directories]
  DUMP: estimated 14397298 blocks.
  DUMP: Cannot open output "/coldback/weekly/usr.2011.02.04": No such file or directory
  DUMP: Do you want to retry the open? - forced abort
  DUMP: The ENTIRE dump is aborted.
  DUMP: Date of this level 0 dump: Fri Feb  4 10:17:21 2011
  DUMP: Dumping /dev/sda6 (/var) to /coldback/weekly/var.2011.02.04
  DUMP: Label: /var1
  DUMP: Writing 10 Kilobyte records
  DUMP: mapping (Pass I) [regular files]
  DUMP: mapping (Pass II) [directories]
  DUMP: estimated 226258 blocks.
  DUMP: Cannot open output "/coldback/weekly/var.2011.02.04": No such file or directory
  DUMP: Do you want to retry the open? - forced abort
  DUMP: The ENTIRE dump is aborted.
  DUMP: Date of this level 0 dump: Fri Feb  4 10:17:25 2011
  DUMP: Dumping /dev/sda7 (/home) to /coldback/weekly/home.2011.02.04
  DUMP: Label: /home1
  DUMP: Writing 10 Kilobyte records
  DUMP: mapping (Pass I) [regular files]
  DUMP: mapping (Pass II) [directories]
  DUMP: estimated 3814965 blocks.
  DUMP: Cannot open output "/coldback/weekly/home.2011.02.04": No such file or directory
  DUMP: Do you want to retry the open? - forced abort
  DUMP: The ENTIRE dump is aborted.
  DUMP: Date of this level 0 dump: Fri Feb  4 10:17:27 2011
  DUMP: Dumping /dev/sda2 (/) to /coldback/weekly/root.2011.02.04
  DUMP: Label: /
  DUMP: Writing 10 Kilobyte records
  DUMP: mapping (Pass I) [regular files]
  DUMP: mapping (Pass II) [directories]
  DUMP: estimated 2078086 blocks.
  DUMP: Cannot open output "/coldback/weekly/root.2011.02.04": No such file or directory
  DUMP: Do you want to retry the open? - forced abort
  DUMP: The ENTIRE dump is aborted.
  DUMP: Date of this level 0 dump: Fri Feb  4 10:17:30 2011
  DUMP: Dumping /dev/sda1 (/boot) to /coldback/weekly/boot.2011.02.04
  DUMP: Label: /boot
  DUMP: Writing 10 Kilobyte records
  DUMP: mapping (Pass I) [regular files]
  DUMP: mapping (Pass II) [directories]
  DUMP: estimated 6482 blocks.
  DUMP: Cannot open output "/coldback/weekly/boot.2011.02.04": No such file or directory
  DUMP: Do you want to retry the open? - forced abort
  DUMP: The ENTIRE dump is aborted.
  DUMP: Date of this level 0 dump: Fri Feb  4 10:18:26 2011
  DUMP: Dumping /dev/sda5 (/usr) to /coldback/weekly/usr.2011.02.04
  DUMP: Label: /usr1
  DUMP: Writing 10 Kilobyte records
  DUMP: mapping (Pass I) [regular files]
  DUMP: mapping (Pass II) [directories]
  DUMP: estimated 14397298 blocks.
  DUMP: Volume 1 started with block 1 at: Fri Feb  4 10:18:36 2011
  DUMP: dumping (Pass III) [directories]
  DUMP: dumping (Pass IV) [regular files]
  DUMP: 36.49% done at 17511 kB/s, finished in 0:08
  DUMP: 74.65% done at 17911 kB/s, finished in 0:03
  DUMP: Closing /coldback/weekly/usr.2011.02.04
  DUMP: Volume 1 completed at: Fri Feb  4 10:32:24 2011
  DUMP: Volume 1 14644930 blocks (14301.69MB)
  DUMP: Volume 1 took 0:13:48
  DUMP: Volume 1 transfer rate: 17687 kB/s
  DUMP: 14644930 blocks (14301.69MB) on 1 volume(s)
  DUMP: finished in 828 seconds, throughput 17687 kBytes/sec
  DUMP: Date of this level 0 dump: Fri Feb  4 10:18:26 2011
  DUMP: Date this dump completed:  Fri Feb  4 10:32:24 2011
  DUMP: Average transfer rate: 17687 kB/s
  DUMP: DUMP IS DONE
  DUMP: Date of this level 0 dump: Fri Feb  4 10:32:24 2011
  DUMP: Dumping /dev/sda6 (/var) to /coldback/weekly/var.2011.02.04
  DUMP: Label: /var1
  DUMP: Writing 10 Kilobyte records
  DUMP: mapping (Pass I) [regular files]
  DUMP: mapping (Pass II) [directories]
  DUMP: estimated 226266 blocks.
  DUMP: Volume 1 started with block 1 at: Fri Feb  4 10:32:32 2011
  DUMP: dumping (Pass III) [directories]
  DUMP: dumping (Pass IV) [regular files]
  DUMP: Closing /coldback/weekly/var.2011.02.04
  DUMP: Volume 1 completed at: Fri Feb  4 10:32:49 2011
  DUMP: Volume 1 229490 blocks (224.11MB)
  DUMP: Volume 1 took 0:00:17
  DUMP: Volume 1 transfer rate: 13499 kB/s
  DUMP: 229490 blocks (224.11MB) on 1 volume(s)
  DUMP: finished in 17 seconds, throughput 13499 kBytes/sec
  DUMP: Date of this level 0 dump: Fri Feb  4 10:32:24 2011
  DUMP: Date this dump completed:  Fri Feb  4 10:32:49 2011
  DUMP: Average transfer rate: 13499 kB/s
  DUMP: DUMP IS DONE
  DUMP: Date of this level 0 dump: Fri Feb  4 10:32:50 2011
  DUMP: Dumping /dev/sda7 (/home) to /coldback/weekly/home.2011.02.04
  DUMP: Label: /home1
  DUMP: Writing 10 Kilobyte records
  DUMP: mapping (Pass I) [regular files]
  DUMP: mapping (Pass II) [directories]
  DUMP: estimated 3814965 blocks.
  DUMP: Volume 1 started with block 1 at: Fri Feb  4 10:32:52 2011
  DUMP: dumping (Pass III) [directories]
  DUMP: dumping (Pass IV) [regular files]
  DUMP: Closing /coldback/weekly/home.2011.02.04
  DUMP: Volume 1 completed at: Fri Feb  4 10:36:48 2011
  DUMP: Volume 1 3812350 blocks (3723.00MB)
  DUMP: Volume 1 took 0:03:56
  DUMP: Volume 1 transfer rate: 16154 kB/s
  DUMP: 3812350 blocks (3723.00MB) on 1 volume(s)
  DUMP: finished in 236 seconds, throughput 16154 kBytes/sec
  DUMP: Date of this level 0 dump: Fri Feb  4 10:32:50 2011
  DUMP: Date this dump completed:  Fri Feb  4 10:36:48 2011
  DUMP: Average transfer rate: 16154 kB/s
  DUMP: DUMP IS DONE
  DUMP: Date of this level 0 dump: Fri Feb  4 10:36:48 2011
  DUMP: Dumping /dev/sda2 (/) to /coldback/weekly/root.2011.02.04
  DUMP: Label: /
  DUMP: Writing 10 Kilobyte records
  DUMP: mapping (Pass I) [regular files]
  DUMP: mapping (Pass II) [directories]
  DUMP: estimated 2078086 blocks.
  DUMP: Volume 1 started with block 1 at: Fri Feb  4 10:36:55 2011
  DUMP: dumping (Pass III) [directories]
  DUMP: dumping (Pass IV) [regular files]
  DUMP: Closing /coldback/weekly/root.2011.02.04
  DUMP: Volume 1 completed at: Fri Feb  4 10:38:49 2011
  DUMP: Volume 1 2089300 blocks (2040.33MB)
  DUMP: Volume 1 took 0:01:54
  DUMP: Volume 1 transfer rate: 18327 kB/s
  DUMP: 2089300 blocks (2040.33MB) on 1 volume(s)
  DUMP: finished in 114 seconds, throughput 18327 kBytes/sec
  DUMP: Date of this level 0 dump: Fri Feb  4 10:36:48 2011
  DUMP: Date this dump completed:  Fri Feb  4 10:38:49 2011
  DUMP: Average transfer rate: 18327 kB/s
  DUMP: DUMP IS DONE
  DUMP: Date of this level 0 dump: Fri Feb  4 10:38:49 2011
  DUMP: Dumping /dev/sda1 (/boot) to /coldback/weekly/boot.2011.02.04
  DUMP: Label: /boot
  DUMP: Writing 10 Kilobyte records
  DUMP: mapping (Pass I) [regular files]
  DUMP: mapping (Pass II) [directories]
  DUMP: estimated 6482 blocks.
  DUMP: Volume 1 started with block 1 at: Fri Feb  4 10:38:52 2011
  DUMP: dumping (Pass III) [directories]
  DUMP: dumping (Pass IV) [regular files]
  DUMP: Closing /coldback/weekly/boot.2011.02.04
  DUMP: Volume 1 completed at: Fri Feb  4 10:38:53 2011
  DUMP: Volume 1 6520 blocks (6.37MB)
  DUMP: Volume 1 took 0:00:01
  DUMP: Volume 1 transfer rate: 6520 kB/s
  DUMP: 6520 blocks (6.37MB) on 1 volume(s)
  DUMP: finished in 1 seconds, throughput 6520 kBytes/sec
  DUMP: Date of this level 0 dump: Fri Feb  4 10:38:49 2011
  DUMP: Date this dump completed:  Fri Feb  4 10:38:53 2011
  DUMP: Average transfer rate: 6520 kB/s
  DUMP: DUMP IS DONE
listing of "/coldback"

Code:
cd /coldback/
[root@****** coldback]# ls -al
total 36
drwxr-xr-x   5 root root  4096 Nov 17 14:28 .
drwxr-xr-x  26 root root  4096 Nov 17 13:56 ..
drwx------   2 root root 16384 Nov 17 14:19 lost+found
drwx------   2 root root  4096 Jan 21 05:02 metal
drwx------   2 root root  4096 Feb  4 10:38 weekly
 
Old 02-04-2011, 09:53 AM   #5
GNULinuxGuy
LQ Newbie
 
Registered: Jan 2011
Location: Southeastern US
Distribution: Arch, Debian, Linux Mint
Posts: 11

Rep: Reputation: 1
Given it made it all the way to sector 728760391 before it ran an I/O error, this is almost surely a problem with the drive itself. Maybe try starting with a clean filesystem on it and write a significant amount of data to it again. If the I/O errors are happening at around the same spot, then that's a pretty good indicator it's not a driver issue or something.
 
Old 02-04-2011, 10:16 AM   #6
davide123
Member
 
Registered: Jan 2010
Location: tampa bay fl
Distribution: fedora redhat 9 10 11 12 13 &14 x86_64 & i686; Peppermint, MintOne; RHEL 4 5 6, Ubuntu, SliTaz etc,
Posts: 102

Original Poster
Rep: Reputation: 16
Problem is that this is the second USB Drive that has had this issue. This Drive is brand New out the box and a totally different model than the previous one with the exact same issues. The OS is picking up errors on the drive but, I run e2fsck and manually run my backup script and it seems to work half a$$ed.

So I Highly doubt this is an issue with the drive but an issue with the OS, just not sure what....

Quote:
Maybe try starting with a clean filesystem on it and write a significant amount of data to it again. If the I/O errors are happening at around the same spot, then that's a pretty good indicator it's not a driver issue or something.
I did this just now as per above.... I ran e2fsck and then manually ran the dump backup

Last edited by davide123; 02-04-2011 at 10:20 AM.
 
Old 02-04-2011, 11:58 AM   #7
GNULinuxGuy
LQ Newbie
 
Registered: Jan 2011
Location: Southeastern US
Distribution: Arch, Debian, Linux Mint
Posts: 11

Rep: Reputation: 1
Exact same meaning the kernel I/O errors are around the same spot? Even with the old drive?
 
Old 02-04-2011, 01:45 PM   #8
davide123
Member
 
Registered: Jan 2010
Location: tampa bay fl
Distribution: fedora redhat 9 10 11 12 13 &14 x86_64 & i686; Peppermint, MintOne; RHEL 4 5 6, Ubuntu, SliTaz etc,
Posts: 102

Original Poster
Rep: Reputation: 16
No I'm not sure if they were in the same spot but, it was the same errors. Holes in offset blah blah blah; I/O error etc
 
Old 02-04-2011, 05:58 PM   #9
BoraxMan
Member
 
Registered: Apr 2010
Posts: 103

Rep: Reputation: 11
try running 'badblocks' on it (as root)

badblocks -b 8192 -n /dev/sdc

Replace sdc with the device your USB stick is. Back it up before doing this too.

If there are errors, this should pick it up. Sounds like a hardware issue to me. I've had a new USB stick go kaput almost immediately too, giving wierd errors as if there was a hole in it.
 
Old 02-07-2011, 07:09 AM   #10
davide123
Member
 
Registered: Jan 2010
Location: tampa bay fl
Distribution: fedora redhat 9 10 11 12 13 &14 x86_64 & i686; Peppermint, MintOne; RHEL 4 5 6, Ubuntu, SliTaz etc,
Posts: 102

Original Poster
Rep: Reputation: 16
this is a Seagate 500GB external Hard drive. Are there Diagnostic tools somewhere? Cant find 'em....
Either way the very first one that had this issue, has been working perfectly on my win7 machine since I replaced it with this one... Has to be something with the os, just not sure what to be checking on that end....
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Meet Shotwell - The F-Spot Replacement For Ubuntu 10.10 "Maverick Meerkat" LXer Syndicated Linux News 0 06-13-2010 05:11 PM
permissions for USB and "media" drives SaintDanBert Linux - Newbie 7 01-25-2010 01:08 AM
"cp -p" fails with "cp: setting permissions for `/home/svbld/t': Invalid argument" mkhesin Red Hat 1 02-28-2007 12:57 AM
IE7 Anti Phishing Tool Marks Legitimate Small Business "Suspicious" weibullguy General 4 12-25-2006 11:39 PM
Writing to "/dev/usb/hiddev*" and to "/proc/bus/usb/00B/00S" throw an arror EI stpg Programming 0 07-14-2004 05:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 05:28 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration