Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook

HDD unmounts while file are being copied
Thank you for your donation

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
HDD unmounts while file are being copied
23rd May, 2013, 06:38 PM
Post: #1
kaladont Offline
Registered
Posts: 40
Joined: Jan 2013
Reputation: 3
HDD unmounts while file are being copied
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 $
Find all posts by this user
Quote this message in a reply
23rd May, 2013, 07:08 PM
Post: #2
mk01 Offline
Registered
Posts: 2,485
Joined: Mar 2013
Reputation: 209
RE: HDD unmounts while file are being copied
is it only the /home/xbian/hdd2 which is remounting ?

Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here
Find all posts by this user
Quote this message in a reply
23rd May, 2013, 07:19 PM
Post: #3
kaladont Offline
Registered
Posts: 40
Joined: Jan 2013
Reputation: 3
RE: HDD unmounts while file are being copied
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.
Find all posts by this user
Quote this message in a reply
27th May, 2013, 09:08 AM
Post: #4
mk01 Offline
Registered
Posts: 2,485
Joined: Mar 2013
Reputation: 209
RE: HDD unmounts while file are being copied
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.

Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here
Find all posts by this user
Quote this message in a reply
28th May, 2013, 02:37 AM
Post: #5
kaladont Offline
Registered
Posts: 40
Joined: Jan 2013
Reputation: 3
RE: HDD unmounts while file are being copied
I have converted to hfs partition. Now it runs without problems.
Find all posts by this user
Quote this message in a reply
30th May, 2013, 07:41 PM
Post: #6
kaladont Offline
Registered
Posts: 40
Joined: Jan 2013
Reputation: 3
RE: HDD unmounts while file are being copied
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...
Find all posts by this user
Quote this message in a reply
2nd Jun, 2013, 05:27 AM
Post: #7
mk01 Offline
Registered
Posts: 2,485
Joined: Mar 2013
Reputation: 209
RE: HDD unmounts while file are being copied
(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)

Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here
Find all posts by this user
Quote this message in a reply
5th Jun, 2013, 04:32 AM
Post: #8
kaladont Offline
Registered
Posts: 40
Joined: Jan 2013
Reputation: 3
Re: RE: HDD unmounts while file are being copied
(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
Find all posts by this user
Quote this message in a reply
5th Jun, 2013, 03:31 PM
Post: #9
namtih Offline
Tester
Posts: 269
Joined: Dec 2012
Reputation: 28
RE: HDD unmounts while file are being copied
How is the drive connected? Directly to the Rpi or powered USB hub? What's your power supply of the Rpi?
Find all posts by this user
Quote this message in a reply
17th Jun, 2013, 07:08 PM
Post: #10
kaladont Offline
Registered
Posts: 40
Joined: Jan 2013
Reputation: 3
RE: HDD unmounts while file are being copied
It was connected over powered USB hub. Power supply is the same hub.
Find all posts by this user
Quote this message in a reply
18th Jun, 2013, 11:25 PM
Post: #11
namtih Offline
Tester
Posts: 269
Joined: Dec 2012
Reputation: 28
RE: HDD unmounts while file are being copied
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.
Find all posts by this user
Quote this message in a reply
20th Jun, 2013, 10:25 PM
Post: #12
kaladont Offline
Registered
Posts: 40
Joined: Jan 2013
Reputation: 3
RE: HDD unmounts while file are being copied
I have now two new segate HDDs and problem with them does not exist anymore. They work flawlessly except beeing little bit noisy Smile
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 12th May, 2025, 02:17 AM Powered By MyBB, © 2002-2025 MyBB Group.