dd image and how to ... is more a question???-
Hallo every body!!!
Well there is where i'm in troubel...
"I read Kyle Rakin's colum about this moths Lightning hacks strike twice, my interes was focus on the dd image over ssh" before this I've heard about dd but I didn't know how wonderfull (and powerfull) it is.
Next step-the do:
I start make a hole dd over my disk to a image file...
dd if=/dev/sda of=/media/paseo/imagen/imagen.img
this works fine but now...
The idea is that I want to mount this image...exactly is the root partition for later recover some files for example--like
mount -t ext3 -o loop /media/paseo/imagen/imagen.img /media/net
thet output of the error msg
mount: wrong fs type, bad option, bad superblock on /dev/loop0,
missing codepage or helper program, or other error
En algunos casos se encuentra información en syslog, pruebe
dmesg | tail o algo parecido
this is my dmesg |tail
[16563.291016] mtrr: no more MTRRs available
[25143.183670] VFS: Can't find ext3 filesystem on dev loop0.
[27605.632847] VFS: Can't find ext3 filesystem on dev loop0.
[27609.437021] VFS: Can't find ext3 filesystem on dev loop0.
[36690.146233] VFS: Can't find ext3 filesystem on dev loop0.
so I start searching in the inet
this point me at first time to
where I extract that I have to type
fdisk -l -u /media/paseo/imagen/imagen.img
the output of this is
Debe establecer cilindros.
Puede efectuar esta operación desde el menú de funciones adicionales.
Disco /media/paseo/imagen/imagen.img: 0 MB, 0 bytes
255 heads, 63 sectors/track, 0 cylinders, 0 sectores en total
Units = sectores of 1 * 512 = 512 bytes
Disk identifier: 0xb7d8b185
Disposit. Inicio Comienzo Fin Bloques Id Sistema
/media/paseo/imagen/imagen.img1 63 2152709 1076323+ 82 Linux swap / Solaris
/media/paseo/imagen/imagen.img2 2152710 15759764 6803527+ 83 Linux
from this it make me clear that there was two partitions....
AND I want to mount the second yes... my file system...
in this forum the guy Halgeir point me to ---this page http://edseek.com/~jasonb/articles/linux_loopback.html
where I read on....
and at the point where it gets interest for me (at the last page I told about) with the title "Mounting by First Extracting the Partition"
I make exact what this guy tell about (with my image paramaters) and it don't function...
At the end I make a image (alone) of my root partition /dev/sda2 and have after it mounted whithout any problem...!!!
So my question is how can I extract with dd a partition (the exactly parameters or funtions), from a hole image of a disk!!!
Thanks at all.
Fast/Flexible Linux OS Recovery
On Demand Now
In this live one-hour webinar, learn how to enhance your existing backup strategies for complete disaster recovery preparedness using Storix System Backup Administrator (SBAdmin), a highly flexible full-system recovery solution for UNIX and Linux systems.
Join Linux Journal's Shawn Powers and David Huffman, President/CEO, Storix, Inc.
Free to Linux Journal readers.Register Now!
- Server Hardening
- EnterpriseDB's EDB Postgres Advanced Server and EDB Postgres Enterprise Manager
- The Death of RoboVM
- BitTorrent Inc.'s Sync
- The Humble Hacker?
- The US Government and Open-Source Software
- Open-Source Project Secretly Funded by CIA
- New Container Image Standard Promises More Portable Apps
- ACI Worldwide's UP Retail Payments
- Canonical and BQ's Aquaris M10 Ubuntu Edition Tablet
In modern computer systems, privacy and security are mandatory. However, connections from the outside over public networks automatically imply risks. One easily available solution to avoid eavesdroppers’ attempts is SSH. But, its wide adoption during the past 21 years has made it a target for attackers, so hardening your system properly is a must.
Additionally, in highly regulated markets, you must comply with specific operational requirements, proving that you conform to standards and even that you have included new mandatory authentication methods, such as two-factor authentication. In this ebook, I discuss SSH and how to configure and manage it to guarantee that your network is safe, your data is secure and that you comply with relevant regulations.Get the Guide