Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: Reclaim XP Partition

  1. #1
    Join Date
    Feb 2008
    Location
    Cape Town, South Africa
    Beans
    155
    Distro
    Ubuntu 14.04 Trusty Tahr

    Reclaim XP Partition

    I have what I would assume to be a common issue.
    After dual booting Ubuntu and XP for some months, I have taken the plunge and delested my XP installation and want to dedicate my 40Gb HDD to Ubuntu.
    I'd also like to separate my \ and \home partitions.
    My problem is that
    a. my XP partition has been "shrunk" over time as I claimed more & more space for Ubuntu apps and data and is now too small to copy my Ubuntu partition into;
    b. my Hardy installation is fully updated, and tweaked for my various peripherals, so I don't really want to do a fresh install; and
    c. I didn't defrag the XP partition before deleting critical windows folders, so the partition may well be highly fragmented. Can I check/fix this? I have reformated this partition from NTFS to ext3 so I assume this is moot?

    I do have an External HDD to which I can copy/backup any partitions and I am also happy to do a fresh Intrepid install, but I'd really like to keep my current /home intact if possible.

    Please advise...?
    But my heart is not weary, it's light and it's free
    I've got nothin' but affection for all those who've sailed with me. Mississippi: Bob Dylan
    Registered Ubuntu User # 23094

  2. #2
    Join Date
    Apr 2006
    Location
    Green Bay, WI, USA
    Beans
    399
    Distro
    Kubuntu 8.04 Hardy Heron

    Re: Reclaim XP Partition

    OK, if you have already formatted the xp partition to ext3, then problems #1 and 3 are moot.
    As for #2, that's not a problem either. You can move your /home to the old xp partition if you'd like (that seems reasonable to me since you just freed up that partition). This way you can keep your current installation AND make a separate /home.

    Here's how I made a separate /home:
    http://ubuntu.wordpress.com/2006/01/...own-partition/

    It's pretty easy. The basic procedure is to copy over your /home files to the new partition, then edit your /etc/fstab file to make the new partition mount as /home.

    Take your time and read the comments in that link, too. Many people have some really helpful comments there.

    psychocats also has a how-to:

    http://www.psychocats.net/ubuntu/separatehome

    Here's a few commands you can run in a terminal to find out what partitions you have and where they are currently mounted:

    sudo fdisk -l
    df -h
    mount
    A computer without Microsoft is like a chocolate cake without mustard.

  3. #3
    Join Date
    May 2007
    Location
    Pleasant Hill, California
    Beans
    315
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Reclaim XP Partition

    Also, if the partiton is too small for your /home directory (which could be bigger than the rest of the drive), you can make the old XP partition simply be a directory mounted to /home until you figure out how to best divvy things up.

    I had some extra space on a drive that I made into a misc directory, mounted as /home/misc. But I already had a separate /home.

    Using gparted, you can shrink partitions without losing data, so you don't need to copy the data off first.

  4. #4
    Join Date
    Feb 2008
    Location
    Cape Town, South Africa
    Beans
    155
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Reclaim XP Partition

    Quote Originally Posted by linfidel View Post
    Also, if the partiton is too small for your /home directory (which could be bigger than the rest of the drive), you can make the old XP partition simply be a directory mounted to /home until you figure out how to best divvy things up.

    I had some extra space on a drive that I made into a misc directory, mounted as /home/misc. But I already had a separate /home.


    Us ing gparted, you can shrink partitions without losing data, so you don't need to copy the data off first.
    Yep... that is exactly my problem.
    Partition 1 (ex XP) 10Gb Empty ext3
    Partition 2 Ubuntu 27Gb 23Gb used ext3
    Partition 3 Swap 1Gb
    So ideally I'd like to move \ to the 1st partition & leave \home on the 2nd partition. I've backed up \ & \home to an external HDD using Quickstart..
    I'm thinking fresh Intrepid installation, separate \home
    partition and then restore \home to that partition using Quickstart.
    Does that make sense or am I overcomplicating the problem?
    .
    But my heart is not weary, it's light and it's free
    I've got nothin' but affection for all those who've sailed with me. Mississippi: Bob Dylan
    Registered Ubuntu User # 23094

  5. #5
    Join Date
    Feb 2008
    Location
    Cape Town, South Africa
    Beans
    155
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Reclaim XP Partition

    Thanks very much for the advice, links and help. My only remaining problem is the relative size of the 2 partitions (ex XP partition=10Gb, current Ubuntu Partition=27Gb of which 22Gb is used).
    I've backed everything up to an external USB HDD so I'm considering a fresh Intrepid installation, designating my 27Gb partition as \home and the 10Gb partition as \. Thereafter restoring the backed-up \home to the 27Gb partition and fixing fstab as instructed.
    Does that make sense to get around the partition size problem?
    Alternatively... should I temporarily transfer extra data to my external drive, resize partitions, move \ and \home to the 1st partition, follow instruction to separate \home back to the "old" partition, and then copy extra data back, in other words leaving my currently installed and updated \ on the 10Gb ex XP partition?
    But my heart is not weary, it's light and it's free
    I've got nothin' but affection for all those who've sailed with me. Mississippi: Bob Dylan
    Registered Ubuntu User # 23094

  6. #6
    Join Date
    Apr 2007
    Beans
    3,114
    Distro
    Ubuntu

    Re: Reclaim XP Partition

    You are going to reinstall anyway. In your case, I would go for a single ubuntu system partition and a swap: your hard drive is too limited in space to conveniently divide it into partitions.

  7. #7
    Join Date
    Feb 2008
    Location
    Cape Town, South Africa
    Beans
    155
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Reclaim XP Partition

    Mmm... I hear you.
    What about the principle of a separate \home partition so that new distros or updates could be installed without losing data?
    Or would a /home backup & restore approach solve that problem more elegantly?
    But my heart is not weary, it's light and it's free
    I've got nothin' but affection for all those who've sailed with me. Mississippi: Bob Dylan
    Registered Ubuntu User # 23094

  8. #8
    Join Date
    Apr 2007
    Beans
    3,114
    Distro
    Ubuntu

    Re: Reclaim XP Partition

    What about the principle of a separate \home partition so that new distros or updates could be installed without losing data?
    Practically, this will mostly work, especially with single user systems. However, you should know that Linux is not designed for this. If an application in a new distro changed its config files slightly, there will be a problem with that application.

    Also, you should not rely on this as a way to keep your user data (=documents, spreadsheets, pictures, ...) safe. You need a good and up to date backup of these data at any time. Your user data are unique and if lost, lost forever. An operating system is free and installed and mostly configured in less than two hours (there are notable exceptions).

    You have a hard drive with limited space, in which case I would not hesitate and stick to a single partition. Do not backup your home (= user data + application configuration settings). Do backup your /home/$USER/Documents, /home/$USER/Pictures, and selected application data such as evolution or thunderbird mail.

    That is just my opinion and advise for your case. Other ways are also possible and are equally valid with their advantages/drawbacks, or possibly added complexity. Linux is a free and highly configurable OS after all.

  9. #9
    Join Date
    May 2007
    Location
    Pleasant Hill, California
    Beans
    315
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Reclaim XP Partition

    I somewhat concur with vanadium; if you don't have lots of space, you'll be wasting some with two partitions. 10 GB is more than enough for the distro without /home, so you'll waste half that space. If you have plenty of space, that doesn't matter. If you don't have lots of media files, though, you'd probably be fine, especially if you make the XP partition smaller.

    When I upgrade, I only format the system partition, and keep /home. I have had no problems with this. I think linux is designed to be used this way, and there are usually no conflicts with new versions. If the configuration file format changes, they usually change the name of the file or directory. It does require a little more attention to what's used and what's no longer used.

    I have lots of customizations that I don't like to redo when I upgrade. I use bash at work and home, and there are a lot of things I like to have available on both. It's nice to be able to upgrade, and have most of the same settings available.

  10. #10
    Join Date
    Apr 2007
    Beans
    3,114
    Distro
    Ubuntu

    Re: Reclaim XP Partition

    I think linux is designed to be used this way
    It is not, but it usually works fine nevertheless.

Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

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