[Watford] Ghosting a Linux HDD

walt walt at helvatron.co.uk
Tue Feb 12 17:33:15 GMT 2008


I am still struggling with this but I am becoming an expert at partioning
and mounting Linux System HDDs.

One thing I still cant get to work is the grub bootloader.  Alain gave me
some instructions which, unfortunately, I have lost.  I tried using various
instructions I picked up on the web but none if make the disk boot.  

Could I have those instructions again, please.

Many thanks, Walter

-----Original Message-----
From: watford-bounces at mailman.lug.org.uk
[mailto:watford-bounces at mailman.lug.org.uk] On Behalf Of Alain Williams
Sent: 09 February 2008 00:02
To: watford at mailman.lug.org.uk
Subject: Re: [Watford] Ghosting a Linux HDD

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>

_______________________________________________
Watford mailing list
Watford at mailman.lug.org.uk
https://mailman.lug.org.uk/mailman/listinfo/watford




More information about the Watford mailing list