a hd in my server failed. I noticed when I went to SSH in and get a copy of some files in /var/www/html I tried to tar the files and I was told No, read-only file system. I restarted and tried running FSCK manually (without -a or -p) and I get inode errors, short reads, etc. I tried booting to my CentOS 53 install DVD. I do linux rescue and I get to where it wants to know where CentOS images are. I select local CD-ROM and it just spits it out at me and tells me to try someplace else. Even though I booted from the CD! I am not sure what else to do. I dont think I can mount this on my macBook to do anything. But I really need just the data from /var/www/html. I have a backup that is a week old, but I know changes were made late last week that I would like to not have to do again.... Where is my backup of the changes I made? Well my SSD drive failed in my laptop and I dont think I have them... Can anyone provide advice as to what to do next? Also, what would have caused this all of the sudden? This box has been running fine for months.
On Thursday 18 February 2010, "Slack-Moehrle" <mailinglists at mailnewsrss.com> wrote:> Also, what would have caused this all of the sudden? This box has been > running fine for months.Every hard drive will fail eventually. Some take days. Some take decades. Most fail somewhere in between those extremes. But every single one of them will eventually die. That's why backups and RAID are both good ideas. As for what to do, you can put the drive in any other linux box or boot a live CD from any distro and take a look at it. Attempts to fsck may screw it up more, though. Probably best to mount whatever's left read only and see what you can find.
Do not use fsck on faulty hardware. I would remove the drive attach it to another linux box with free storage space on a file system larger than that of the whole damaged drive. Use "ddrescue" to rebuild as much of the failed drive as possible them mount the image produced from ddrescue and copy all you can from that. Best Wishes, Steve On Thu, 18 Feb 2010, Slack-Moehrle wrote:> > a hd in my server failed. > > I noticed when I went to SSH in and get a copy of some files in /var/www/html > I tried to tar the files and I was told No, read-only file system. > > I restarted and tried running FSCK manually (without -a or -p) and I get inode errors, short reads, etc. > > I tried booting to my CentOS 53 install DVD. I do linux rescue and I get to where it wants to know where CentOS images are. I select local CD-ROM and it just spits it out at me and tells me to try someplace else. Even though I booted from the CD! > > I am not sure what else to do. I dont think I can mount this on my macBook to do anything. But I really need just the data from /var/www/html. I have a backup that is a week old, but I know changes were made late last week that I would like to not have to do again.... > > Where is my backup of the changes I made? Well my SSD drive failed in my laptop and I dont think I have them... > > Can anyone provide advice as to what to do next? > > Also, what would have caused this all of the sudden? This box has been running fine for months. > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos >-- Dr Stephen Brooks http://www-solar.mcs.st-and.ac.uk/ Solar MHD Theory Group Tel :: 01334 463735 Fax :: 01334 463748 E-mail :: steveb at mcs.st-andrews.ac.uk --------------------------------------- Mathematical Institute North Haugh University of St. Andrews St Andrews, Fife KY16 9SS SCOTLAND ---------------------------------------
2010/2/19 Slack-Moehrle <mailinglists at mailnewsrss.com>:> > a hd in my server failed. > > I noticed when I went to SSH in and get a copy of some files in /var/www/html > I tried to tar the files and I was told No, read-only file system. > > I restarted and tried running FSCK manually (without -a or -p) and I get inode errors, short reads, etc. > > I tried booting to my CentOS 53 install DVD. I do linux rescue and I get to where it wants to know where CentOS images are. I select local CD-ROM and it just spits it out at me and tells me to try someplace else. Even though I booted from the CD! > > I am not sure what else to do. I dont think I can mount this on my macBook to do anything. But I really need just the data from /var/www/html. I have a backup that is a week old, but I know changes were made late last week that I would like to not have to do again.... > > Where is my backup of the changes I made? Well my SSD drive failed in my laptop and I dont think I have them... > > Can anyone provide advice as to what to do next?Well, you can use dd_rescue to copy contents of disk to another disk and then mount it (or use expensive data rescue company)> > Also, what would have caused this all of the sudden? This box has been running fine for months.Well, do you think that computer hardware lives forever? -- Eero