NAS HDD Repair under Linux

Pukmeister

Well-known member
UKGSer Subscriber
Joined
Apr 17, 2005
Messages
21,130
Reaction score
8,632
Location
Hampshire
Hi Chaps,


the 1Tb drive in my NAS is playing up, I suspect the sectors on the HDD that run the OS within the NAS have become corrupted. It has been running non-stop since about 2009.

I have removed the HDD and connected it via USB dock to Windoze and it sees the drive with all its partitions in Storage management. Because it runs a Linux EXT2 file system I have no disk repair/recovery options.

Any Linux guru's know what disk repair untilities exist under Linux? I am considering booting from a Linux CD then accessing the 1Tb drive and trying to repair it if possible.

I am currently rebuilding the NAS operating system using an old 250Gb SATA drive just to test the NAS hardware works (which I think it will) once the firmware formats and then installs to disk.

If I can't repair the OS on the 1Tb drive I will try to back up all the media files from it to my PC (if recoverable). Theres a lot of content on there that my teenage son watches on his iPad over WiFi and hes gutted.

EDIT: Could be just the excuse I need for an upgraded NAS with bigger HDD's.
 
On a linux box you'll need to find the names of the partions (something like /dev/sda1) and then run fsck on the parition.

"man fsck" will tell you about the options.

PeterO
 
Thanks Peter, help appreciated. I hope the drive is OK and its just the NAS hardware that is dead.

I tried to reinstall the OS to the Synology NAS on a spare drive last night, but it formats the drive then crashes on installing firmware with Error Code 10 (whatever that is).

I decided to upgrade today and bought a DS212j with a 2TB WD Red drive, I shall try the easy option of putting the old 1Tb drive into the NAS alongside the new drive once configured, and see if I can access all the old media and backups on it from my Macbook.
 
Ubuntu has a Disk Utility function that allows you to check and repair a HDD. If you booted from a LiveCD you should be able to use it. The Repositories also have several others that you could use but not sure if that's available using a LiveCD.
 
Five hours in and only at 84% with creating the volume on the new 2Tb disk. Slow going. Hope to connect the old 1Tb drive to the NAS via USB and see what's what before diving in with Linux, but pretty sure it won't be easy either way. About to download Ubuntu.....might also give Ext2fsd a try and see if I can't just mount the old drive under Windows and drag and drop all the media folders to the new NAS drive over the network.
 


Back
Top Bottom