LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   New linux system (https://www.linuxquestions.org/questions/linux-newbie-8/new-linux-system-638711/)

danne123 04-29-2008 01:02 PM

New linux system
 
Hello,

I gonna install ubuntu linux on a 160 gb harddrive. I was thinking to split the harddrive in two. 80 gb for windows XP and 80 gb for ubuntu. What do you guys think of that?

And how shall I build linux partition? 20 gb for /root, 5 gb for swap, or what would you suggest?

bigrigdriver 04-29-2008 01:14 PM

If it were my machine, I'd probably give swap 1 gig, / would get 12-14 gig (depending on how much software I intend to install), and the rest in /home.

danne123 04-29-2008 01:18 PM

How about logical and primary partition?

bigrigdriver 04-29-2008 01:26 PM

In your windows partition is a primary partition, you could create an 80 gig extended partition, and make your logical partitions for Linux inside the extended partition.

You can have up to 15 logical partitions inside the extended partition.

If you make all partitions primary, then you run into the 4 partition limit of the MBR. You could have only windows xp, linux root, linux /home, and swap partitions on the entire drive.

danne123 04-29-2008 01:31 PM

With your suggestion, what kind of partition would you set for each?
Boot - primary etc...

bigrigdriver 04-29-2008 01:40 PM

Windows would be the first partition on the drive: primary, bootable.
Then the extended partition, which is just a container for the logical parititons.
Then I'd probably make the Linux partitions in this order:
swap : logical
/ (root) : logical, bootable
/home : logical

Of course, opinions vary on how to set up a partition scheme. That's mine.

danne123 04-29-2008 02:03 PM

Thanks, now linux is installed.

First next week will I get my copy of windows. I heard that there is a problem if you first install linux and after that windows. What shall I do to fix that problem?

johnsfine 04-29-2008 02:15 PM

Quote:

Originally Posted by danne123 (Post 3136928)
I heard that there is a problem if you first install linux and after that windows. What shall I do to fix that problem?

I assume you have a bootable liveCD version of Linux.

After installing Windows, you can boot that CD and use it to reinstall Grub for dual boot of Windows and Linux.

bigrigdriver 04-29-2008 02:23 PM

When you install windows, it will overwrite the MBR with it's own bootloader, and Linux will not be bootable. Be careful during the installation of windows that is doesn't delete/reformat your Linux partitions because they're not windows partitions.

After windows is installed, use your Linux installation cd to boot into Linux, open a console, su to root, and run grub-install to restore the grub bootloader to the MBR (there's plenty of documentation around on how to do that).

Then, also as root, you will have to edit /boot/grub/menu.lst to make a menu entry for windows (there is also plenty of documentation for that).

If you want the windows partition mounted when you boot Linux so that you can view files in windows, you will have to make an entry to /etc/fstab.

For future reference, in researching Linux questions, www.google.com/linux is your friend. You will probably not have any problems that have not already been discovered and solved. Plus, using google first, you will often have the solution to your problem faster than waiting for someone on a bulletin board to respond to a question.

trashbird1240 04-29-2008 02:46 PM

Quote:

Originally Posted by danne123 (Post 3136886)
Hello,

I gonna install ubuntu linux on a 160 gb harddrive. I was thinking to split the harddrive in two. 80 gb for windows XP and 80 gb for ubuntu. What do you guys think of that?

100% Ubuntu and 0% Windows, but that's just me :p

Quote:

And how shall I build linux partition? 20 gb for /root, 5 gb for swap, or what would you suggest?
Out of 80 GB:
10 GB /root
1 GB swap
the rest in /home

Joel


All times are GMT -5. The time now is 12:19 AM.