Find the answer to your Linux question:
Results 1 to 5 of 5
I've been maintaining my own Ubuntu server for about 2 years now. Recently, my old hard drive failed to boot and I decided to replace the drive. Replacing the drive ...
  1. #1
    Just Joined!
    Join Date
    Aug 2010
    Posts
    7

    Mounting Old Drive

    I've been maintaining my own Ubuntu server for about 2 years now. Recently, my old hard drive failed to boot and I decided to replace the drive. Replacing the drive now allows the system to boot. I am currently running Ubuntu Server 10.4. I also decided that I would like to try and recover my lost files from the other drive as I had some interesting PHP projects that I had been playing around with stored in my /var/htdocs from the old drive. The old hard drive is connected via SATA and is able to be mounted. The issue I am currently experiencing is the folders and files I am currently able to view does not fulfill what I am looking for. I am only capable of seeing /var/run and /var/lock. How do I configure this to allow me to access my old /var/htdocs?

  2. #2
    Linux Engineer Segfault's Avatar
    Join Date
    Jun 2008
    Location
    Acadiana
    Posts
    855
    umount the old drive and run fsck on it, to begin with.

  3. #3
    Just Joined!
    Join Date
    Aug 2010
    Posts
    7
    I've already mounted it with mount and unmounted it with umount multiple times, and I'm able to see some files and directories, but I'm wanting to access additional folders, for instance I can see what appears to be system files but I'm trying specifically to get in to /var/htdocs. I will try an fsck but I don't really think that will make a difference.
    Last edited by adabard; 08-28-2010 at 11:50 PM. Reason: Typo

  4. #4
    Just Joined!
    Join Date
    Aug 2010
    Posts
    7
    Ran a fsck, there are definitely errors on the disk, I can't do it with -a.

  5. #5
    Linux Enthusiast Kloschüssel's Avatar
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    718
    Then try it with -r and launch a good prayer to the gods? In case it doesn't work, store things in safe places like RAID arrays or across multiple machines. That most of the times safes you from data loss and may help you in the future.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...