Need to migrate data from old HDD
Hi all,
I had a file system error on an old hdd, i now have a new hdd in my server, however i want to migrate the data from my old hdd which is attatched, and i'm completely lost as what to do :( The old drive is on the system as /dev/hdc Can anyone give me a run through on what to do please? TIA Jake |
you mount a partition at a mountpoint, access the hdd via the mountpoint and copy data out ont the new hdd...
for this you will only need max 4 commands (i assume) sfdisk -l #that is a lowercase L use this to find out which partition of hdc you need to mount mount use this to mount the old hdd at a mountpoint cd use this to access the mountpoint (the directory under which your old hdd is now accessable) and finaly cp stands for copy :-) if you need help for either of these commands use man: man <commandname> ie: man mount |
Hi Nathanael,
Thanks for the reply. I've mounted it: "mount" returns this for the hdd: /dev/hdc on /tmp/foo type ext2 (rw) However, i can't cd to it, it says it's not a directory Jack |
that is because /dev/hdc is your entire drive... but you need to mount a partition, that is why i mentioned "sfdisk -l" because this will give you a more precise overview of what partition you are looking for, example:
Code:
fdisk -l output: mount /dev/hda3 /mnt/foo |
mount to /mnt this directory is exactly for that purpose
mnt for mount /tmp is only for temporary stuff... tmp (short for temp) for temporary :-) |
Hi,
Ok i've done that, now i've got /mnt/foo with just lost+found hehe. Mounted ok, but sfdisk -l doesn't return a /dev/hdc option fdisk -l returns it, but says Disk /dev/hdc: 80.0 GB, 80026361856 bytes 16 heads, 63 sectors/track, 155061 cylinders Units = cylinders of 1008 * 512 = 516096 bytes Disk /dev/hdc doesn't contain a valid partition table Jake |
what does fdisk -l give you?
or try using part /dev/hdc hit p for the part. table and hit q to exit |
fdisk -l returns:
Code:
[root@*]# fdisk -l Part doesn't do anything Jake |
Quote:
but unless you have a backup of you parition table, i currently assume you dont, you will not be able to retrieve any data at all! (that is waht i think) another bet woult be to google for 'doesn't contain a valid partition table' sorry about that. |
the old hdd isn't bootable unfortuantely.
Ah well, nevermind THanks for your help though! much appreciated :) Jack |
All times are GMT -5. The time now is 12:04 AM. |