Usb Hdd unmounting every 24 hours or so
#1
Hi,

I have a raspberry pi running xbmc and transmission, I have a powered 500gb usb attached, every 24 hours or so i am unable to access the files on it, if i stop the transmission daemon, unmount the drive, mount it again and then start the daemon it works fine again, is anyone else having this trouble!? can i write a script to do this for me?

I would appreciate any suggestions
Reply
#2
Any errors in dmesg log?
Reply
#3
thanks for the reply, where would i find the log?
Reply
#4
/var/log/dmesg

or, for a quick view do
dmesg | less
Derek
Reply
#5
hi, hopefullynthis will help and i have not copy and pasted a load of rubbish!

usb 1-1.3.2: Product: HD-PVU2
usb 1-1.3.2: Manufacturer: BUFFALO
usb 1-1.3.2: SerialNumber: 365645465733413620202020
usb-storage 1-1.3.2:1.0: USB Mass Storage device detected
scsi0 : usb-storage 1-1.3.2:1.0
scsi 0:0:0:0: Direct-Access BUFFALO HD-PVU2 1.04 PQ: 0 ANSI: 4
sd 0:0:0:0: [sda] 976773168 512-byte logical blocks: (500 GB/465 GiB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Mode Sense: 23 00 00 00
sd 0:0:0:0: [sda] No Caching mode page found
sd 0:0:0:0: [sda] Assuming drive cache: write through
sd 0:0:0:0: [sda] No Caching mode page found
sd 0:0:0:0: [sda] Assuming drive cache: write through
sda: sda1
sd 0:0:0:0: [sda] No Caching mode page found
sd 0:0:0:0: [sda] Assuming drive cache: write through
sd 0:0:0:0: [sda] Attached SCSI disk
EXT4-fs (mmcblk0p2): recovery complete
EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
udevd[134]: starting version 175
bcm2708_i2c_init_pinmode(0,0)
bcm2708_i2c_init_pinmode(0,1)
bcm2708_i2c bcm2708_i2c.0: BSC0 Controller at 0x20205000 (irq 79) (baudrate 100k)
bcm2708_i2c_init_pinmode(1,2)
bcm2708_i2c_init_pinmode(1,3)
bcm2708_i2c bcm2708_i2c.1: BSC1 Controller at 0x20804000 (irq 79) (baudrate 100k)
EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
bcm2835-cpufreq: switching to governor performance
bcm2835-cpufreq: switching to governor performance
fuse init (API version 7.22)
ip_tables: © 2000-2006 Netfilter Core Team
Console: switching to colour dummy device 80x30
nf_conntrack version 0.5.0 (5996 buckets, 23984 max)
Reply
#6
Tried running fsck on the drive in question?
Reply
#7
I get:

fsck.ntfs-3g: not found
fsck: error 2 while executing fsck.ntfs-3g for /dev/sda1

Thanks
Reply
#8
Does this help at all?
Derek
Reply
#9
No, sorry no change, i'm thinking it may be easier to reformat the hardrive in ext4, do you know if you can make a new partition in ext4 or do you have to reformat the whole drive?
Reply
#10
That depends on whether you have some free space.
If you have, then you can create another partition and format it as ext4.
What you cannot do is format the existing NTFS partition as ext4 and expect the data to survive - it won't, it will just be lost.
Derek
Reply
#11
that's great i will try that, thanks for everyone's help
Reply

Logout Mark Read Team Forum Stats Members Help
Usb Hdd unmounting every 24 hours or so0