[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] can the root password be recovered from a DomU



Assuming your image file has been partitioned, you'll need to specify the offset to the start of the partition you want to mount. Otherwise you're trying to mount the partition table as a filesystem, which is why you see the "must specify a filesystem type" error.

What you want (assuming you want the first partition, which starts at block 62 * 512 bytes/block) is:

mount -o loop,offset=$((62*512) mydisk.img /mnt

A few quick references:
http://darkdust.net/writings/diskimagesminihowto
http://www.openclose.it/creare_e_usare_un_disco_immagine.do


Kevin McKeon wrote:
Just curious if anyone knows this. If you loose the root password on a Linux box, you can just boot from CDRom, mount the root partition and edit /etc/shadow.
Is it possible to do something similar with a DomU.

I tried:
mount -o loop mydisk.img /mnt
but I got an error saying something like "you must specify a filesystem type" mount -o loop -t ext3 mydisk.img /mnt does NOT work either (I've also tried moving the '-t ext3' part but no go)

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.