First partition the hard drive. While installing ubuntu specify a givenpartition and make sure that have enough space for the other one.It should do it.