LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Unable to copy files from CentOS to pendrive (https://www.linuxquestions.org/questions/linux-newbie-8/unable-to-copy-files-from-centos-to-pendrive-757216/)

nikunjbadjatya 09-23-2009 05:55 AM

Unable to copy files from CentOS to pendrive
 
Hi,
i am using CentOS 5.3.
output of "uname -a"
Linux localhost.localdomain 2.6.18-92.el5 #1 SMP Tue Jun 10 18:49:47 EDT 2008 i686 i686 i386 GNU/Linux

My kernal version is
kernel-2.6.18-92.el5

whenver i try to copy files from my centos to pendrive ( 2gb, kingston datatraveller) my system is gettin hanged leaving no option then to reboot. i tried from the terminal also, and as a diffrent user also. but same results.

please help...
Thnx.

~sHyLoCk~ 09-23-2009 06:35 AM

Try the copy command in verbose mode to check the progress. Sometimes I have noticed that due to different file formats copying over a large file takes while.

Try
Code:

cp -v /filetocopy /destination
See which file it's getting stuck on.

malekmustaq 09-23-2009 08:56 AM

nikunjbadjatya,

This is common haldaemon problem.
To get report whether hald identifies your pendrive:

user@host--$: lshal | grep 'Kingston'
or
user@host--$: lshal [to get everything what your haldaemon currently handles.]

to find out what problem hald cannot handle use this command:

root@host--#: /usr/sbin/hald --daemon=no --verbose=yes

then try to use your pendrive copying whatever: hald should report to you if it is having any problem.

This thing really bugged my head before and almost got me discouraged until I understood a little about dbus.

also read hald manual:

user@host--$: man hald
user@host--$: man hal-set-property
-----------------

one stupid shortcut solution i did was to make my username as a member of following groups: haldaemon (or hald), messagebus and plugdev. It solved everything soon, but it made a big hole of security.

there are better advice we can get soon as better heads come here.

hope this helps mean time.

good luck.

nikunjbadjatya 09-24-2009 02:13 AM

hiii,
it gave me following output :
$ /usr/sbin/hald --daemon=no --verbose=yes
10:38:05.448 [I] hald.c:479: hal 0.5.8.1
10:38:05.449 [I] hald.c:544: Will not daemonize
10:38:05.449 [I] hald_dbus.c:4058: local server is listening at unix:abstract=/var/run/hald/dbus-AHO1NOWd8F,guid=2bbe6b3f1f5f3d801f3a99004abafeb5
Runner started - allowed paths are '/usr/libexec:/usr/lib/hal/scripts:/usr/bin'
10:38:05.452 [I] hald_runner.c:220: Runner has pid 4774
Error binding udev_event socket: Address already in use

i am not able to interpret anything..!!
what to do next?

nikunjbadjatya 09-24-2009 02:15 AM

Quote:

Originally Posted by ~sHyLoCk~ (Post 3694025)
Try the copy command in verbose mode to check the progress. Sometimes I have noticed that due to different file formats copying over a large file takes while.

Try
Code:

cp -v /filetocopy /destination
See which file it's getting stuck on.


Its not about filetype.. whatever i try to copy after some 20% its getting stuck..yeah small files i can copy easily..but not above 20mb..??

~sHyLoCk~ 09-24-2009 02:25 AM

See if this helps.

nikunjbadjatya 09-24-2009 07:41 AM

Quote:

Originally Posted by ~sHyLoCk~ (Post 3695182)
See if this helps.



i am not getting this HAL thing..please bare with me, i am new to linux.. trying to learn it.

Thanx neways for your reply.


All times are GMT -5. The time now is 05:11 PM.