LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 08-15-2006, 07:11 AM   #1
zmsc1
Member
 
Registered: Apr 2006
Location: South Yorkshire, GB
Distribution: SuSE, DSL
Posts: 34

Rep: Reputation: 15
No space left on device


I'm at step 5.4.1 that is, not very far in! Binutils compiled OK and GCC seems to be going well until I get messages "Cannot write: No space left on device.

df tells me /dev/hcd1 4% used - that's where I'm installing, so OK, and /dev/mapper/lfs-cd 100% used - which I assume is just the LFS live CD. Any experienced LFSers can help please?
 
Old 08-15-2006, 07:25 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
Hi,

4% used doesn't say anything (4% of nothing is still nothing.... )
How large is dev/hdc1? and how much, in Mb/Gb, is still available (df -h gives human readable output, post the output if possible).

Which step actually failed?

Not much to go on, but there wasn't too much info to begin with
 
Old 08-15-2006, 08:17 AM   #3
zmsc1
Member
 
Registered: Apr 2006
Location: South Yorkshire, GB
Distribution: SuSE, DSL
Posts: 34

Original Poster
Rep: Reputation: 15
Thanks for your interest Druuna,

My problem occurs while unzipping files with the command tar -jxvf /lfs-sources/gcc-4.0.3.tar.bz2 That command seems to be doing the right thing, but it doesn't finish due to running out of space.

df -h gives me /dev/hdc1 4.8G, used 138M, so I think I have enough space in my target partition. But /dev/mapper/lfs-cd is size 1.5G, used 1.5G, so my assumption that it's the CD doesn't look right. Could /dev/mapper/lfs-cd be memory plus swapfile? It's the right size for that - in which case would a bigger swap file help?
 
Old 08-15-2006, 09:51 AM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
Hi,

I really don't understand what (and how) you are trying to do.

/dev/hdc1 ($LFS) seems not to be the problem (still approx. 4,8 Gb free). Only thing I can come up with for /dev/hdc1: It is mounted write only (the mount command should show that information).

Are you trying to untar on the cd directory (which cannot be done)?

Please post the output of df -h and mount, maybe there's a clue there.
 
Old 08-16-2006, 07:43 AM   #5
zmsc1
Member
 
Registered: Apr 2006
Location: South Yorkshire, GB
Distribution: SuSE, DSL
Posts: 34

Original Poster
Rep: Reputation: 15
I don't know how to post the output from the machine I'm trying to build, but mount tells me /dev/hdc1 is mounted rw - and indeed the tar utility spent an hour unpacking files to it before the error came up. So no, I'm not untaring on the CD - I imagine that would stop immediately.

df - h gives me
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/lfs-cd 1.5G 1.5G 16K 100% /
/dev/hdc1 4.8G 175M 4.4G 4% /mnt/lfs

Before getting to step 5.4, I'd already completed step 5.3 (binutils)successfully, so I think my method is OK, but something is getting filled up - I just don't see what that something is! I'd be grateful for any further advice.
 
Old 08-16-2006, 01:34 PM   #6
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
Hi,

This is getting interesting

Some more questions for you:

1) Do you see any output, besides the error, when untarring? You should see at least a line for every file/dir that is extracted. If there were other messages, please post them.

2) Did you check the sanity of the gcc package on the cd? There should be a md5 sum for the gcc file, to check if all is correct:

md5sum gcc-4.0.3.tar.bz2

The number returned (something like: 6ff1af12c53cbb3f79b27f2d6a9a3d50) should exactly match with the md5 sum given. If this is not the case: Your gcc package is corrupt/tampered with. Download a fresh copy.

3) Check if bunzip or tar is the problem. Although you did say that binutils was no problem to unpack/untar, maybe you end up with a more detailed error message.

Make it a 2 step process. First bunzip the file: bunzip2 gcc-4.0.3.tar.bz2. You should end up with: gcc-4.0.3.tar. Then untar the file tar xf gcc-4.0.3.tar.

Hope any of this will get you going again.
 
Old 08-17-2006, 03:54 AM   #7
zmsc1
Member
 
Registered: Apr 2006
Location: South Yorkshire, GB
Distribution: SuSE, DSL
Posts: 34

Original Poster
Rep: Reputation: 15
Thanks for your continuing help. I'm doing something completely different today, but I'll try out your suggestions tomorrow and let you know.

Stuart
 
Old 03-28-2009, 11:57 PM   #8
pitsiman
LQ Newbie
 
Registered: Mar 2005
Posts: 3

Rep: Reputation: 0
Unhappy Same prob

Hello guys
I have the same problem.Although I have reached this stage and have successfully installed binutils, I get error messages saying "No space left on device". My PC is P Core 2 Duo , Ram 2GB, one partition 15GB and one for swap 2GB. I was trying first to unzip-untar once and out and I was getting errors. I also tried to unzip first and I get the error:
bunzip2: I/O or other error, bailing out. Possible reason follows.
bunzip2: No space left on device
Input file = gcc-4.3.2.tar.bz2, output file = gcc-.4.3.2.tar
bunzip2: Deleting output file gcc-.4.3.2.tar, if it exists.

Any ideas?

The df -u shows:
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/lfs-cd 1.5G 1.3G 126M 92% /
/dev/sda5 15G 215M 14G 2% /mnt/lfs

PS: I am tryin to unzip and untar from /tmp if that matters.
 
  


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
No space left on the device batev Slackware 6 05-25-2006 03:40 AM
No space left on device clintdavis Linux - Software 2 05-04-2006 11:38 PM
No space left on device (28) AllanBC Linux - Software 3 04-03-2006 04:55 AM
No space left on device xfgao Red Hat 27 01-13-2005 05:06 PM
No space left on the device ashwinipahuja Programming 1 06-24-2004 01:05 AM


All times are GMT -5. The time now is 12:21 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration