I just erased a hard drive from my old system and would like to install Ubuntu on it along with PHP, RoR, MySQL and Apache to be my development environment. My primary HDD is Win7.
If I do the majority of my work in Win7 and save to the 2nd HDD (Ubuntu), can I access my development sites on Ubuntu as if it were in a separate box? Would all my paths be by drive letter instead of by IP?
You would have to use virtualization to accomplish this. Adding another hard drive doesn’t automatically give you any IPs. You still have just your regular outside-facing IP (LAN or WAN) and your loopback (127.0.0.1).
You can read these VirtualBox instructions on setting up an internal network, with each virtual guest having its own local IP. Other virtualization software has similar capabilities.
EDIT: If you just want to serve from a directory on D, you can customize DocumentRoot to be e.g.