LinuxQuestions.org
Review your favorite Linux distribution.
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 06-02-2016, 09:16 PM   #1
devUnix
Member
 
Registered: Oct 2010
Posts: 606

Rep: Reputation: 59
How to access the outpuf file created using dd command


Hi,


I did this:


Code:
dd if=/dev/sdb1 of=/root/backup bs=4096 conv=noerror,sync
As well as:

Code:
dd if=/dev/sdb1 of=/root/image_of_sdb1
How can I see the contents of the files (backup and image_of_sb1) created above? Do I need to copy them back to a partition to view the directory structure? Or can I directly use it somehow?
 
Old 06-02-2016, 09:53 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,125

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Use a loop mount
Code:
mount -o loop /root/backup /mnt/somewhere
 
Old 06-02-2016, 09:59 PM   #3
devUnix
Member
 
Registered: Oct 2010
Posts: 606

Original Poster
Rep: Reputation: 59
Quote:
Originally Posted by syg00 View Post
Use a loop mount
Code:
mount -o loop /root/backup /mnt/somewhere

Excellent!

Code:
[root@localhost ~]# mount -o loop backup_home /mnt
[root@localhost ~]# ls -l /mnt/
total 19
drwx------. 29 demo demo  3072 Jun  2 10:01 demo
drwx------.  2 root root 12288 May 10 08:49 lost+found
drwx------.  4 test test  1024 May 19 13:38 test
 
  


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
Sending newly created log file from suse linux to outlook mail through command line spande SUSE / openSUSE 5 07-30-2015 07:32 AM
[SOLVED] Saving a file to desktop/Secure remote access from the command line/Fedora 15 DaverR Linux - Newbie 3 04-26-2012 08:22 AM
[SOLVED] authconfig command and access.conf file custangro Linux - Enterprise 1 12-10-2010 01:41 PM
How do I capture a file-->open command and restrict the path of access PhloxLot Programming 2 08-03-2009 10:03 PM
How to access database created with MS Access on Windows using PHP on Linux Server anjani.78 Linux - Software 1 12-21-2005 06:07 PM

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

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