LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-04-2003, 06:48 PM   #1
arty62
LQ Newbie
 
Registered: Nov 2003
Posts: 22

Rep: Reputation: 15
Dazed and confused about partitions


I need some plain talk on "how to" partition my hard drives for a dual boot system - Windows XP, and a Linux distro to be determined.) I have read umpteen articles, and have found most to be out of date or very obscure for a noobe like me. My initial thoughts are to give each OS a drive of its own (80GB each). I would also like to be able to back up each to the other (3d party util). My main confusion is about how much space to allocate for what. Also, is there a way to keep assigned drive names D and E for CDROM and DVD Burner? Any and all suggestions /directions welcomed. Thanks in advance for your help......rt

PS: A recommended distro would also be appreciated.
 
Old 11-04-2003, 06:56 PM   #2
LogicG8
Member
 
Registered: Jun 2003
Location: Long Island, NY
Distribution: Gentoo Unstable (what a misnomer)
Posts: 380

Rep: Reputation: 30
For a newbie a distro like SuSe Redhat or Mandrake is good.

As for partitioning Two drives would make your life simple
I'd make 2 partitions on your linux drive one for your kernel
and one for everything else so
1 Partition of about 128MB
1 Partition the rest of the drive

Windows has it's own drive
 
Old 11-04-2003, 07:10 PM   #3
LogicG8
Member
 
Registered: Jun 2003
Location: Long Island, NY
Distribution: Gentoo Unstable (what a misnomer)
Posts: 380

Rep: Reputation: 30
In Linux there are no confusing drive letters.
Drives are named as they are arranged in your computer.
Partitions of the drive have a number appended to the
device name.

hda is the first IDE harddrive
hda1 is the first partition on the first harddrive
hda2 is the second partition on the first harddrive
hdb is the second harddrive
hdb2 is the second partition on the second harddrive

On linux you don't have "My Computer" you have /

/ is a directory (equivelent of a folder) like any other.
It is the top of the file system everything, all the files
on the computer are in /
 
Old 11-04-2003, 07:20 PM   #4
bareego
Member
 
Registered: Nov 2003
Location: Brisbane, Australia
Distribution: Crux 2.0
Posts: 66

Rep: Reputation: 15
linux partition naming convention

I did a post about linux partition naming conventions on another board... I hope you don't mind me copying it in here...


Most people have an IDE controller on their motherboard with 2 channels, IDE0 and IDE1.

Each of these channels uses a cable with connectors for up 2 devices on each cable.
So you have (MB = Motherboard end)

IDE0 MB--------------#Master---------#Slave
IDE1 MB--------------#Master---------#Slave

So as you can see you can connect up to 4 Devices.
The Master/Slave configuration of the drives is commonly done by little jumpers on the actual drives.
Sometimes the cable can also determine which drive is Master or slave, in which case both drives should be set to Cable Select (CS)

Now the computer wants to know how to tell the devices apart on each cable, so one of them is the Master, and the other one the Slave.
So now the computer knows which drive is which.
Now Linux also wants to know which drive is which.
So eg peanut uses the nameing like this

IDE0 Master = hda
IDE0 Slave = hdb
IDE1 Master = hdc
IDE1 Slave = hdd

kinda makes sense, no ?
now because linux keeps all device related files in the dev folder you can access those drives by using eg /dev/hda for the IDE0 Master.
Ok, now linux knows how to get to the drive, now it wants to get to partitions. So why not just give them numbers from 1 to x ? Well that's what linux does. So the first partition on /dev/hda is /dev/hda1.
The second one is /dev/hda2. The 3rd partition on /dev/hdc is /dev/hdc3.
Yeah, would be nice if it worked that way. But there is a lil extra thanks to partition types.
If everyone would just use primary partitions it would all be easy. The numbering would go just by the partition number. BUT there is also this thing called extended partition. It allows you to make a partition which in itself can hold extra partitions(logical ones). That's where it gets weird with partition numbering. So what numbers will these partitions get ?

Let's assume we use /dev/hdc (the master on IDE1) .
Your first four partitions are normally "reserved" for primary or extended partitions.

So that accounts for /dev/hdc1 to /dev/hdc4 .

Let us assume we have one primary partition and one extended partition which has 3 logical partitions in it.

Now the primary partition is /dev/hdc1, the extended partition /dev/hdc2.
/dev/hdc3 and 4 get skipped (remember reserved for primary and extended)
So the 3 logical partitions have to make do with /dev/hdc5 onwards.
So we'd end up with the following
/dev/hdc :
/dev/hdc1..............primary
/dev/hdc2..............extended
/dev/hdc5.................logical
/dev/hdc6.................logical
/dev/hdc7.................logical

So one number for the extended partition (/dev/hdc2) and then the following numbers for the logical partitions in it (/dev/hda5, ect)

cheers
bareego
 
Old 11-04-2003, 07:21 PM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,592

Rep: Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880
For starters Redhat or Mandrake would be the easiest to install. You should check the different distro websites to see if they support SATA drives. Also Mandrake and Redhat have their install documentation online so you can read and study beforehand.

If you want an entire drive devoted to linux it would be the best way to go. For first time users let the installer autopartition. Once your more familar with linux you can partition as you like.

There aren't any drive designations like windows. The filesystem is a tree and all devices mounted are branches. An analogy would be that linux has only the c: drive. Every directory is referenced from the c:\. but in linux it is the / (root). Each drive would be a directory from /. Redhat and Mandrake mount cdrom drives to /mnt/cdrom, /mnt/cdrom1 etc.

http://www.shortfamilyonline.com/tec...-structure.php
 
Old 11-04-2003, 07:28 PM   #6
arty62
LQ Newbie
 
Registered: Nov 2003
Posts: 22

Original Poster
Rep: Reputation: 15
Lots for me to digest there! Appreciate answers so far. But my machine uses a SATA Raid 0 config. IDE0=DVD ROM, IDE!=DVD Burner. In windows my C HD = 155GB, D=DVD ROM, and E=DVD Burner. How recognized by Linux?
 
Old 11-04-2003, 07:32 PM   #7
arty62
LQ Newbie
 
Registered: Nov 2003
Posts: 22

Original Poster
Rep: Reputation: 15
" would be that linux has only the c: drive."

Michaelk....did you mean Windows here?
 
Old 11-04-2003, 07:50 PM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,592

Rep: Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880
Did you follow the link I posted? I probably confused things a little with my analogy. I guess so. Let me rephrase if windows were to only have a c: drive then all additional devices would be referenced from c:\. So linux uses / instead of c:\. Then, for example Mandrake would mount the first CDROM detected to /mnt/cdrom.

All hardware is assigned a device ID. These devices IDs are located in the /dev directory. As an example a CDROM reader connected to the IDE secondary master will be /dev/hdc.

Last edited by michaelk; 11-04-2003 at 07:56 PM.
 
Old 11-04-2003, 08:07 PM   #9
arty62
LQ Newbie
 
Registered: Nov 2003
Posts: 22

Original Poster
Rep: Reputation: 15
Michaelk...yes, read article 2x, will read more...great article..If I'm beginning ti understand, on my machine: /dev/hda = first hard drive, /dev/hdb = my second hard drive...am I right/
 
Old 11-04-2003, 09:36 PM   #10
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,592

Rep: Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880
Yes. I think you would benefit from purchasing a linux book or visiting your local library. I'm from the old school and having a reference helped me out when I first started learning about linux.
 
Old 11-05-2003, 05:07 AM   #11
arty62
LQ Newbie
 
Registered: Nov 2003
Posts: 22

Original Poster
Rep: Reputation: 15
I've pretty much decieded to go with Mandrake,,,which package would be best to start? Also, any recommendations on a good recent book on Linux?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Dazed and confused lithiumcloud Linux - General 3 07-01-2004 06:44 AM
Dazed and confused, but trying to continue MegamanNL Debian 1 10-23-2003 03:27 PM
dazed and confused warsey Linux - Software 3 08-05-2003 01:27 PM
Confused and dazed mrpeck666 General 6 07-01-2003 07:16 PM
Dazed and confused... cijunet Slackware 3 04-02-2003 07:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:32 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