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

[cobalt-users] Re: OT: Copy a drive - am I hosed?



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

> I have a drive from a Linux machine that has the usual /, /home,
> /usr, /root etc. partitions on it.   I would like to mount it on a
> new machine so that I can transfer the data over.  But I seem to be
> encountering a problem when I try that, because the drive on the
> new machine has partitions of the same names.

Create alternate mount points for the partitions on the 'bad' drive. 

So your /etc/fstab might look like this now:

/dev/hda1  /         ext2    defaults                          1 1
/dev/hda2  swap      swap    defaults                          0 0
/dev/hda3  /var      ext2    defaults,nosuid                   2 2
/dev/hda4  /usr      ext2    defaults,usrquota,grpquota,grpid  3 3

Create some directories under /mnt:

mkdir -p /mnt/altroot
mkdir -p /mnt/altvar
mkdir -p /mnt/altusr
etc

Then make entries like this in /etc/fstab:

/dev/hdc1  /mnt/altroot  ext2    defaults 0 0
/dev/hdc3  /mnt/altvar   ext2    defaults 0 0
/dev/hdc4  /mnt/altusr   ext2    defaults 0 0

etc

Change as needed for your partition names, etc.  Ensure you get your 
drive 'numbering' correct: hdc is primary drive on 2nd IDE channel, 
hdb would be slave drive on 1st IDE channel, etc.  Match the 
partitions to the correct mountpoints to avoid confusion, etc.

- -- 
Bruce Timberlake

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+QAuvvLA2hUZ9kgwRAkqHAJ9SXErUnMrcTHeXGoP7AUuoMWaDkQCfbGYd
gLUVfVNC2ur48isRasRRvYU=
=/HMf
-----END PGP SIGNATURE-----