LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   No space left on device (https://www.linuxquestions.org/questions/linux-from-scratch-13/no-space-left-on-device-474001/)

zmsc1 08-15-2006 06:11 AM

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?

druuna 08-15-2006 06:25 AM

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 ;)

zmsc1 08-15-2006 07:17 AM

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?

druuna 08-15-2006 08:51 AM

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.

zmsc1 08-16-2006 06:43 AM

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.

druuna 08-16-2006 12:34 PM

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.

zmsc1 08-17-2006 02:54 AM

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

pitsiman 03-28-2009 10:57 PM

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.


All times are GMT -5. The time now is 11:30 AM.