[svlug] mounting a partition in the middle of a device dumped to a file

Marc MERLIN marc_news at merlins.org
Tue Aug 13 14:30:05 PDT 2002


So, I have a disk that is dded to a file:
-rw-r--r--    1 root     root     32003112960 Aug 10 08:45 wholedisk
gargamel:/home/bigraid1/backup/disk# fdisk ./wholedisk
(...)
Command (m for help): p

Disk ./wholedisk: 0 heads, 0 sectors, 0 cylinders
Units = cylinders of 1 * 512 bytes

      Device Boot    Start       End    Blocks   Id  System
./wholedisk1   *        64   8391600   4195768+   b  Win95 FAT32
./wholedisk2       8391601   8663760    136080   83  Linux
./wholedisk3       8663761   8935920    136080   83  Linux
./wholedisk4       8935921  62506080  26785080    f  Win95 Ext'd (LBA)
./wholedisk5       8935984  13033440   2048728+  83  Linux
(...)

If it were a partition, I would be able to mount it with
mount -o loop ./wholedisk /mnt/mnt

But how do I mount a partition inside of that?

Marc
-- 
"A mouse is a device used to point at the xterm you want to type in" - A.S.R.
Microsoft is to operating systems & security ....
                                      .... what McDonalds is to gourmet cooking
Home page: http://marc.merlins.org/   |   Finger marc_f at merlins.org for PGP key



More information about the svlug mailing list