PDA

View Full Version : [all variants] Dual Booting Questions



Airforcefalco
November 11th, 2008, 11:36 AM
I would like to put my copy of Windows back on my laptop but I want to make sure that I don't mess up the Linux installation.

I heard that you can use the commands dd and gzip in GRUB to compress the OS to conserve space, does anyone know how to do this?

louieb
November 11th, 2008, 12:27 PM
A bunch of how to dual boot this or that with that or this installed first. apc HowTo dual boot (http://apcmag.com/howto_category.htm?cid=198)

you can use dd and gzip to backup an OS. Don't believe you can boot to a compressed OS.

Airforcefalco
November 11th, 2008, 12:46 PM
Not boot to a compressed OS but compress an OS until you want to boot to it and then decompress.

caljohnsmith
November 11th, 2008, 02:43 PM
If you want to compress your OS, you could compress the entire partition with:

sudo dd if=/dev/<partition> bs=10M conv=notrunc,noerror | gzip -c > ~/Desktop/OS_backup.gz
And replace <partition> with the OS partition, like sda1. To expand it and put it back:

zcat ~/Desktop/OS_backup.gz | dd of=/dev/<partition> bs=10M conv=notrunc,noerror
And of course make sure you get <partition> correct or you could cause yourself some big trouble. :)

Slug71
November 11th, 2008, 02:47 PM
Windows has to be the first partition on your Harddrive.

Airforcefalco
November 11th, 2008, 02:49 PM
Windows has to be the first partition on your Harddrive.

I read that you could use GRUB to handle it.

Paqman
November 11th, 2008, 02:50 PM
Linux doesn't take up a lot of space. You should be able to shrink it's partition(s) down quite small and still have them work fine. Gparted will tell you how much space on a partition is actually in use before you make any changes.

caljohnsmith
November 11th, 2008, 02:52 PM
Windows has to be the first partition on your Harddrive.
Fortunately, that is not true. You can install Windows to any primary partition, and in fact you can even install Windows to a logical partition if there is a NTFS/FAT primary partition available where Windows can put its boot files. If you want some examples of people who have Windows on a different partition than the first one, here are some examples:

http://ubuntuforums.org/showthread.php?t=955671
http://ubuntuforums.org/showthread.php?t=953444
http://ubuntuforums.org/showthread.php?t=952045
http://ubuntuforums.org/showthread.php?t=952048
http://ubuntuforums.org/showthread.php?t=936866
http://ubuntuforums.org/showthread.php?t=940285
http://ubuntuforums.org/showthread.php?t=964779
http://ubuntuforums.org/showthread.php?p=6096278

handydan918
November 11th, 2008, 02:53 PM
I would like to put my copy of Windows back on my laptop but I want to make sure that I don't mess up the Linux installation.
Well, you WILL mess up your Ubu install....at least, the bootloader, GRUB. Just reinstall grub after you reinstall Windows.

I heard that you can use the commands dd and gzip in GRUB to compress the OS to conserve space, does anyone know how to do this?

Why would you want to do this? How small is you disc?

Airforcefalco
November 11th, 2008, 03:05 PM
Why would you want to do this? How small is you disc?

Well it is 250 GB.

The reasons I want to do this is because eventually I would like to try different versions of Linux and Windows. I have XP and my laptop came with Vista so I want to conserve as much space as I can for family videos and pictures. I really just want to experiment and that suggestion sounded kind of fun.

ichi@YUKI
November 11th, 2008, 03:12 PM
Windows has to be the first partition on your Harddrive.

I have to agree on this one. Windows hates it if another OS has been installed before it. I tried both the dual-booting windows first and ubuntu first. It seems the latter can cause much of a headache.

hellion0
November 11th, 2008, 03:18 PM
Whatever you do, snag a copy of the Super Grub Disc. It'll help you out, since installing Windows will wipe out your present bootloader.

Paqman
November 11th, 2008, 03:53 PM
The reasons I want to do this is because eventually I would like to try different versions of Linux and Windows.

A Linux distro is quite happy with 10GB, so you could try out quite a few simultaneously on a 250Gb drive.

If you create a separate /home partition you can share it between any number of distros (just create separate users for each distro) Once you've got /home separated you could probably squeeze most distros onto 6-8GB without much hassle. Having said that, I give them 20GB since i've got plenty of space (WinXP/Ubuntu on a 160GB drive)

Airforcefalco
November 12th, 2008, 03:31 AM
Does anyone know how to do this?