Switching Linux Location using ghost?

wjsulliv

Senior member
May 29, 2001
970
0
0
Ok, I just got an additional hard drive and would like to ghost my curretn one and then reorganize it.

Currently I have the following:
c: XP Pro
d: Win Me
e: Nothing
f: (well not quite f: but in the location that win would have found f:) Linux swap and Mandrake 8.1

I would like to go to just XP Pro and Mandrak. I.e. just keep the c: and the f:, while adding an additional hard drive. I.e. XP Pro would again be on c:, but Linux would be on d:.

Is there a way to use norton ghost 2002 (which I already have) to ghost the two partitions and then just put them back on the resized c: and d:?

I know XP Pro will work fine doing this as its partition did not change, only the size of the partition changed. However, what about linux? It would move from hda6 to something else (hda2?). Can I edit this somewhere or would I have to reinstall linux?

I understand I could always make a tiny (<5 MB) d: and an e:, and put linux right back were it is...
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
/etc/fstab holds the information on the partitions in linux. Take a look at that file, you would have to edit it if the partitions changed.
 

Barnaby W. Füi

Elite Member
Aug 14, 2001
12,343
0
0
i recently partitioned, i had this beforehand:
hda1/C: - win2k - ntfs
hda5 - /
hda6/E: - windows programs - ntfs
hda7/F: - fat32 data partition
hda8 - linux swap
hda9 - /home

i backed up everything i wanted from C: and E: onto F:, and then tarred up / and /home (tar zcvfl) and put the tarballs on F:, booted to mandrake install CD, used its partitioner to kill E:, make C: a bit bigger (now it holds programs too) and made / and /home double and triple respectively. so now i had:

hda1/C: - win2k fat32 (so i can write to it from linux)
hda5 - /
hda6/F - fat32 data partition
hda7 - linux swap
hda8 - /home

i now rebooted, installed win2k onto C:, got that up and running, and then booted from a debian install CD (it has vfat support and tar and gunzip), mounted my soon to be root and home partitions, and moved my root.tar.gz and home.tar.gz to their respective partitions and gunzipped them and untarred them. rebooted from debian CD and at the boot prompt typed:

rescue root=/dev/hda5

it booted up, and i ran lilo and edited fstab.

next reboot, and everything booted up as it did before the whole ordeal.

however i do recommened backing up to CD's not other partitions, just in case the partitioner fubar's your hard drive. i am unemployed and unfortunately cant afford CDR's right now.....:(

i realize your situation is a bit different, but hopefully some of this will be useful.