View previous topic :: View next topic |
Author |
Message |
equilibrium Apprentice
Joined: 29 Jun 2003 Posts: 213 Location: UK
|
Posted: Wed Aug 20, 2003 8:47 pm Post subject: gentoo hdd sort of died - mirror to new ??? |
|
|
My gentoo hdd seems to be dead intermitantly atm it sounds as if the heads have crashed as it clunks. I was wandering what the best way would be to get the data from it. I was going to mirror it using ghost to a new hdd (if it holds out long enough)?!? but am unsure if it would work etc. _________________ kernel 4.15.17-1-equk | i3wm | github |
|
Back to top |
|
|
chardros Tux's lil' helper
Joined: 18 Apr 2002 Posts: 136 Location: Andromeda
|
Posted: Wed Aug 20, 2003 9:19 pm Post subject: |
|
|
How about:
dd if=/dev/hda of=/dev/hdb
Where hda is the dying drive and hdb is the new drive. |
|
Back to top |
|
|
devon l33t
Joined: 23 Jun 2003 Posts: 943
|
Posted: Wed Aug 20, 2003 10:25 pm Post subject: |
|
|
Doesn't dd require that the C/H/S on both drives be the same? If so, he could use tar to copy the data over. I had to do that when a 20GB hard drive was failing and I only have a 15 GB drive free. |
|
Back to top |
|
|
Vergo n00b
Joined: 19 Apr 2003 Posts: 42 Location: Oulu, Finland
|
Posted: Wed Aug 20, 2003 11:19 pm Post subject: |
|
|
Check the Hard Disk Upgrade Mini howto, it has few suggestions how to mirror files from one disk to another.
btw, it also says that using tar might not be the best possible way |
|
Back to top |
|
|
devon l33t
Joined: 23 Jun 2003 Posts: 943
|
Posted: Thu Aug 21, 2003 12:40 am Post subject: |
|
|
Hard Disk Upgrade Mini How-To wrote: | Previous versions of the Mini How-To stated that you could also use tar to copy the disk, but this method was found to have a bug. |
I would be interested in what the bug was. I haven't needed to copy data from a bad hard drive to a good one often (knock on wood), but I didn't have any problems with tar when I have used it. |
|
Back to top |
|
|
equilibrium Apprentice
Joined: 29 Jun 2003 Posts: 213 Location: UK
|
Posted: Fri Aug 22, 2003 5:53 pm Post subject: |
|
|
I have finally got a replacement hdd for my other one which is exactly the same . I ghosted from disk to disk but took 3 tries for it to complete successfully. It seems pretty unsuccessfull tho as I can't seem to read the fat32 partition at all, I can't mount the boot partition at all and when trying to load GRUB all I get is "GRUB" re-occuring on the screen . I can however seem to mount and read the data partition. On trying to mout the boot partition I get this error:
Code: | mount /dev/hdb1 /mnt/gentoo/boot
mount: you must specify a filesystem type
mount /dev/hdb1 /mnt/gentoo/boot -t ext2
VFS: Can't find ext2 filesystem on dev ide0(3,65)
mount: wrong fs type, bad option, bad superblock on dev/hdb1
or too many mounted file systems |
help!!?!?!
on running a disk check on the fat32 partition it seems to say everything is crosslinked and fdisk in dos says the linux partition and the fat32 are both 100% of the drive?!?! _________________ kernel 4.15.17-1-equk | i3wm | github |
|
Back to top |
|
|
equilibrium Apprentice
Joined: 29 Jun 2003 Posts: 213 Location: UK
|
Posted: Fri Aug 22, 2003 8:01 pm Post subject: |
|
|
finally got it working after a lot of messing around. I ended up copying the files from the fat32 partition as this seemed to be the one causing the trouble and had to re-format my boot partition and restore the data by copying. Then I had to chroot into the system and re-install grub and it seems to be working ok so far. I ran a "reiserfsck --fix-fixable" on the main data partition and it came up with no errors. I hope the swap partition is ok as I've not tested it in anyway. Hopefully this new drive wont do the same to me old one was only a month old _________________ kernel 4.15.17-1-equk | i3wm | github |
|
Back to top |
|
|
Robelix l33t
Joined: 21 Jul 2002 Posts: 760 Location: in a World created by a Flying Spaghetti Monster
|
Posted: Fri Aug 22, 2003 11:09 pm Post subject: |
|
|
equilibrium wrote: | Hopefully this new drive wont do the same to me old one was only a month old |
Monitor it with smartmontools (is in portage). Maybe it's only something like too high temperature (One of my maxtor-disks made strange noises at temp > 55°C, with an additional fan it works fine). _________________ mysql> SELECT question FROM life, universe, everything WHERE answer=42;
Empty set (2079460347 sec) |
|
Back to top |
|
|
equilibrium Apprentice
Joined: 29 Jun 2003 Posts: 213 Location: UK
|
Posted: Sat Aug 23, 2003 12:14 pm Post subject: |
|
|
I might try that, altho the hdd has a fan directly behind it blowing onto it so hopefully it's not a temp problem. I guess it could of been one from a bad batch or something _________________ kernel 4.15.17-1-equk | i3wm | github |
|
Back to top |
|
|
|