LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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-29-2018, 01:28 AM   #1
catiewong
Member
 
Registered: Aug 2018
Posts: 190

Rep: Reputation: Disabled
copy file from unmounted volumn


I have a xfs volumn can not be mounted , , there are text file in it ,is thrtr any way to copy files from it ?
 
Old 09-29-2018, 01:47 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,152

Rep: Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125
Not with normal tools.
Better to keep this in the other thread to keep the advice coherent.
 
1 members found this post helpful.
Old 09-29-2018, 02:07 AM   #3
catiewong
Member
 
Registered: Aug 2018
Posts: 190

Original Poster
Rep: Reputation: Disabled
the command "dd" can do that ?

Last edited by catiewong; 09-29-2018 at 02:11 AM.
 
Old 09-29-2018, 02:43 AM   #4
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,039

Rep: Reputation: 7347Reputation: 7347Reputation: 7347Reputation: 7347Reputation: 7347Reputation: 7347Reputation: 7347Reputation: 7347Reputation: 7347Reputation: 7347Reputation: 7347
dd will not copy files, it cannot handle files on unmounted volumes at all. dd can be used to make a copy of that partition and later you can work on that partition instead of a [possibly corrupted/damaged] device.
You may need to try testdisk or some other recovery tool.

Last edited by pan64; 09-29-2018 at 02:44 AM.
 
1 members found this post helpful.
Old 09-29-2018, 03:01 AM   #5
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by catiewong View Post
I have a xfs volumn can not be mounted , , there are text file in it ,is thrtr any way to copy files from it ?
Try xfs_db (I have never tried it, but it should be able to retrieve your data, depending on the damage).

The problem with such tools: They are dangerous in the hands of laypersons, and you are one. Be very very careful when you use it; don't use any commands that modify the filesystem.

I just see that xfs_db has a read-only option. Recommended.

Last edited by berndbausch; 09-29-2018 at 03:03 AM.
 
1 members found this post helpful.
Old 09-29-2018, 04:44 AM   #6
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,519

Rep: Reputation: Disabled
Quote:
Originally Posted by catiewong View Post
I have a xfs volumn can not be mounted , , there are text file in it ,is thrtr any way to copy files from it ?
Make a copy of it, with dd or similar, & work on the copy, if you screw up, you can make another copy, if you use your disk, you'll lose whatever chance you had of recovering them.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linuxzoo tutoria,I am working tutorial 1 and i am stuck on question 7. Copy the file yearfile to yearfile2. copy the file yearfile to yearf rstelle Linux - Newbie 3 09-01-2017 07:58 PM
How to Find Unmounted File Systems in RHEL? gopinath Linux - Newbie 12 09-23-2016 02:26 PM
How do you locate superblocks in an unmounted disk image file? serutan Linux - General 1 02-07-2010 10:24 PM
File system not unmounted cleanly Cams Linux - Newbie 4 11-08-2009 06:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:57 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
Open Source Consulting | Domain Registration