[Watford] Ghosting a Linux HDD
Alain Williams
addw at phcomp.co.uk
Sat Feb 9 00:02:16 GMT 2008
On Fri, Feb 08, 2008 at 09:16:27PM -0000, walt wrote:
> I'll go with Alain's instructions first and then I'll have a go at Yvan's
> way of doing things.
>
> OK, I have partitioned a new drive (/dev/hda), then setup a folder named
> new-drive (in /dev/sda2) and now I want to mount a partition on the new
> drive: /dev/hda2.
>
> The command 'mount /dev/hda2 /dev/sda3/new-drive' keeps generating error:
> '/dev/sda3/new-drive' is not a directory
You seem to be using /dev/sda & /dev/hda interchangably, they are not,
the first refers to a SCSI disk, the second and IDE disk.
What you should have done is something like:
fdisk /dev/hda
Create partitions: hda1, hda2, ... as per what you are copying from.
mke2fs -j /dev/hda1 # This will prob be a 100MB /boot partition
mke2fs -j /dev/hda2 # I will assume that this is your root file system
Maybe more partitions, depending on what you are copying.
mkdir /mnt/NewSystem
mount /dev/hda2 /mnt/NewSystem
mkdir /mnt/NewSystem/boot
mount /dev/hda1 /mnt/NewSystem/boot
If the above doesn't make sense to you, try reading:
http://www.linuxplanet.com/linuxplanet/tutorials/4232/1/
> And I have no idea why because it is. I have copied stuff into it from a
> console and from KDE. I have also checked the permissions which are 'full
> control' eg read write modify etc etc.
--
Alain Williams
Linux Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer.
+44 (0) 787 668 0256 http://www.phcomp.co.uk/
Parliament Hill Computers Ltd. Registration Information: http://www.phcomp.co.uk/contact.php
Chairman of UKUUG: http://www.ukuug.org/
#include <std_disclaimer.h>
More information about the Watford
mailing list