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

Thread: Dual boot with Win XP, couple questions

  1. #1
    Join Date
    Aug 2010
    Location
    Motown
    Beans
    50
    Distro
    Ubuntu 10.04 Lucid Lynx

    Dual boot with Win XP, couple questions

    I'm about to install Ubuntu on an older computer along side XP, and have a few questions, and wouldn't mind some confirmation of the wisdom of my plan.

    1. I've been reading about the Master Boot Record. Will this be altered by the Ubuntu installation to give the choice of which OS to boot on start-up?

    I'm working with a 160GB HD. It's got two partitions: sda1 fat32 4GB with 3GB used (Compaq recovery), and sda2 ntfs 145GB with 85GB used (Windows). I plan to shrink sda2 from 145GB to 100GB or so.

    2. Is Gparted the best tool for shrinking this partition, or is it better to use window's disc manager?

    In addition to non-partitioned space, this will leave around 50GB free. I then plan to allocate 37GB of that in the following logical partitions on installation with ubiquity:

    /boot 100mb
    /root 5gb
    (swap) 2gb
    /home 15gb
    /tmp 1gb
    /usr 3gb
    /var 10gb

    I'll be the only user. And this system will be primarily a php development environment - sort of as a backup to my newer system, a place to experiment with Linux, and a practice run before installing Ubuntu on my newer system.

    3. Does this sound reasonable?
    Last edited by horseatingweeds; November 27th, 2010 at 01:08 PM.

  2. #2
    Join Date
    Jun 2006
    Location
    UK
    Beans
    Hidden!
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: Dual boot with Win XP, couple questions

    Quote Originally Posted by horseatingweeds View Post
    1. I've been reading about the Master Boot Record. Will this be altered by the Ubuntu installation to give the choice of which OS to boot on start-up?
    Yes. grub stage 1 will be written to the MBR. Some more grub code will be written to the embedding area, which is the gap between the partition table and the first partition. But the rest of grub - including stage 2 and the grub.cfg file - will be on your root partition.

    Quote Originally Posted by horseatingweeds View Post
    I'm working with a 160GB HD. It's got two partitions: sda1 fat32 4GB with 3GB used, and sda2 ntfs 145GB with 85GB used. I plan to shrink sda2 from 145GB to 100GB or so.

    2. Is Gparted the best tool for shrinking this partition, or is it better to use window's disc manager?
    With Windows XP it is generally OK to shrink the C: partition with Gparted. There are reports of occasional problems with Vista and Windows 7, so with those two it's probably better to use Windows own disk manager. Does XP have a disk manager capable of shrinking the C: partition? I wasn't aware of this.

    Quote Originally Posted by horseatingweeds View Post
    In addition to non-partitioned space, this will leave around 50GB free. I then plan to allocate 37GB of that in the following logical partitions on installation with ubiquity:

    /boot 100mb
    /root 5gb
    (swap) 2gb
    /home 15gb
    /tmp 1gb
    /usr 3gb
    /var 10gb
    That is - in my view - unnecessarily complex. A separate swap is routine. A separate /home is a good idea. Some people like to have a separate boot - there are pros and cons, and the merits of a separate boot could be debated. But why do you think separate /tmp, /usr and /var partitions would be a good idea? For a home system that's a very inefficient of disk drive space. When you refer to '/root', do you mean the root partition (properly referred to as '/') or the root home directory? Either way, it's too large if your /usr is going to be separate. The /usr directory is always the largest so if you're going to put /usr, /var and /tmp in separate partitions, your / partition doesn't need to be that large at all.

    Go for a separate /home and swap, and have a separate boot if you really think that's a good idea, but I suggest you put everything else in one / partition.
    Ubuntu 20.04 Desktop Guide - Ubuntu 22.04 Desktop Guide - Forum Guide to BBCode - Using BBCode code tags

    Member: Not Canonical Team

    If you need help with your forum account, such as SSO login issues, username changes, etc, the correct place to contact an admin is here. Please do not PM me about these matters unless you have been asked to - unsolicited PMs concerning forum accounts will be ignored.

  3. #3
    Join Date
    Aug 2010
    Location
    Motown
    Beans
    50
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Dual boot with Win XP, couple questions

    Thanks coffeecat

    Is it wise or possible then, to backup the MBR, in case something goes awry?

    According to this article: https://help.ubuntu.com/community/Ho...dowsPartitions Windows disc manager can shrink the C: partition. The article also seems not to favor either Gparted or disc manager for this job. It does say Gparted can safely shrink C: without first fragmenting it, which is interesting. However, looking at disc manager on xp now, I don't see how to shrink anything...

    Yes, by 'root' I mean /

    My reasoning for a separate /usr partition is that /usr doesn't change often, and could use ext2, in addition to it being a good practice for purposes of exporting users and other things I won't be doing any time soon.

    /var changes frequently, so I understood it to be a good practice to keep it separate as well, to prevent fragmentation.

    The boot partition also changes infrequently, and I've read that many machines prefer the boot partition to be near the beginning of the disc - which reminds me of another question I had: Will this be a concern on a dual boot system, Ubuntu's boot files not being at the beginning, rather towards the end, even right after the windows stuff?

    I can't remember my reasoning for /tmp... I must have read something advocating it. Perhaps because it changes frequently too.

    Regardless, I'm not vested in any idea and am open to advice. Would this then be a wiser configuration?

    /boot 100mb
    / 15gb
    (swap) 2gb
    /home 15gb

  4. #4
    Join Date
    Jun 2006
    Location
    Nux Jam
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

  5. #5
    Join Date
    Jun 2006
    Location
    UK
    Beans
    Hidden!
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: Dual boot with Win XP, couple questions

    Quote Originally Posted by horseatingweeds View Post
    Is it wise or possible then, to backup the MBR, in case something goes awry?
    You could with dd, but it's easy enough to restore the Windows bootloader with a Win XP install disc, with lilo from the live CD, with supergrubdisk and several other utilities.

    Quote Originally Posted by horseatingweeds View Post
    According to this article: https://help.ubuntu.com/community/Ho...dowsPartitions Windows disc manager can shrink the C: partition.
    I cannot see where it says that the XP disc manager can shrink the C: partition. I believe this was introduced with Vista.

    Quote Originally Posted by horseatingweeds View Post
    My reasoning for a separate /usr partition is that /usr doesn't change often, and could use ext2...
    Oh yes it does. Every time you apply system or app updates or install something. Ext2 would be bad idea.

    Quote Originally Posted by horseatingweeds View Post
    .... , in addition to it being a good practice for purposes of exporting users and other things I won't be doing any time soon.
    The /usr directory is nothing to do with user accounts. It's where installed apps, libraries, utilities, etc are stored.

    Quote Originally Posted by horseatingweeds View Post
    /var changes frequently, so I understood it to be a good practice to keep it separate as well, to prevent fragmentation.
    Fragmentation is not an issue on Linux filesystems, unless more than 90% full.

    Quote Originally Posted by horseatingweeds View Post
    The boot partition also changes infrequently, and I've read that many machines prefer the boot partition to be near the beginning of the disc
    A theoretical rather than a practical concern.
    Ubuntu 20.04 Desktop Guide - Ubuntu 22.04 Desktop Guide - Forum Guide to BBCode - Using BBCode code tags

    Member: Not Canonical Team

    If you need help with your forum account, such as SSO login issues, username changes, etc, the correct place to contact an admin is here. Please do not PM me about these matters unless you have been asked to - unsolicited PMs concerning forum accounts will be ignored.

  6. #6
    Join Date
    Aug 2007
    Location
    a puddle in Manchester
    Beans
    9,198
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Dual boot with Win XP, couple questions

    When I had XP installed I used GParted Live CD to resize the C: drive. I don't believe it can be done from within XP iirc.
    MacBook Pro 10,1 retina

  7. #7
    Join Date
    Feb 2008
    Beans
    5,078
    Distro
    Xubuntu 16.04 Xenial Xerus

    Re: Dual boot with Win XP, couple questions

    If you're doing mostly web development, I would be tempted to put /var on a logical partition. Unless the site includes videos, 10 GB is a HUGE web site! A friend runs a site with hundreds of pages, dozens of small videos and a relatively small number of images (maybe a couple of hundred), and the whole site is around 5 GB.

  8. #8
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: Dual boot with Win XP, couple questions

    Herman does not like anything separate and I have reverted to keeping /home in /, but have all my data in /data or a shared NTFS partition.

    With desktops there is no reason to have separate system partitions:

    Herman on advantages/disadvantges of separate system partitions post #3
    http://ubuntuforums.org/showthread.php?t=1410392
    UEFI boot install & repair info - Regularly Updated :
    https://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  9. #9
    Join Date
    Oct 2009
    Location
    Elgin, IL USA
    Beans
    3,363
    Distro
    Ubuntu 16.10 Yakkety Yak

    Re: Dual boot with Win XP, couple questions

    2 things you probably want to do before shrinking XP (which works fine with gparted from live/install CD or USB). Defragment to move files down, and disable virtual memory (which cannot be moved) I think from Control Panel > System > Advanced. Make a note of virtual memory settings before disabling it. You have to reboot after disabling virtual memory to have it take effect.

    Once you resize Windows, you could create the other partitions you want for Linux with gparted.

    After resizing an ntfs partition, gparted will mark it as dirty so Windows will chkdsk it when it boots. So after resizing it, you may want to reboot and let that happen just to make sure that is still functioning. You could re-enable virtual memory at that point.

    Then install Ubuntu manually selecting the partitions you created for it. But don't make so many partitions without knowing what you need, or you will just end up short of space on one while having loads of unused space on another.

    PS: Back in 2004 when I did not do anything before trying to shrink WinXP I could only shrink it 24 GB on a 200 GB drive. But more recently when I discovered Ubuntu just before 9.10 was released, by defragging and disabling virtual memory, I could have freed up more than 150 GB if I thought I needed that much.
    Last edited by efflandt; November 27th, 2010 at 09:56 PM.

  10. #10
    Join Date
    Aug 2010
    Location
    Motown
    Beans
    50
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Dual boot with Win XP, couple questions

    Thanks everyone - new information, confirmation, and information that contradicts my earlier information - which is more often a good thing, unless you're in a hurry, and I'm not.

    Quote Originally Posted by efflandt
    2 things you probably want to do before shrinking XP (which works fine with gparted from live/install CD or USB). Defragment to move files down, and disable virtual memory (which cannot be moved) I think from Control Panel > System > Advanced. Make a note of virtual memory settings before disabling it. You have to reboot after disabling virtual memory to have it take effect.

    Once you resize Windows, you could create the other partitions you want for Linux with gparted.

    After resizing an ntfs partition, gparted will mark it as dirty so Windows will chkdsk it when it boots. So after resizing it, you may want to reboot and let that happen just to make sure that is still functioning. You could re-enable virtual memory at that point.

    Then install Ubuntu manually selecting the partitions you created for it. But don't make so many partitions without knowing what you need, or you will just end up short of space on one while having loads of unused space on another.

    PS: Back in 2004 when I did not do anything before trying to shrink WinXP I could only shrink it 24 GB on a 200 GB drive. But more recently when I discovered Ubuntu just before 9.10 was released, by defragging and disabling virtual memory, I could have freed up more than 150 GB if I thought I needed that much.
    Indeed? I defraged, and was wondering about that blue chunk up there... Can disabling virtual memory cause any problems though? I worry because when I run windows on this machine the page file take one horrible beating on a fairly constant basis. There's a gig of RAM. You'd think that would be plenty.

    Quote Originally Posted by oldfred
    Herman on advantages/disadvantges of separate system partitions post #3
    http://ubuntuforums.org/showthread.php?t=1410392
    This is a handy article!

    Quote Originally Posted by gordintoronto
    If you're doing mostly web development, I would be tempted to put /var on a logical partition. Unless the site includes videos, 10 GB is a HUGE web site! A friend runs a site with hundreds of pages, dozens of small videos and a relatively small number of images (maybe a couple of hundred), and the whole site is around 5 GB.
    My thought was to point Apache at a folder in /home, keeping all my data in one place. I'm also working with multiple site, and hopefully more. The main site I'm developing now is 120MB, but on my current Win dev environment (if you can call it that) I have several functioning copies to mess with. I also keep the database and file backups in the same area for purposes of organization.

    Still, you are right. Even 100 websites won't take up a lot of space, relatively. Small is fast and fast is good.

    Quote Originally Posted by coffeecat View Post

    I cannot see where it says that the XP disc manager can shrink the C: partition. I believe this was introduced with Vista.
    I've found the source of confusion. It's worded like this, but looking back now, this is under a Vista caption. "This may also be located in Windows Vista and Windows 7" When I read this part I must have thought xp was implied to what came before it.

    Quote Originally Posted by HowtoResizeWindowsPartitions
    The Windows Disk Management tool is also very good at shrinking Windows, it's very fast and easy, if you don't count the time it takes to defrag first. If you want to use the Windows partition editor to resize Windows, here's how you can do that,
    Administrative Tools --> Disk Management tool -> Shrink Volume
    This may also be located in Windows Vista and Windows 7:
    Settings -> Control Panel -> Administrative Tools -> Computer Management -> Storage -> Disk Management -> Shrink Volume
    Now I'm thinking I might just use guided partitioning... What about what dino99 is advocating? He advises having a separate partition only for /home and swap - swap with 2-4Gb, root with 12Gb, and /home with as much as you need?

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
  •