LinuxQuestions.org
Review your favorite Linux distribution.
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 04-22-2012, 04:31 PM   #1
louk88
LQ Newbie
 
Registered: Apr 2012
Posts: 4

Rep: Reputation: Disabled
Cannot write: No space left on device


[SIZE="1"][SIZE="2"][SIZE="3"][SIZE="1"]Hello!
I try to install Asterisk in Centos 5.4 (uname -r) 2.6.18-308.4.1.el5, when i try to make install command i get: Cannot write: No space left on device. Note that i have disk space in my pc.

[root@localhost /]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 3.8G 3.8G 0 100% /
/dev/sda5 33G 3.1G 29G 10% /home
/dev/sda1 46M 16M 28M 37% /boot
tmpfs 506M 0 506M 0% /dev/shm
/dev/sda2 3.8G 3.8G 0 100% /mnt
/dev/sda5 3.8G 3.8G 0 100% /
/dev/sda2 33G 3.1G 29G 10% /home
/dev/sda5 33G 3.1G 29G 10% /home
/dev/sda2 3.8G 3.8G 0 100% /

and

[root@localhost /]# df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/sda2 1022976 129543 893433 13% /
/dev/sda5 8928192 105140 8823052 2% /home
/dev/sda1 12048 41 12007 1% /boot
tmpfs 129334 1 129333 1% /dev/shm
/dev/sda2 1022976 129543 893433 13% /mnt
/dev/sda5 1022976 129543 893433 13% /
/dev/sda2 8928192 105140 8823052 2% /home
/dev/sda5 8928192 105140 8823052 2% /home
/dev/sda2 1022976 129543 893433 13% /

Please help me to find the good solution, i have tried some methods in internet but no way.

Thank u!
 
Old 04-22-2012, 04:37 PM   #2
fusion1275
Member
 
Registered: Jul 2007
Location: Knaphill, Surrey
Distribution: Linux Mint
Posts: 307

Rep: Reputation: 36
You have filled up your root partition. Clean it down and then you will be in business again.

Not sure what you are trying to prove with a "df -i". Just go by the "df -h" output and not sure why your output is telling us you have 3x root parts and 3x home dirs?

Start using "du" and find the culprits.

Cheers.
 
1 members found this post helpful.
Old 04-22-2012, 04:37 PM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927
Ummm ... root is 100% full; asterisk won't install into /home, and you should
investigate why all your file-systems are mounted more than once.
 
1 members found this post helpful.
Old 04-22-2012, 04:41 PM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 25,654

Rep: Reputation: 7654Reputation: 7654Reputation: 7654Reputation: 7654Reputation: 7654Reputation: 7654Reputation: 7654Reputation: 7654Reputation: 7654Reputation: 7654Reputation: 7654
Quote:
Originally Posted by louk88 View Post
Hello!
I try to install Asterisk in Centos 5.4 (uname -r) 2.6.18-308.4.1.el5, when i try to make install command i get: Cannot write: No space left on device. Note that i have disk space in my pc.

[root@localhost /]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 3.8G 3.8G 0 100% /

Please help me to find the good solution, i have tried some methods in internet but no way.
Thank u!
If you look at what you posted, you're getting the message because your disk is 100% full. So, free up some disk space...delete something you don't need. Not sure why you only partitioned a 4GB root partition, but that's where /usr, /bin, etc., all live, so it's not surprising it's full. If this is a brand new installation, consider removing it, and doing a fresh install, with a larger partition size.

Also, spell out your words, please, and provide useful details. You don't say what version/distro of Linux you're using, what size your drive is,or what the "some methods" you've found/tried are, and how they failed. All we can tell you from what you posted, is that your disk is full.
 
1 members found this post helpful.
Old 04-22-2012, 04:57 PM   #5
louk88
LQ Newbie
 
Registered: Apr 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
Reply

There is more than /root that because i wrote this command (mount /dev/sda2 -o /home) more than one.

In fact, because i'm newbie in linux, when i have installed centos, i dont know how i can reserve large space for root partition.

I know very well there is no space, but i dont know how to resolve this problem.

I prefer to count on myself, but I need have some ideas that can help me.

Note: this centos is installed in VMware.
 
Old 04-22-2012, 05:06 PM   #6
louk88
LQ Newbie
 
Registered: Apr 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by fusion1275 View Post
You have filled up your root partition. Clean it down and then you will be in business again.

Not sure what you are trying to prove with a "df -i". Just go by the "df -h" output and not sure why your output is telling us you have 3x root parts and 3x home dirs?

Start using "du" and find the culprits.

Cheers.
There is more than /root that because i wrote this command (mount /dev/sda2 -o /home) more than one.
 
Old 04-22-2012, 05:25 PM   #7
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 25,654

Rep: Reputation: 7654Reputation: 7654Reputation: 7654Reputation: 7654Reputation: 7654Reputation: 7654Reputation: 7654Reputation: 7654Reputation: 7654Reputation: 7654Reputation: 7654
Quote:
Originally Posted by louk88 View Post
There is more than /root that because i wrote this command (mount /dev/sda2 -o /home) more than one.
In fact, because i'm newbie in linux, when i have installed centos, i dont know how i can reserve large space for root partition.
It asks you during the installation process. You specify it then.
Quote:
I know very well there is no space, but i dont know how to resolve this problem. I prefer to count on myself, but I need have some ideas that can help me.
Well, not to sound harsh, but if you know there's no space, there is only ONE solution: remove some files, which will free up some space. Nothing else can really be done.
Quote:
Note: this centos is installed in VMware.
Ok...again, re-install CentOS, and follow the installation guide. There is a specific part that walks you through setting up your disks.
https://www.centos.org/docs/5/html/5...oning-x86.html

If you are doing anything with Asterisk but learning it, I'd *HIGHLY* recommend you don't use a virtual machine for a VOIP solution.
 
Old 04-22-2012, 05:35 PM   #8
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927
Quote:
Originally Posted by TB0ne View Post
It asks you during the installation process. You specify it then.

Well, not to sound harsh, but if you know there's no space, there is only ONE solution: remove some files, which will free up some space. Nothing else can really be done.

Ok...again, re-install CentOS, and follow the installation guide. There is a specific part that walks you through setting up your disks.
https://www.centos.org/docs/5/html/5...oning-x86.html

If you are doing anything with Asterisk but learning it, I'd *HIGHLY* recommend you don't use a virtual machine for a VOIP solution.
Ummm ... that's not really the Linux way, and there's ALWAYS a different method.
Specially w/ a vmware install, where throwing more disk at a problem is trivial.
  1. Find out which part of the file-system uses most space.
  2. add another "disk" to the VM, a bit bigger than what you currently have
  3. boot the VM of a live CD
  4. create an fstab entry that matches the "full" directory (most likely /usr)
  5. temporarily mount the new disk to a temp dir, e.g. /tmp/new_disk
  6. mv the full dirs content to /tmp/new_disk
  7. reboot, and you're away laughing



Cheers,
Tink
 
Old 04-22-2012, 06:25 PM   #9
louk_88
LQ Newbie
 
Registered: Jun 2011
Posts: 13

Rep: Reputation: Disabled
RE

Thank you very much.
 
Old 04-22-2012, 06:43 PM   #10
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 25,654

Rep: Reputation: 7654Reputation: 7654Reputation: 7654Reputation: 7654Reputation: 7654Reputation: 7654Reputation: 7654Reputation: 7654Reputation: 7654Reputation: 7654Reputation: 7654
Quote:
Originally Posted by Tinkster View Post
Ummm ... that's not really the Linux way, and there's ALWAYS a different method.
Specially w/ a vmware install, where throwing more disk at a problem is trivial.
  1. Find out which part of the file-system uses most space.
  2. add another "disk" to the VM, a bit bigger than what you currently have
  3. boot the VM of a live CD
  4. create an fstab entry that matches the "full" directory (most likely /usr)
  5. temporarily mount the new disk to a temp dir, e.g. /tmp/new_disk
  6. mv the full dirs content to /tmp/new_disk
  7. reboot, and you're away laughing
I concur with the "always a different method". But, the OP said they were new to Linux...adding a slice to an LVM (especially if it's the root partition), isn't really newbie-friendly. That's why I suggested going with a clean slate, but you are very correct in your suggestion to add disk space.
 
  


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
[SOLVED] No space left on device Aquarius_Girl Linux - Newbie 34 01-13-2018 04:18 PM
No space left on device jarubyh Gentoo 3 01-11-2012 11:15 AM
No space left on device even though it has free space? enine Linux - General 8 05-30-2007 04:22 PM
No space left on device clintdavis Linux - Software 2 05-04-2006 10:38 PM
No space left on the device ashwinipahuja Programming 1 06-24-2004 12:05 AM

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

All times are GMT -5. The time now is 12:45 PM.

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