LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-08-2018, 04:54 AM   #1
utsav69
LQ Newbie
 
Registered: May 2018
Posts: 5

Rep: Reputation: Disabled
Error while copying file


i just installed kali linux today and facing a hell lot of issue and the worst one is that i am not able to copy any file to my /dev/sda2
i searched this on google and found that my disk must be on read only mode but then i used

Code:
sudo mount -f -o remount,rw /dev/sda2
after this code i am able to get the cut option on right click but still not able to paste or move anything to and in /dev/sda2
i am on 2018.2 and running a single OS

Quote:
Error opening file “/mnt/7C7493BF74937B1A/Movies/wget-log”: No such file or directory
i am just trying to copy a file name wget-log from root to /mnt/7C7493BF74937B1A/Movies and getting this error

i need help asap
 
Old 05-08-2018, 07:01 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,830

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
Why do you use Kali?
https://www.linuxquestions.org/quest...ad-4175614092/

Last edited by pan64; 05-08-2018 at 07:02 AM.
 
1 members found this post helpful.
Old 05-08-2018, 07:33 AM   #3
utsav69
LQ Newbie
 
Registered: May 2018
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
i know this is silly but i want to learn kali its not the first time i am using kali. It's the first time i am facing this read only issue. please help me out and if you think this is a waste question just delete my thread
 
Old 05-08-2018, 07:43 AM   #4
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,830

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
you need to give much more information. The minimum would be to post exactly what did you try and what's happened (and what did you want to achieve).http://catb.org/~esr/faqs/smart-ques...html#beprecise
Whithout that hard to say anything. Probably the directory you want to use was not yet created.
From the other hand you need to learn the basics first, without that you won't be able to use kali at all. It is something like reading arabic without learning the letters.
 
Old 05-08-2018, 07:48 AM   #5
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,501

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
You seem to be trying to copy to a windows filesystem. Do you have a windows install on that computer? If so, which one? If it is 8 or 10 it is almost certainly hibernated and won't be mounted from Linux. Do you have ntfs-3g installed. Not sure why you would be copying a log file to aa windows directory Movies? The link below discusses doing this on Kali. If you have a windows install and want to use Kali to learn computer forensics, it would be a lot simpler to put Kali on a bootable usb per the detailed instructions on their site.

https://forum.techsanjal.com/2636/ma...inux-dual-boot
 
1 members found this post helpful.
Old 05-08-2018, 07:59 AM   #6
utsav69
LQ Newbie
 
Registered: May 2018
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
you need to give much more information. The minimum would be to post exactly what did you try and what's happened (and what did you want to achieve).http://catb.org/~esr/faqs/smart-ques...html#beprecise
Whithout that hard to say anything. Probably the directory you want to use was not yet created.
From the other hand you need to learn the basics first, without that you won't be able to use kali at all. It is something like reading arabic without learning the letters.
i got 2 main partition 1st is sda5 (the root one) and then the sda2 (the partition containing files). After successful installation i mounted the sda2 partition and then tried moving my file from one folder to another in the same sda2 but i failed as then cut or move to option was not enable then i tried moving some files from sda5 to sda2 and again i failed as paste option was not there then i remounted the sda2 in RW mode and ow there is a option for cut, paste and move to yet i am not able to move file in same partition moreover i am not even getting any error. when i try moving file from sda5 to sda2 i get error.
this error shows that there is o such directory whereas "wget-log" is the file i am copying from sda5 to sda2 and Movies the the folder and both the thing do exist

 
Old 05-08-2018, 08:02 AM   #7
utsav69
LQ Newbie
 
Registered: May 2018
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by yancek View Post
You seem to be trying to copy to a windows filesystem. Do you have a windows install on that computer? If so, which one? If it is 8 or 10 it is almost certainly hibernated and won't be mounted from Linux. Do you have ntfs-3g installed. Not sure why you would be copying a log file to aa windows directory Movies? The link below discusses doing this on Kali. If you have a windows install and want to use Kali to learn computer forensics, it would be a lot simpler to put Kali on a bootable usb per the detailed instructions on their site.

https://forum.techsanjal.com/2636/ma...inux-dual-boot
i am using a single OS for now and previously i was using windows 10. i am copying the log file just to test if i am able to copy or not
 
Old 05-08-2018, 08:05 AM   #8
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,830

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
that can be even a corrupted filesystem. Would be nice to check logs in /var/log and also try to use command line tools (to move/copy/create files) and check their responses.

Last edited by pan64; 05-08-2018 at 08:07 AM.
 
1 members found this post helpful.
Old 05-08-2018, 08:14 AM   #9
utsav69
LQ Newbie
 
Registered: May 2018
Posts: 5

Original Poster
Rep: Reputation: Disabled
Thank you everyone for the help. The issue was that there was still some metadata kept in Windows cache, that's why it refused to mount. the solution to it would be just run
ntfsfix on your partition and then try to mount in RW mode
 
Old 05-08-2018, 04:02 PM   #10
_roman_
Member
 
Registered: Dec 2017
Location: _Austro_Bavaria_
Distribution: gentoo / linux mint
Posts: 433

Rep: Reputation: 29
Quote:
i searched this on google and found that my disk must be on read only mode but then i used
Serious you need to be in read only mode, READ ONLY, to copy files?

than you write

Quote:
sudo mount -f -o remount,rw /dev/sda2
remount rw (read write)

are you serious?

using kali. unable to understand read only. unable to lookup the manpage what the parameter does? and mount is not that hard to read. it is very well explained in several topics.


Quote:
after this code i am able to get the cut option on right click but still not able to paste or move anything to and in /dev/sda2
i am on 2018.2 and running a single OS
you are definitely not a linux user.

i suggest you invest a few days and read a linux book about basics, or use the gentoo handbook and install gentoo and use it for at least 3 months with updates and daily procedures.

you lack shell, you lack manpages, you lack basic knowledge about users, file permissions, user permissions, mounting.

of course this knowledge is the same since windows 2000?, suse 6.2, slackware 96 to only name a few antique operating systems.

mounting is the same also

--

also i do not get the fuss with kali.
you can use anyhting when you know how to use the tools.
or is it to brag, because some stupid tv show, advertises now kali?
 
Old 05-09-2018, 01:48 AM   #11
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,830

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
I think that was mounted readonly because of some problem. And in post #9 it was explained, ntfsfix solved this issue.
 
1 members found this post helpful.
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
FC13: There was an error copying file into smb://path/folder BryanChong Linux - Server 3 10-28-2010 04:55 AM
avseq0.dat file copying error Ammad Linux - General 5 03-30-2008 05:13 PM
I/O error when copying large file from Memory Stick airman99 Linux - General 3 08-22-2005 09:26 AM
Error Copying File or Folder nysethe Linux - Networking 3 08-17-2004 01:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:25 AM.

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
Open Source Consulting | Domain Registration