if %errorlevel% gtr 0 ( 
netsh advfirewall firewall add rule name="Open port 22" dir=in action=allow protocol=TCP localport=22 
) 
 
cd C:\ 
6.7  How to access to the inactive partition 
 
Mount points must be mounted for all partitions from inactive partition you need : 
Example of mounted active partitions 
Filesystem                           1K-blocks      Used Available Use% Mounted on 
/dev/mapper/vg_root_01-lv_root        30472188  12905676  15993648  45% / 
/dev/mapper/vg_common-lv_var_backup  111731360  23745620  82218572  23% /var/backup 
/dev/mapper/vg_common-lv_libvirt     101573920  73668692  22662348  77% /mnt/virtualmachines 
/dev/mapper/vg_root_01-lv_logs        20314748    480316  18785856   3% /logs 
/dev/mapper/vg_root_01-lv_drbd2       10157368    335024   9298056   4% /var/data/postgresql5433 
/dev/mapper/vg_root_01-lv_postgresql  10157368    255256   9377824   3% /var/data/postgresql5432 
/dev/mapper/vg_root_01-lv_drbd4         126931     11628    108750  10% /var/data/moh 
/dev/mapper/vg_root_01-lv_drbd3       10157368   1029840   8603240  11% /var/data/oamp 
/dev/mapper/vg_root_01-lv_drbd1       21711396    204968  20385764   1% /var/data/ics-group 
/dev/mapper/vg_root_01-lv_slides      14474272    170148  13557016   2% /var/data/slides 
/dev/mapper/vg_root_01-lv_ofs          2031440     68668   1857916   4% /var/data/ofs 
/dev/cciss/c0d0p1                       497829     44920    427207  10% /boot 
tmpfs                                  8205100         4   8205096   1% /dev/shm 
 
The global active partition here is  : vg_root_01 
root@pvice4 ~]# mount /mnt/inactive_partition/ 
this action mounts only the root partition of the inactive partition 
The different mounted point are : 
/dev/mapper/vg_root_01-lv_root 
/dev/mapper/vg_root_01-lv_logs             /logs 
/dev/mapper/vg_root_01-lv_drbd2            /var/data/postgresql5433 
/dev/mapper/vg_root_01-lv_postgresql       /var/data/postgresql5432 
/dev/mapper/vg_root_01-lv_drbd4            /var/data/moh 
/dev/mapper/vg_root_01-lv_drbd3            /var/data/oamp 
/dev/mapper/vg_root_01-lv_drbd1            /var/data/ics-group 
/dev/mapper/vg_root_01-lv_slides           /var/data/slides 
/dev/mapper/vg_root_01-lv_ofs              /var/data/ofs 
 
Ex : This is an example how to retrieve data from inactive partition 
Logs => [root@pvice4 ~]# mount /mnt/inactive_partition/logs 
Moh =>  [root@pvice4 ~]# mount /mnt/inactive_partition/var/data/moh 
Slides => [root@pvice4 ~]# mount /mnt/inactive_partition/var/data/slides 
Always remove the mount points and ultimately the root partition 
 
Nota : umount: /mnt/inactive_partition: device is busy   ===è inactive partition still busy : type the command 
mount to discover the pending mounted partition 
/dev/mapper/vg_root_02-lv_root on /mnt/inactive_partition type ext3 (rw) 
/dev/mapper/vg_root_02-lv_logs on /mnt/inactive_partition/logs type ext3 (rw)