LinuxQuestions.org
Help answer threads with 0 replies.
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 12-11-2003, 10:12 AM   #1
leighsd
LQ Newbie
 
Registered: Dec 2003
Posts: 1

Rep: Reputation: 0
Units/blocks/heads/cylinders ????


I've just got a new machine thats running Redhat 9 and the 2 SCSI disks are partitioned as follows

Disk /dev/sda: 36.7 GB, 36748945408 bytes
255 heads, 63 sectors/track, 4467 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 267 2040255 82 Linux swap

Disk /dev/sdb: 36.7 GB, 36748945408 bytes
255 heads, 63 sectors/track, 4467 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdb1 1 4467 35881146 83 Linux

As you can see, a large portion of sda is not being used plus I don't like /var and /tmp being in / (sdb1)

I'd like to make sda4 an extended partition with 2 logicial partitions to holed /var and /tmp (ext2 - 2 GB each (sda5 and sda6)) and used whats left for sda3 as a data disk.

I've being reading the Linux Partition HOWTO and my brains decided to give up


Can someone help me out with the maths
(I want to understand the calculations, not just be given the answer) ,
plus how big is the swap (considering I have 4GB of RAM) ?

Thanks

Leigh
 
Old 12-11-2003, 12:25 PM   #2
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
With fdisk there's no need to specify the partition size in cylinders, you can use something like +4000m, or use cfdisk, an easier tool.
As for the swap, you're probably fine without one(depends on what you will be running), but I'd make a 256mb swap anyway just in case.

Last edited by Demonbane; 12-11-2003 at 12:27 PM.
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I calcuate disk space from cylinders, heads, and sectors? abefroman Linux - Hardware 2 08-14-2005 09:59 PM
cylinders, heads and spt-command? kpachopoulos Linux - General 1 07-05-2005 02:52 PM
gnu units denning Slackware 2 02-24-2005 08:14 AM
I can see shared units on Windows boxes, but can't see any files within these units emiliofil Linux - Networking 2 01-24-2005 08:13 AM
HELP: scsi emulation for BOTH units liam5150 Linux - General 3 07-18-2003 06:18 PM


All times are GMT -5. The time now is 10:30 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration