LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices

Reply
 
Search this Thread
Old 10-13-2005, 03:21 PM   #1
TGWDNGHN
Member
 
Registered: Aug 2003
Distribution: Slackware 10.0
Posts: 94
Blog Entries: 1

Rep: Reputation: 15
URGENT- cfdisk or df are lying to me!


When I created my / partition- I allocated 3GB for it. When I run "df" however, it shows that I have roughly 1 GB. I check cfdisk again and it' just like how I left it... a nice 3GB


This is very important because one of my packages (GCC Pass 2- Chapter 5- temporary system) failed because there was no disk space (I just ran "make" again and it worked though)



This brought up the issue of how much space I really have... and I am staring at two very different results

If my cfdisk is correct at saying my / drive is 3GB- then I dont know why making gcc would have failed (but it works now). If my df is correct... there there is no way I'll have enough space for building LFS!


Help! Which is which and how can I be so sure?


Thanks
 
Old 10-13-2005, 03:35 PM   #2
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,476

Rep: Reputation: 156Reputation: 156
When I created my / partition- I allocated 3GB for it. When I run "df" however, it shows that I have roughly 1 GB.

df shows the size of the file system. Therefore you have 1G file system in a 3G partition. You need to resize the file system so that it uses the remaining raw space in the partition. What file system type are you using?

-----------------------------
Steve Stites
 
Old 10-14-2005, 08:45 AM   #3
TGWDNGHN
Member
 
Registered: Aug 2003
Distribution: Slackware 10.0
Posts: 94
Blog Entries: 1

Original Poster
Rep: Reputation: 15
I am using the ext2 filesystem just like the book says.

All I did was
1. Run cfdisk
2. Remove all existing partitions
3. Create one primary, bootable partition for the / drive of my LFS System- 3GB
4. Create Logical Drives for /home - 10GB, /root - 5 GB, and /usr - 20GB (20GB remain free)


I calculated the number of MB simbly by multiplying 1024MB/GB by the number of GB I wanted- so for the / drive, I calculated 1024*3 and put in the result


I have to tell you I never realized that a filesystem might not fill up an entire partition.... I thought the whole "left over raw space" was when a partition size exceeded the maximum capacity of the filesystem. Surely I haven't gone anywhere near this limit...


So how can I resize my partition?
 
Old 10-14-2005, 08:53 AM   #4
TGWDNGHN
Member
 
Registered: Aug 2003
Distribution: Slackware 10.0
Posts: 94
Blog Entries: 1

Original Poster
Rep: Reputation: 15
WOOT WOOT nevermind- I used the apropos command to search for "resize"- found the resizer program and mande my filesystem fill out my partition


Thanks
 
  


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
mii-tool apparently lying about 3COM cards MensaWater Linux - Networking 4 09-29-2005 10:13 AM
is apt-get buggy or is aptitude lying!? Daveb3 Debian 14 07-26-2005 03:55 PM
Linux Association says Bill Gates is lying to readers of Der Spiegel Ephracis Linux - News 1 03-30-2005 02:24 PM
who is lying??? yenonn General 30 01-02-2004 02:35 AM
df -h .. Lying? mikeshn Linux - General 2 07-08-2002 08:52 PM


All times are GMT -5. The time now is 06:15 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration