Forum
HDD unmounts while file are being copied - Printable Version

+- Forum (http://forum.xbian.org)
+-- Forum: Software (/forum-6.html)
+--- Forum: Others (/forum-24.html)
+--- Thread: HDD unmounts while file are being copied (/thread-927.html)



HDD unmounts while file are being copied - kaladont - 23rd May, 2013 06:38 PM

HI guys,

I have one problem. I have configured RP as a NAS and when rysnc starts to copy HDD unmounts and mounts again after a while. I tried to copy manually and same thing happend again.
What could be a problem?

Code:
xbian@xbian ~/HDD1/Music $ cp -p -R  Music /home/xbian/HDD2/Music
cp: reading `Music/Pink/Can\'t Take Me Home/Most Girls.mp3': Input/output error
cp: failed to extend `/home/xbian/HDD2/Music/Music/Pink/Can\'t Take Me Home/Most Girls.mp3': Input/output error
cp: reading `Music/Pink/Can\'t Take Me Home/Private Show.mp3': Input/output error
cp: failed to extend `/home/xbian/HDD2/Music/Music/Pink/Can\'t Take Me Home/Private Show.mp3': Input/output error
cp: reading `Music/Pink/Can\'t Take Me Home/Split personality.mp3': Input/output error
cp: failed to extend `/home/xbian/HDD2/Music/Music/Pink/Can\'t Take Me Home/Split personality.mp3': Input/output error
cp: reading `Music/Pink/Can\'t Take Me Home/Stop Falling.mp3': Input/output error
cp: failed to extend `/home/xbian/HDD2/Music/Music/Pink/Can\'t Take Me Home/Stop Falling.mp3': Input/output error
cp: reading `Music/Pink/Can\'t Take Me Home/There You Go.mp3': Input/output error
cp: failed to extend `/home/xbian/HDD2/Music/Music/Pink/Can\'t Take Me Home/There You Go.mp3': Input/output error
cp: reading `Music/Pink/Can\'t Take Me Home/You Make Me Sick.mp3': Input/output error
cp: failed to extend `/home/xbian/HDD2/Music/Music/Pink/Can\'t Take Me Home/You Make Me Sick.mp3': Input/output error
cp: cannot stat `Music/Pink/Funhouse': No such file or directory
cp: cannot stat `Music/Pink/Greatest Hits...So Far!!! [Deluxe Edition]': No such file or directory
cp: cannot stat `Music/Pink/I\'m Not Dead': No such file or directory




Code:
xbian@xbian ~/HDD1/Music $ [b]df -h[/b]
Filesystem      Size  Used Avail Use% Mounted on
rootfs           29G  5.5G   23G  20% /
/dev/mmcblk0p2   29G  5.5G   23G  20% /
tmpfs            38M  312K   38M   1% /run
tmpfs           5.0M  552K  4.5M  11% /run/lock
tmpfs            10M     0   10M   0% /dev
/dev/sda1       2.8T  176G  2.6T   7% /home/xbian/HDD2
/dev/sdb1       466G  317G  150G  68% /home/xbian/HDD1
tmpfs            75M     0   75M   0% /run/shm
/dev/mmcblk0p1   34M   17M   18M  49% /boot
/dev/sdb1       466G  317G  150G  68% /home/guest/sftp
/dev/sdc1       466G  317G  150G  68% /home/xbian/HDD1
/dev/sdd1       466G  317G  150G  68% /home/xbian/HDD1
/dev/sde1       466G  317G  150G  68% /home/xbian/HDD1
xbian@xbian ~/HDD1/Music $

syslog
Code:
May 23 09:10:03 xbian ntfs-3g[25941]: ntfs_attr_pread_i: ntfs_pread failed: Input/output error
May 23 09:10:03 xbian ntfs-3g[25941]: ntfs_attr_pread error reading '/Music/Music/Pink/Can't Take Me Home/Most Girls.mp3' at offset 6225920: 131072 <> -1: Input/output error
May 23 09:10:03 xbian ntfs-3g[25941]: ntfs_attr_pread_i: ntfs_pread failed: Input/output error
May 23 09:10:03 xbian ntfs-3g[25941]: ntfs_attr_pread error reading '/Music/Music/Pink/Can't Take Me Home/Most Girls.mp3' at offset 6356992: 131072 <> -1: Input/output error
May 23 09:10:03 xbian ntfs-3g[25941]: ntfs_attr_pread_i: ntfs_pread failed: Input/output error
May 23 09:10:03 xbian ntfs-3g[25941]: ntfs_attr_pread error reading '/Music/Music/Pink/Can't Take Me Home/Most Girls.mp3' at offset 6225920: 4096 <> -1: Input/output error
May 23 09:10:03 xbian ntfs-3g[25941]: ntfs_attr_pread_i: ntfs_pread failed: Input/output error
May 23 09:10:03 xbian ntfs-3g[25941]: ntfs_attr_pread error reading '/Music/Music/Pink/Can't Take Me Home/Private Show.mp3' at offset 0: 65536 <> -1: Input/output error
May 23 09:10:03 xbian ntfs-3g[25941]: ntfs_attr_pread_i: ntfs_pread failed: Input/output error
May 23 09:10:03 xbian ntfs-3g[25941]: ntfs_attr_pread error reading '/Music/Music/Pink/Can't Take Me Home/Private Show.mp3' at offset 0: 4096 <> -1: Input/output error
May 23 09:10:03 xbian ntfs-3g[25941]: ntfs_attr_pread_i: ntfs_pread failed: Input/output error
May 23 09:10:03 xbian ntfs-3g[25941]: ntfs_attr_pread error reading '/Music/Music/Pink/Can't Take Me Home/Split personality.mp3' at offset 0: 65536 <> -1: Input/output error

May 23 09:10:04 xbian ntfs-3g[25941]: ntfs_attr_pread_i: ntfs_pread failed: Input/output error
May 23 09:10:04 xbian ntfs-3g[25941]: Failed to read vcn 0x0: Input/output error
May 23 09:10:04 xbian ntfs-3g[25941]: ntfs_attr_pread_i: ntfs_pread failed: Input/output error
May 23 09:10:04 xbian ntfs-3g[25941]: Failed to read vcn 0x0: Input/output error
May 23 09:10:04 xbian ntfs-3g[25941]: ntfs_attr_pread_i: ntfs_pread failed: Input/output error
May 23 09:10:04 xbian ntfs-3g[25941]: Failed to read vcn 0x0: Input/output error
May 23 09:10:04 xbian ntfs-3g[25941]: ntfs_attr_pread_i: ntfs_pread failed: Input/output error
May 23 09:10:04 xbian ntfs-3g[25941]: Failed to read vcn 0x0: Input/output error
May 23 09:10:04 xbian ntfs-3g[25941]: ntfs_attr_pread_i: ntfs_pread failed: Input/output error


May 23 09:10:11 xbian usbmount[27724]: /dev/sde does not contain a filesystem or disklabel
May 23 09:10:12 xbian usbmount[27745]: executing command: mount -U 9C64D17064D14DA0
May 23 09:10:13 xbian ntfs-3g[27767]: Version 2012.1.15AR.5 external FUSE 29
May 23 09:10:13 xbian ntfs-3g[27767]: Mounted /dev/sde1 (Read-Write, label "My Passport", NTFS 3.1)
May 23 09:10:13 xbian ntfs-3g[27767]: Cmdline options: rw,noatime,nodiratime,big_writes
May 23 09:10:13 xbian ntfs-3g[27767]: Mount options: rw,nodiratime,allow_other,nonempty,noatime,fsname=/dev/sde1,blkdev,blksize=4096
May 23 09:10:13 xbian ntfs-3g[27767]: Ownership and permissions disabled, configuration type 7
May 23 09:12:57 xbian smbd[27859]: [2013/05/23 09:12:57.969649,  0] printing/print_cups.c:110(cups_connect)
May 23 09:12:57 xbian smbd[27859]:   Unable to connect to CUPS server localhost:631 - Connection refused
May 23 09:12:57 xbian smbd[2695]: [2013/05/23 09:12:57.978188,  0] printing/print_cups.c:487(cups_async_callback)
May 23 09:12:57 xbian smbd[2695]:   failed to retrieve printer list: NT_STATUS_UNSUCCESSFUL
May 23 09:16:56 xbian ntfs-3g[25941]: ntfs_attr_pread_i: ntfs_pread failed: Input/output error
May 23 09:16:56 xbian ntfs-3g[25941]: Failed to read index block: Input/output error
May 23 09:16:56 xbian ntfs-3g[25941]: ntfs_attr_pread_i: ntfs_pread failed: Input/output error


fstab
Code:
xbian@xbian ~/HDD1/Music $ cat /etc/fstab
proc            /proc           proc    defaults          0       0
/dev/mmcblk0p1  /boot           vfat    defaults          0       2
/dev/mmcblk0p2  /               ext4    defaults,noatime  0       1
/var/swapfile                swap        swap    defaults            0    0
UUID=9C64D17064D14DA0 /home/xbian/HDD1 auto defaults,noatime,nodiratime,async,big_writes 0 0
/home/xbian/HDD1/sftp /home/guest/sftp auto bind,gid=46,defaults 0 0
#/home/xbian/HDD1/XBMC/downloads/ /home/xbian/downloads auto bind,gid=46,defaults 0 0
UUID=34445AFE445AC272 /home/xbian/HDD2 auto noatime 0 0
xbian@xbian ~/HDD1/Music $



RE: HDD unmounts while file are being copied - mk01 - 23rd May, 2013 07:08 PM

is it only the /home/xbian/hdd2 which is remounting ?


RE: HDD unmounts while file are being copied - kaladont - 23rd May, 2013 07:19 PM

Only HDD1 -> UUID=9C64D17064D14DA0

/dev/sdc1 466G 317G 150G 68% /home/xbian/HDD1
/dev/sdd1 466G 317G 150G 68% /home/xbian/HDD1
/dev/sde1 466G 317G 150G 68% /home/xbian/HDD1

I have read about "ntfs_attr_pread_i: ntfs_pread failed: Input/output error" People suggested to run chkdsk /R on windows.

I did check with ntfsfix but it did not show anything.

Code:
xbian@xbian ~ $ sudo ntfsfix /dev/sdb1
Mounting volume... OK
Processing of $MFT and $MFTMirr completed successfully.
Checking the alternate boot sector... OK
NTFS volume version is 3.1.
NTFS partition /dev/sdb1 was processed successfully.



RE: HDD unmounts while file are being copied - mk01 - 27th May, 2013 09:08 AM

I suppose recommendation to run chkdsk _under_ windows has own reasons. try it _under_ windows.

Try to "dd if=/dev/zero of=/path_this_disk/file.name bs=1M count=512"

whether you will experience the same or is it samba <> ntfs issue.


RE: HDD unmounts while file are being copied - kaladont - 28th May, 2013 02:37 AM

I have converted to hfs partition. Now it runs without problems.


RE: HDD unmounts while file are being copied - kaladont - 30th May, 2013 07:41 PM

Now the same disk with HFS partition become read only. I guess the disk is dying.
This is the second 2.5" that stops working properly after not many working hours.
No more 2.5" HDDs for me...


RE: HDD unmounts while file are being copied - mk01 - 2nd Jun, 2013 05:27 AM

(30th May, 2013 07:41 PM)kaladont Wrote:  Now the same disk with HFS partition become read only. I guess the disk is dying.
This is the second 2.5" that stops working properly after not many working hours.
No more 2.5" HDDs for me...

check SMART status of the disk.
(apt-get install smartmontools)


Re: RE: HDD unmounts while file are being copied - kaladont - 5th Jun, 2013 04:32 AM

(2nd Jun, 2013 05:27 AM)mk01 Wrote:  
(30th May, 2013 07:41 PM)kaladont Wrote:  Now the same disk with HFS partition become read only. I guess the disk is dying.
This is the second 2.5" that stops working properly after not many working hours.
No more 2.5" HDDs for me...

check SMART status of the disk.
(apt-get install smartmontools)

Disk does not suppot SMART


RE: HDD unmounts while file are being copied - namtih - 5th Jun, 2013 03:31 PM

How is the drive connected? Directly to the Rpi or powered USB hub? What's your power supply of the Rpi?


RE: HDD unmounts while file are being copied - kaladont - 17th Jun, 2013 07:08 PM

It was connected over powered USB hub. Power supply is the same hub.


RE: HDD unmounts while file are being copied - namtih - 18th Jun, 2013 11:25 PM

Powered USB hub sounds good. It usually has enough power to supply an RPi and 2.5" HDD.
I think in the next few days will be the release of the completely new Beta1 xbian version. Perhaps you give it a try then again. Sorry that I don't have a better idea now.


RE: HDD unmounts while file are being copied - kaladont - 20th Jun, 2013 10:25 PM

I have now two new segate HDDs and problem with them does not exist anymore. They work flawlessly except beeing little bit noisy Smile