Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

On my linux box I have a block device (/dev/sda5) that has been partitioned inside by a virtual machine. So, when I look inside with fdisk /dev/sda5, I see:

sda5p1 sda5p2

and so on. Is it possible to mount them on my host system?

Thanks in advance.

share|improve this question
    
Which OS? My XP workstation doesn't have a /dev/sda5. My OpenBSD box neither and so are the AIX servers I'm working on... –  Benoit Apr 22 '10 at 8:44
    
It's definitely a *nix. probably linux that's the first extended partition on the first drive. so if you aren't using that many partitions on you *nix systems you wouldn't have one. –  xenoterracide Apr 22 '10 at 9:05

1 Answer 1

up vote 2 down vote accepted

Use kpartx to generate device mapper nodes for each, then mount them individually.

share|improve this answer
    
Wow, great!!! It works. Thanks a lot. –  facha Apr 22 '10 at 9:06

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.