LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 11-17-2006, 07:42 AM   #1
Xeratul
Senior Member
 
Registered: Jun 2006
Location: Debian Land
Posts: 1,320

Rep: Reputation: 83
Possible to do dd if=/dev/hda1 ... and afterwards mount this partition ?


Possible to do dd if=/dev/hda1 of=/tmp/myfiledd and afterwards mount this partition ?
mount -t somthg ....

===#
example:
dd if=/dev/hda1 of=/tmp/myfiledd
mkdir /mnt/mounted
mount -t ext3 /tmp/myfiledd /mnt/mounted

That can be sometimes useful to backup or restore data ...

Thank you
 
Old 11-17-2006, 07:50 AM   #2
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 62
You can do this using the "loopback" feature:
Code:
mount -o loop -t ext3 /tmp/myfiledd /mnt/mounted
 
Old 11-17-2006, 07:56 AM   #3
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
You need to use the option "loop" so that the loopback device is used.

For example:
dd if=/dev/hda5 of=boot.img bs=1024
sudo mount -t ext3 boot.img bootimg/ -o loop,defaults
 
Old 11-18-2006, 12:30 AM   #4
Xeratul
Senior Member
 
Registered: Jun 2006
Location: Debian Land
Posts: 1,320

Original Poster
Rep: Reputation: 83
Quote:
Originally Posted by matthewg42
You can do this using the "loopback" feature:
Code:
mount -o loop -t ext3 /tmp/myfiledd /mnt/mounted
Thank you, it works great !
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
mount problem /dev/hda1 does not exist galrub Suse/Novell 12 03-28-2007 05:33 PM
Mount command says / is mounted from /dev/hda4, but I know its /dev/hda1 trewsfan Linux - Software 2 08-30-2006 10:01 PM
set mount point of /dev/hda1 to windows/c etc... shikhar Suse/Novell 5 08-08-2006 12:41 AM
Can't mount /dev/hda1 SMGEG Linux - Hardware 34 05-17-2006 04:42 AM
can't mount /dev/hda1 (my WindowsXP partition) ZoeNStC Linux - General 3 09-18-2004 11:40 AM


All times are GMT -5. The time now is 08:24 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration