Simple and cheap data recovery!

My middle step-brother, Mike, recently returned home from Iraq and is now on a month of leave before going back to his base, with the possibility of yet another deployment. Luckily he had an internet connection out there, and I was able to keep in touch with him here and there on Facebook, MySpace, and even AIM.

One day while out there he asked me if I could check out his laptop, because it was having problems booting. About two weeks later, I had his laptop and everything else back, directly from Iraq! I started the machine up, and sure enough it wouldn’t let anyone log in. After trying a few different things, I still could never get the machine to finish booting. Eventually I tried ‘chkdsk’, which failed at 50% checking the disk.

I assumed a failing hard drive, which proved to be the problem when starting to recover some of the data. But how should I go about getting this data back off? I don’t have any programs to help me with this or to help repair the drive. He has 30+ gigs of valuable documents, pictures, videos, and music.

In my previous work, I was a sysadmin, so some valuable knowledge sat in, and I got to work. I downloaded the newest version of Ubuntu. This should have NTFS read/write built into the LiveCD. Next, reformatted my iPod to Windows, and hooked everything up.

I booted the laptop the fist time hooked up to network, but for some reason, none of the LiveCD’s (Ubuntu and some others) would not recognize his network interface. So I rebooted, this time plugging in the iPod, and it mounted on the first try!

After many HOURS of copying data off, having to hit ‘skip’ to the ‘I/O failure’ prompts, I was able to recover 99% of all of his data, and now on the road to recovery with a brand new Hard Drive! I would recommend this method to anyone to save a few bucks and some time on what can usually be a very difficult process.

Listening To: ‘Secret Machines’ – Lightning Blue Eyes

A new community for the Subversion Community!

Subversion (SVN for short) is a version control system that we use daily at work. It simply allows for controlling multiple version of a project, including historical copies as well as multiple developers working on the same project.

Well, Chris has started a new community for people to share their questions, tips, recommendations, and general knowledge about this wonderful set of tools. SubversionForum.com!
Its still in the very early stages now, but we are hoping with coverage this community can really grow! Please sign up and share your knowledge (or your quest for knowledge!).

PS – I didnt get the chance to mention it before, but Chris and I also started a .net library for Subversion called DotNetSVN. We haven’t been able to work on it much due to the workload at work (I haven’t been able to contribute much code at all to it except a lot of work to get the site up and running). If you can, please join in and help contribute!

Listening To:  ‘The Song Remains The Same’ by Led Zeppelin

Adding extra IP’s to one network interface in RHL and Mac OS 10.4

When hosting some web services, it really makes sense to sometimes to have more than one IP on a machine. This is extremely useful when using SSL certs and you want to have IP-based virtual hosting.

On the Mac, this is very easy. All you have to do is

  1. Go to System Preferences -> Network.
  2. Select Network Port Configurations from the Show menu.
  3. Select the interface you want to add the extra IP to (for example, Built-in Ethernet), and click Duplicate.
  4. Now you can name it something like ‘Built-in Ethernet .YYY’ for your other IP.
  5. Hit apply.
  6. Now, in the Show menu, select the new port config you just made.
  7. Make your changes, and hit apply.
  8. Your done!

As far as doing this in RedHat Linux (or one of the RedHat based distros like Fedora Core or CentOS ), it is almost just as easy to do from the command line!

  1. Go to the /etc/sysconfig/network-scripts/ directory
    cd /etc/sysconfig/network-scripts/
  2. Copy the interface file that you want to add the IP to, and give it the same name as the current file, with ‘:0’ added (or :1, :2, depending on how many IPs are on this interface).
    cp ifcfg-eth0 ifcfg-eth0:0
  3. Edit the new file, and you only have to change a few things
    1. Change IPADDR= to your new IP address
    2. Change DEVICE= to add :0 (depending if this is the 2nd IP on that interface)
    3. remove DHCP_HOSTNAME (or set it to what it needs to be)
    4. remove the HWADDR entry
  4. Save the file that you just were working on
  5. Restart the network interfaces
    /etc/init.d/network restart
  6. Done!

Listening To: ‘March of the Pigs’ by NIN

How to update your Ubuntu Server through the command line

So, before I go and wipe my Ubuntu server to switch over to Fedora or the like, I decided to try to run some updates to see if that helped anything. To my surprise, I was running Ubuntu 5.10. To my luck, 6.10 came out yesterday!

With this machine being an older Celeron, its near impossible to get anything to work in the GUI. So most of the time I just use Terminal.app on my Mac or PuTTY on my Windows machine. I do all of my updates with ‘apt-get‘, the fun and easy to use Debian package manager. I wanted to do a little writeup on how to do operating system updates for anyone that is interested. Once the update is done, ill check out some of this samba stuff and see if it helped at all!

  1. First you need to update /etc/apt/sources.list. Just open it up with your favorite editor
    sudo vi /etc/apt/sources.list
  2. Since I was using 5.10, at the end of all the URL’s it should say ‘breezy’. You need to change all of these to ‘edgy’. Write the file out and quit.
  3. Next, we need to update the source list by using the following command
    sudo apt-get update
  4. To upgrade to the new distro, just enter dist-upgrade!
    sudo apt-get dist-upgrade
  5. It will ask you if you want to update all of these packages, just say yes. Also, I had a few times that I had to hit ‘OK’ to confirm some postfix stuff. Since im not running any mail services, I dont need to set this up. Just keep an eye on the update since these messages delay the update.
  6. You may have to force some installs/updates. If so (I had to do this), just enter
    sudo apt-get -F install
  7. Once the upgrade is complete (it took mine forever since I was also downloading a trial game AND cygwin), restart your machine
    sudo shutdown -r now
  8. Done!

Listening To: ‘Stirb nicht vor mir (dont die before I do)’ by Rammstein