LinuxQuestions.org
Help answer threads with 0 replies.
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-10-2020, 10:27 AM   #1
newbiesforever
Senior Member
 
Registered: Apr 2006
Location: Iowa
Distribution: Debian distro family
Posts: 2,374

Rep: Reputation: Disabled
what are the practical results of copying a mounted filesystem image?


When I image and copy an entire partition, I sometimes forget to unmount the partition first, and the system effectively warns me, with:
Code:
Running e2image on a R/W mounted filesystem can result in an
inconsistent image which will not be useful for debugging purposes.
Use -f option if you really want to do that.
I just wondered what the result would look like if I did add -f to copy the image without unmounting it. I have assumed the image on the target would be corrupted; but...now I note that "will not be useful for debugging purposes" implies that that might be the only problem. If so, I don't care--I wasn't going to debug anything.
 
Old 05-10-2020, 10:51 AM   #2
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,670

Rep: Reputation: Disabled
When a partition is being unmounted all cached data get flushed to it. Besides, unmounting a partition guarantees that no process continues to write data onto it.

Last edited by shruggy; 05-10-2020 at 11:24 AM.
 
1 members found this post helpful.
Old 05-10-2020, 11:19 AM   #3
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,841

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
additionally the copy of a living partition may be corrupted. That means it is useless, contains invalid data (=inconsistent). you might need to run fsck before usage and also you might expect data loss on that image. But occasionally it may work without any trouble.
 
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
Copying a mounted E01 file to a raw image in Slackware Jossie Linux - Newbie 2 10-29-2019 11:12 AM
Google accuses Bing of 'copying' its search results Jeebizz Linux - News 1 02-02-2011 09:05 AM
LXer: Google: Bing Is Cheating, Copying Our Search Results LXer Syndicated Linux News 3 02-02-2011 07:17 AM
How to resize filesystem (image file)? how to truncate the image? nikov3 Linux - General 4 06-27-2006 03:02 AM

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

All times are GMT -5. The time now is 08:42 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