LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-14-2013, 06:52 PM   #1
slacker_
Member
 
Registered: Aug 2013
Distribution: Arch, Debian, Slackware
Posts: 333

Rep: Reputation: 3
Copying to any drive other than primary cannot complete, hangs/locks up


This is a new issue for me. Whenever I try to copy any type of file to a connected drive (flash drive, internal secondary hard drive, whatever) it will not complete.

Graphically I use nautilus for my file manager, drag and drop or ctrl+c ctrl+v produces a progress bar that winds up hanging up at the last few kilobytes and will not complete. I've let it sit for hours, when all it should need for the whole process is a few seconds (or minutes for larger files). Trying to cancel it doesn't do anything, force quit produces nothing, even 'pkill'ing the process doesn't cancel it. I can't even unmount because the process ties up the device rendering it "Busy" according to my system.

Via terminal, I don't get a progress bar or completion time but using cp /path/to/source /path/to/target just hangs, and will not complete. Same things happen, ctrl+c doesn't stop it, can't term the process. In either scenario I wind up having to force my computer to shutdown in order to retrieve me device.

I thought maybe it might be due to the drive(s) being mounted as read only (I don't know how/where to check how my devices have been mounted, but I just took a guess) so I manually mounted my flash drive and manually tried to copy something:

Code:
ra@ra-desktop:~$ sudo mkdir /mnt/8G_flash
ra@ra-desktop:~$ sudo mount -t vfat -o rw,users /dev/sde1 /mnt/8G_flash
ra@ra-desktop:~$ cp /home/ra/Documents/confirm /mnt/8G_flash/
cp: cannot create regular file `/mnt/8G_flash/confirm': Permission denied
Hopefully someone can help me out here. Thanks in advance.
 
Old 09-14-2013, 11:15 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Jessie, Linux Mint 17
Posts: 7,750

Rep: Reputation: 271Reputation: 271Reputation: 271
The directory 8G_flash may have been created as read only. Issue these commands and see what you get for the permissions on 8G_flash:

ra@ra-desktop:~$ sudo mkdir /mnt/8G_flash
ra@ra-desktop:~$ ls -l /mnt

------------------
Steve Stites
 
Old 09-14-2013, 11:56 PM   #3
slacker_
Member
 
Registered: Aug 2013
Distribution: Arch, Debian, Slackware
Posts: 333

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by jailbait View Post
The directory 8G_flash may have been created as read only. Issue these commands and see what you get for the permissions on 8G_flash:

ra@ra-desktop:~$ sudo mkdir /mnt/8G_flash
ra@ra-desktop:~$ ls -l /mnt

------------------
Steve Stites
Code:
:~$ ls -l /mnt
drwxr-xr-x 9 root root 32768 1969-12-31 19:00 8G_flash
It was made read write execute. Still at square one.
 
Old 09-15-2013, 12:26 AM   #4
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 6,869

Rep: Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247
The output you posted of the ls -l command on your 8G_flash are read, write and execute for the root user and read/write for the groug and others. That would mean only as root user would you be able to write to that partition. The commands you posted in your initial post indicate you are trying to do that as a normal user. Either do the copying as root or change the owner or group.

You can check to see what is mounted, issue the 'mount' command as root.
 
Old 09-15-2013, 01:11 AM   #5
slacker_
Member
 
Registered: Aug 2013
Distribution: Arch, Debian, Slackware
Posts: 333

Original Poster
Rep: Reputation: 3
.. Wow, cannot believe I made such a simple oversight. Thanks!

As for mount showing what is mounted, I guess I never noticed that little tid bit at the end showing the permissions and everything. I should start paying more attention to that.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
drag-drop copying and cp command both hang at last few KB when copying to flash drive slacker_ Linux - Newbie 1 09-05-2013 08:17 AM
rsync hangs and locks server lylemwood Linux - Software 4 08-25-2010 05:26 AM
[SOLVED] samba locks up copying files under ubuntu 10.4 LTS florenceit Linux - Software 1 07-11-2010 05:58 PM
Machine locks up when copying lots of files AboveTheLogic Linux - General 11 05-03-2009 12:26 PM
Copying complete folders cipher_arg Linux - General 2 12-17-2002 06:53 PM


All times are GMT -5. The time now is 04:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration