LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-02-2007, 03:20 PM   #1
Chucknon
LQ Newbie
 
Registered: Jan 2007
Location: Dresden, Ohio
Distribution: Ubuntu I'm about to try!
Posts: 1

Rep: Reputation: 0
Unhappy Partitioning 2nd drive for Ubuntu


I have two hard drives on a Del-4500 1.8GH Pentium 4 with 1G Ram. 1st drive 40 GB with XP & sp 2. 2nd HD partitioned(ntfs) earlier last year with 40GBs (approx.) per in E, F, G & H. I've since moved most all out of F so as to leave space enough for an install of Ubuntu 6.06 which I downloaded & burned to a CD. I've been studying in various locations but have not found a positive install procedure with the partitioning of F drive.
Will it be necessary to move all files from E to F so as to have the 1st part of this HD open for loading/mounting & reformatting. E has 26.4GB free, 10.8GB used; F has 38.9 GB free & 78.6 MB used; G has 23.6GB free & 15.3 used: H has 21.9GB free & 17.1GB used. I've been backing up E & most of G & H.
Will appreciate any info,
 
Old 02-02-2007, 06:36 PM   #2
IBall
Senior Member
 
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088

Rep: Reputation: 62
Welcome to LQ!

First thing - drive letters is Windows terminology. Linux uses hda, hdb, etc for each device, and then appends a number to that for the partition. Search Google for more info on this.

Basically, you need to create some free space on the hard drive. The easiest thing in your situation would be to empty one of the partitions that you have. When you install Ubuntu, delete that partition and tell the installer to use that space. It will create a swap partition and a root partition for you.

As part of the installation, Windows will be detected and the GRUB boot loader will be configured to boot either Windows or Linux, provided you install it to the MBR on the first hard drive. This should be the default option.

If you have any more questions, please ask.

I hope this helps
--Ian
 
Old 02-02-2007, 07:15 PM   #3
dgar
Member
 
Registered: Jun 2005
Location: Candia, NH
Distribution: Ubuntu, FC, RHE3, RHE4, CentOS
Posts: 121

Rep: Reputation: 15
Go ahead and skip the recommended swap partition. The speed difference between a dedicated partition and just a swap file (like windows) is vestigial nowadays. So you only need one partition for your Ubuntu install. You can use boot the Ubuntu CD into a full live desktop and use Gparted from there to mess with drive partitions ... If you open any of the filesystems remember to un-mount them ALL before messing with partition layouts.

This is probably too much info all at once... but back to the swap file. After you are all set up and running Ubuntu open a terminal windows and cut and paste:
sudo dd if=/dev/zero of=/.swapfile bs=1M count=2048
sudo mkswap -f /.swapfile
sudo cp /etc/fstab /etc/fstab.bk
echo '/.swapfile swap swap 0 0' | sudo tee /etc/fstab

Explaination of each above step in order:
Make an empty 2Gb hidden file.
Then make it a swap file.
Make a backup of /etc/fstab to /etc/fstab.bk
Add the swapfile to the filesystem table for next boot.

You'll have to enable the swapfile for _this_ boot:
sudo swapon -av
free

In order again:
Turn on the swap file
Check to make sure it all worked.
 
Old 02-02-2007, 09:41 PM   #4
IBall
Senior Member
 
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088

Rep: Reputation: 62
I would just stick with a swap partition - it is much easier. Also, I think one of the reasons Linux fragments less than Windows is that the virtual memory is kept on a separate partition. I agree that there is probably no speed difference (was there ever one?). Also, some programs may complain.

You can mess around with your partitions in the Ubuntu installer, no need to worry about GParted for now.

--Ian
 
Old 02-02-2007, 10:07 PM   #5
dgar
Member
 
Registered: Jun 2005
Location: Candia, NH
Distribution: Ubuntu, FC, RHE3, RHE4, CentOS
Posts: 121

Rep: Reputation: 15
We are gonna confuse the poor guy.... ....but dd is pre-allocating the swapfile and thus no fragmenting. b)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
repartitioned xp 2nd hard drive while trying to install Ubuntu-now shows up as "Bad" pulper Linux - Hardware 2 08-23-2006 01:41 PM
ubuntu partitioning tool does not see external usb hard drive when installing ubuntu fakie_flip Linux - Software 2 07-30-2006 12:44 AM
Partitioning hard drive and installing Ubuntu? Taae Linux - Newbie 6 02-22-2006 04:37 PM
Added a 2nd Sata Drive installed Fedora Core 5, BIOS Doesn't See 2nd Drive. mtmcc1 Linux - General 3 12-03-2005 04:01 PM
Partitioning 2nd Hard Drive JakeFarley Linux - Hardware 1 01-28-2003 09:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration