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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
08-24-2004, 02:47 AM
|
#1
|
Member
Registered: Jul 2004
Distribution: Red Hat 9, Mandrake 9.2
Posts: 211
Rep:
|
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
|
|
|
08-24-2004, 02:54 AM
|
#2
|
Member
Registered: Sep 2003
Location: Ankara/Turkey
Distribution: Slackware
Posts: 155
Rep:
|
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?
|
|
|
08-24-2004, 02:57 AM
|
#3
|
LQ Newbie
Registered: Dec 2002
Location: USA
Distribution: Gentoo Linux
Posts: 20
Rep:
|
Is the rest of the drive part of another partition? Or did you partition the drive correctly?
|
|
|
08-24-2004, 03:20 AM
|
#4
|
Senior Member
Registered: Jun 2004
Location: Australia
Distribution: Mandriva/Slack - KDE
Posts: 1,672
Rep:
|
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...
|
|
|
08-24-2004, 03:29 AM
|
#5
|
Senior Member
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791
Rep:
|
you can do a fdisk -l to get a list of all the partitions on your disk.
df only shows the mounted partitions.
|
|
|
08-24-2004, 03:56 AM
|
#6
|
Member
Registered: Jul 2004
Distribution: Red Hat 9, Mandrake 9.2
Posts: 211
Original Poster
Rep:
|
#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
|
|
|
08-24-2004, 04:39 AM
|
#7
|
Senior Member
Registered: Jun 2004
Location: Australia
Distribution: Mandriva/Slack - KDE
Posts: 1,672
Rep:
|
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.
|
|
|
08-25-2004, 01:02 AM
|
#8
|
Member
Registered: Jul 2004
Distribution: Red Hat 9, Mandrake 9.2
Posts: 211
Original Poster
Rep:
|
#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
|
|
|
All times are GMT -5. The time now is 02:54 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|