[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

usb hard drive fails to mount after rsync errors



Hi all
  I have a 200 GB extenal hard drive with USB interface. I have the
following entries in /etc/fstab

/dev/sda        /media/usb0     auto    rw,user,noauto  0       0

/dev/sda5       /usbdrive/ent1  	  auto    rw,users,noauto  0       2
/dev/sda7       /usbdrive/ent2  	  auto    rw,users,noauto  0       2
/dev/sda1       /usbdrive/linux_backup	  auto    rw,users,noauto  0       2
/dev/sda6       /usbdrive/software 	  auto    rw,users,noauto  0       2
/dev/sda2       /usbdrive/windows_backup  auto    rw,users,noauto  0       2

where sda1 is ext3 formatted.

When I boot the computer, I can mount a partition by

mount /dev/sda1

I was sending a large file from another machine to this partition, the
rsync transfer failed with the following message

$rsync -e ssh -avzp rajuhomebackup_040403.tgz
rajulocal@kusumanchi:/usbdrive/linx_backup/home_backups/
building file list ... done
rajuhomebackup_040403.tgz
rsync: writefd_unbuffered failed to write 16385 bytes: phase
"unknown": Broken pipe
rsync error: error in rsync protocol data stream (code 12) at io.c(515)

So, I went back my original machine and unmounted the /dev/sda1
partition. Now when I try to mount the partition again, I am getting
the following errors.

$mount /dev/sda1
mount: I could not determine the filesystem type, and none was specified

$sudo mount -t ext3 /dev/sda1 /usbdrive/linux_backup/
mount: /dev/sda1 is not a valid block device

But if I reboot the computer the usb drive can be mounted without any
problems. Now my questions are

1) Why is the rsync process giving errors?

2) Is the 200gb USB drive faulty? I can use it in windows and
everything works like a charm. But in linux I have this weird problem
of booting everytime I want to mount the partition

Using debian sid

$uname -a
Linux kusumanchi 2.6.8-1-386 #1 Mon Sep 13 23:29:55 EDT 2004 i686 GNU/Linux

cat /proc/bus/usb/devices
T:  Bus=05 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=480 MxCh= 8
B:  Alloc=  0/800 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=01 MxPS= 8 #Cfgs=  1
P:  Vendor=0000 ProdID=0000 Rev= 2.06
S:  Manufacturer=Linux 2.6.8-1-386 ehci_hcd
S:  Product=Intel Corp. 82801EB/ER (ICH5/ICH5R) USB2 EHCI Controller
S:  SerialNumber=0000:00:1d.7
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   2 Ivl=256ms

T:  Bus=04 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=12  MxCh= 2
B:  Alloc=  0/900 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 1.10 Cls=09(hub  ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=0000 ProdID=0000 Rev= 2.06
S:  Manufacturer=Linux 2.6.8-1-386 uhci_hcd
S:  Product=Intel Corp. 82801EB/ER (ICH5/ICH5R) USB UHCI #4
S:  SerialNumber=0000:00:1d.3
C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr=  0mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   2 Ivl=255ms

T:  Bus=03 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=12  MxCh= 2
B:  Alloc= 93/900 us (10%), #Int=  1, #Iso=  0
D:  Ver= 1.10 Cls=09(hub  ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=0000 ProdID=0000 Rev= 2.06
S:  Manufacturer=Linux 2.6.8-1-386 uhci_hcd
S:  Product=Intel Corp. 82801EB/ER (ICH5/ICH5R) USB UHCI #3
S:  SerialNumber=0000:00:1d.2
C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr=  0mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   2 Ivl=255ms

T:  Bus=03 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  3 Spd=1.5 MxCh= 0
D:  Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=045e ProdID=0039 Rev= 3.00
S:  Manufacturer=Microsoft
S:  Product=Microsoft 5-Button Mouse with IntelliEye(TM)
C:* #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr=100mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=03(HID  ) Sub=01 Prot=02 Driver=usbhid
E:  Ad=81(I) Atr=03(Int.) MxPS=   4 Ivl=10ms

T:  Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=12  MxCh= 2
B:  Alloc=  0/900 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 1.10 Cls=09(hub  ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=0000 ProdID=0000 Rev= 2.06
S:  Manufacturer=Linux 2.6.8-1-386 uhci_hcd
S:  Product=Intel Corp. 82801EB/ER (ICH5/ICH5R) USB UHCI #2
S:  SerialNumber=0000:00:1d.1
C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr=  0mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   2 Ivl=255ms

T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=12  MxCh= 2
B:  Alloc=  0/900 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 1.10 Cls=09(hub  ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=0000 ProdID=0000 Rev= 2.06
S:  Manufacturer=Linux 2.6.8-1-386 uhci_hcd
S:  Product=Intel Corp. 82801EB/ER (ICH5/ICH5R) USB UHCI #1
S:  SerialNumber=0000:00:1d.0
C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr=  0mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   2 Ivl=255ms




$lsmod
Module                  Size  Used by
uinput                  6144  0
usbvideo               27524  0
videodev                9856  1 usbvideo
usbserial              27240  0
mtouchusb               5632  0
audio                  42240  0
snd_mixer_oss          16640  0
nvidia               2072712  14
af_packet              20872  2
ipv6                  229764  8
ds                     17796  4
lp                     10408  0
binfmt_misc            11272  1
8139cp                 19072  0
snd_intel8x0m          18632  0
snd_intel8x0           33068  0
snd_ac97_codec         59268  2 snd_intel8x0m,snd_intel8x0
snd_pcm                85384  2 snd_intel8x0m,snd_intel8x0
snd_timer              23172  1 snd_pcm
snd_page_alloc         11144  3 snd_intel8x0m,snd_intel8x0,snd_pcm
gameport                4736  1 snd_intel8x0
snd_mpu401_uart         7296  1 snd_intel8x0
snd_rawmidi            23204  1 snd_mpu401_uart
snd_seq_device          7944  1 snd_rawmidi
snd                    50660  9
snd_mixer_oss,snd_intel8x0m,snd_intel8x0,snd_ac97_codec,snd_pcm,snd_timer,snd_mpu401_uart,snd_rawmidi,snd_seq_device
shpchp                 87148  0
pciehp                 83948  0
pci_hotplug            30640  2 shpchp,pciehp
intel_agp              20512  0
intel_mch_agp          10000  1
agpgart                31784  3 intel_agp,intel_mch_agp
irtty_sir               8320  0
sir_dev                18092  1 irtty_sir
irda                  167360  2 irtty_sir,sir_dev
crc_ccitt               2432  1 irda
parport_pc             31936  1
parport                37320  2 lp,parport_pc
floppy                 54992  0
pcspkr                  3816  0
ehci_hcd               27908  0
eth1394                19976  0
i810_audio             33300  1
ac97_codec             16908  1 i810_audio
soundcore               9824  4 audio,snd,i810_audio
8139too                23936  0
mii                     4864  2 8139cp,8139too
crc32                   4608  2 8139cp,8139too
yenta_socket           19200  0
pcmcia_core            63028  2 ds,yenta_socket
ohci1394               32004  0
joydev                  9536  0
sd_mod                 20480  0
capability              4872  0
commoncap               7168  1 capability
ide_scsi               15492  0
tsdev                   7168  0
mousedev                9996  2
evdev                   9088  0
uhci_hcd               29328  0
usbmouse                5504  0
psmouse                17800  0
usb_storage            59072  0
usbhid                 28864  0
usbkbd                  6912  0
usbcore               104164  12
usbvideo,usbserial,mtouchusb,audio,ehci_hcd,uhci_hcd,usbmouse,usb_storage,usbhid,usbkbd
gadgetfs               17676  0
net2280                21900  1 gadgetfs
sr_mod                 15780  0
sbp2                   22408  0
scsi_mod              115148  5 sd_mod,ide_scsi,usb_storage,sr_mod,sbp2
ieee1394              100408  3 eth1394,ohci1394,sbp2
ide_cd                 38176  0
cdrom                  35740  2 sr_mod,ide_cd
rtc                    12088  0
ext3                  109544  4
jbd                    54552  1 ext3
ide_generic             1664  0
piix                   12448  1
ide_disk               16768  6
ide_core              125156  6
ide_scsi,usb_storage,ide_cd,ide_generic,piix,ide_disk
unix                   25908  260
font                    8576  0
vesafb                  6688  0
cfbcopyarea             3840  1 vesafb
cfbimgblt               3200  1 vesafb
cfbfillrect             3712  1 vesafb



$lsusb
Bus 005 Device 001: ID 0000:0000
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 003: ID 045e:0039 Microsoft Corp. IntelliMouse Optical
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000


thanks in advance
raju



-- 
Kamaraju S Kusumanchi
Cornell University
http://people.cornell.edu/pages/kk288/



Reply to: