LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 08-24-2004, 02:47 AM   #1
LinuxRam
Member
 
Registered: Jul 2004
Distribution: Red Hat 9, Mandrake 9.2
Posts: 211

Rep: Reputation: 30
4GB hard disk is 2GB


4 GB hard disk

when i type df -h , it show only 2GB information

Filesysem Size Used Avail Use% Mounted on
/dev/ide/host0/bus1/target0/lun0/part5
1.9G 1.4G 428M 77%

how can i make rest of 2GB as linux partition so it will be show while typing df -h
 
Old 08-24-2004, 02:54 AM   #2
barisdemiray
Member
 
Registered: Sep 2003
Location: Ankara/Turkey
Distribution: Slackware
Posts: 155

Rep: Reputation: 30
Re: 4GB hard disk is 2GB

Quote:
Originally posted by akshatyadav
4 GB hard disk

when i type df -h , it show only 2GB information

Filesysem Size Used Avail Use% Mounted on
/dev/ide/host0/bus1/target0/lun0/part5
1.9G 1.4G 428M 77%

how can i make rest of 2GB as linux partition so it will be show while typing df -h
Only mounted partitions will be showed in df. If you have two 2 GB partition then you have to format the other one (using mkfs utility for example) and mount it. But if you have a one 4 GB partition but df says that it's 2 GB then there is a problem :-) Which one?
 
Old 08-24-2004, 02:57 AM   #3
GaMMa
LQ Newbie
 
Registered: Dec 2002
Location: USA
Distribution: Gentoo Linux
Posts: 20

Rep: Reputation: 0
Is the rest of the drive part of another partition? Or did you partition the drive correctly?
 
Old 08-24-2004, 03:20 AM   #4
amosf
Senior Member
 
Registered: Jun 2004
Location: Australia
Distribution: Mandriva/Slack - KDE
Posts: 1,672

Rep: Reputation: 46
need the results of fdisk -l
on the drive in question...

The partition youare showing us here in the first logical drive in the extended partition. Maybe the rest is a primary partition...
 
Old 08-24-2004, 03:29 AM   #5
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 50
you can do a fdisk -l to get a list of all the partitions on your disk.

df only shows the mounted partitions.
 
Old 08-24-2004, 03:56 AM   #6
LinuxRam
Member
 
Registered: Jul 2004
Distribution: Red Hat 9, Mandrake 9.2
Posts: 211

Original Poster
Rep: Reputation: 30
#fdisk -l

Disk /dev/ide/host0/bus0/target0/lun0/disc: 4303MB,4303272960 bytes
255 heads, 63 sectors/track, 523 cylinders
Units=cylinders of 16065 * 512= 8225280 bytes

Device Boot Start End Blocks Id S system

/dev/ide/host0/bus0/target0/lun0/part1 * 1 484 3887698+ 83 L linux
/dev/ide/host0/bus0/target0/lun0/part2 485 516 257040 5 E Extended
/dev/ide/host0/bus0/target0/lun0/part5 485 516 257080+ 82 L linux swap
 
Old 08-24-2004, 04:39 AM   #7
amosf
Senior Member
 
Registered: Jun 2004
Location: Australia
Distribution: Mandriva/Slack - KDE
Posts: 1,672

Rep: Reputation: 46
Ah, you must have two drives... this one is a primary master hd and the one you listed earlier was a partition on a primary slave hd.
 
Old 08-25-2004, 01:02 AM   #8
LinuxRam
Member
 
Registered: Jul 2004
Distribution: Red Hat 9, Mandrake 9.2
Posts: 211

Original Poster
Rep: Reputation: 30
#fdisk -l

Disk /dev/ide/host0/bus1/target0/lun0/disc: 40.0 GB, 40020664320 bytes
16 heads, 63 sectors/track, 77545 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes

Device Boot Start End Blocks Id System
/dev/ide/host0/bus1/target0/lun0/part1 1 77545 39082648+ 5 Extended
/dev/ide/host0/bus1/target0/lun0/part5 1 3969 2000313 83 Linux
/dev/ide/host0/bus1/target0/lun0/part6 3970 15596 5859976+ 83 Linux
/dev/ide/host0/bus1/target0/lun0/part7 15597 17581 1000408+ 83 Linux
/dev/ide/host0/bus1/target0/lun0/part8 17582 21457 1953472+ 83 Linux

Disk /dev/ide/host0/bus0/target0/lun0/disc: 4303 MB, 4303272960 bytes
255 heads, 63 sectors/track, 523 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/ide/host0/bus0/target0/lun0/part1 * 1 484 3887698+ 83 Linux
/dev/ide/host0/bus0/target0/lun0/part2 485 516 257040 5 Extended
/dev/ide/host0/bus0/target0/lun0/part5 485 516 257008+ 82 Linux swap
 
  


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
Cloning 1 hard disk to smaller hard disk, dd or ghost? fireman949 Linux - Hardware 8 12-23-2012 12:51 AM
/proc filesystem has too many 2gb files hard disk getting full sadun SUSE / openSUSE 5 09-16-2005 07:40 AM
RH ES install - 2Gb ok, 4Gb not ok RedHatCat Red Hat 4 06-13-2005 10:14 AM
What if you had 2GB RAM and 4GB HD? AC97Conquerer General 21 03-28-2005 07:21 PM
a distro under 2GB hard disk space? mannis Linux - Newbie 10 09-21-2004 11:21 AM

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

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