Mounting two (!) devices

Topics about disk partitioning (fdisk, parted, gparted, partimage), Volumes Management (lvm, evms, dmraid), Storage, file systems, ...
Post Reply
Photogregor
Posts: 2
Joined: 12 Aug 2010, 10:14

Mounting two (!) devices

Post by Photogregor » 12 Aug 2010, 10:18

Hi,

I'm trying to backup a windows pc on an external USB drive as it is described here:

http://www.sysresccd.org/Sysresccd-manu ... s_computer

First I mount the OS partition on the Windows machine:

ntfs-3g -o ro /dev/sda1 /mnt/windows

Then I try to mount the external USB drive:

ntfs-3g -o ro /dev/sdb1 /mnt/windows

This works - but now they have the same name ("windows") and are displayed in Midnight Commander within the same directory (/mnt/windows). How can I copy the content of one disk to another, while they are presented withing the same directory??

I also tried to mount USB drive with different name:

ntfs-3g -o ro /dev/sda1 /mnt/USB-Drive

But this does not work, because the system does not find "USB-Drive". I have to confess that I don't understand this behaviour. Could someone give a hint on how to mount two devices so that you can copy from one to the other?

Thanks for your help! I really would like to use this live linux version as my rescue system, it seems to be really fast compared to others.

Regards,
Tim

gernot
Posts: 1131
Joined: 07 Apr 2010, 16:19

Re: Mounting two (!) devices

Post by gernot » 12 Aug 2010, 13:19

You need a directoty as mountpoint.

Use
mkdir /mnt/usbdisc
ntfs-3g -o ro /dev/sdb1 /mnt/usbdisc

If you want to copy data to one of this drives dont use "-o ro" for it.

Gernot

Photogregor
Posts: 2
Joined: 12 Aug 2010, 10:14

Re: Mounting two (!) devices

Post by Photogregor » 12 Aug 2010, 14:46

Short and accurate as it should be. :-)

Thanks a lot!

Post Reply