LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 03-25-2012, 04:12 PM   #1
nestora
LQ Newbie
 
Registered: Feb 2012
Location: Spain
Distribution: Debian 6.0.4 (squeeze)
Posts: 4

Rep: Reputation: 0
root filesystem out of space. Squeeze.


Hi everybody, I'm new in Debian 6.0.4 (squeeze). It is running on HP Pavilion dv8000 (DV8211EA)

root@1:/home/papi# uname -a
Linux 1 2.6.32-5-686 #1 SMP Mon Jan 16 16:04:25 UTC 2012 i686 GNU/Linux

This is my problem:

papi@1:~$ df -lh
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/1-root 322M 302M 3.9M 99% /
tmpfs 1013M 0 1013M 0% /lib/init/rw
udev 1008M 220K 1008M 1% /dev
tmpfs 1013M 0 1013M 0% /dev/shm
/dev/sda1 228M 15M 202M 7% /boot
/dev/mapper/1-home 76G 1.1G 72G 2% /home
/dev/mapper/1-tmp 368M 11M 339M 3% /tmp
/dev/mapper/1-usr 8.3G 2.9G 5.0G 37% /usr
/dev/mapper/1-var 2.8G 368M 2.3G 14% /var

root@1:/home/papi# lvscan
ACTIVE '/dev/1/root' [332.00 MiB] inherit
ACTIVE '/dev/1/usr' [8.38 GiB] inherit
ACTIVE '/dev/1/var' [2.79 GiB] inherit
ACTIVE '/dev/1/swap_1' [3.86 GiB] inherit
ACTIVE '/dev/1/tmp' [380.00 MiB] inherit
ACTIVE '/dev/1/home' [77.19 GiB] inherit

root@1:/home/papi# lvdisplay /dev/mapper/1-root
--- Logical volume ---
LV Name /dev/1/root
VG Name 1
LV UUID 7sTMfS-H1tH-qI2m-cpkH-HHF8-1sAU-dBV5LO
LV Write Access read/write
LV Status available
# open 1
LV Size 332.00 MiB
Current LE 83
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 254:0

When I try to extend:
root@1:/home/papi# lvextend -L +5G /dev/mapper/1-root
Extending logical volume root to 5.32 GiB
Insufficient free space: 1280 extents needed, but only 0 available

root@1:/home/papi# lvextend -L +5G /dev/mapper/1-root /dev/mapper/1-home
Physical Volume "/dev/mapper/1-home" not found in Volume Group "1"

I don't Know how to liberate space from '/dev/1/home' to add it to '/dev/1/root'.

Thanks in advanced for your help.

Warm regards,

Néstor Manuel.
 
Old 03-25-2012, 06:15 PM   #2
Dutch Master
Senior Member
 
Registered: Dec 2005
Posts: 1,686

Rep: Reputation: 124Reputation: 124
Reclaim space by clearing out the package cache:
Code:
apt-get autoremove
apt-get clean
The first removes packages you no longer need (be careful as it can break stuff!) the 2nd clears out the cache. Run as root. If that doesn't get you enough, back up your data and reinstall, giving / more space: 322 MB is way to little! All partitions on my systems (desktop+server) are at least 1 GB, and more if and where appropriate. (even my desktops have a server-like partition layout, separating /, /boot, /var, /usr and of course /home)
 
Old 03-25-2012, 10:35 PM   #3
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
In outline the steps are:
  1. Shrink the /home file system.
  2. Shrink the 1-home LVM using lvreduce
  3. Enlarge the 1-root LVM using lvextend
  4. Extend the / file system.
The commands to be used in steps 1 and 4 depends on the file system type(s). df -T to display.
 
Old 03-26-2012, 01:49 AM   #4
nestora
LQ Newbie
 
Registered: Feb 2012
Location: Spain
Distribution: Debian 6.0.4 (squeeze)
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Dutch Master View Post
Reclaim space by clearing out the package cache:
Code:
apt-get autoremove
apt-get clean
The first removes packages you no longer need (be careful as it can break stuff!) the 2nd clears out the cache. Run as root. If that doesn't get you enough, back up your data and reinstall, giving / more space: 322 MB is way to little! All partitions on my systems (desktop+server) are at least 1 GB, and more if and where appropriate. (even my desktops have a server-like partition layout, separating /, /boot, /var, /usr and of course /home)
Thanks for your quick answer. But I've tried the reinstallation twice, this will be the third and I don't know how to specify the size for root partition. Do you know any URL where explain this?. I'm sorry but I'm rookie in Linux.

Warm regards.
 
Old 03-26-2012, 01:53 AM   #5
nestora
LQ Newbie
 
Registered: Feb 2012
Location: Spain
Distribution: Debian 6.0.4 (squeeze)
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by catkin View Post
In outline the steps are:
  1. Shrink the /home file system.
  2. Shrink the 1-home LVM using lvreduce
  3. Enlarge the 1-root LVM using lvextend
  4. Extend the / file system.
The commands to be used in steps 1 and 4 depends on the file system type(s). df -T to display.
Thanks for your early answer. I'll try it.

Warm regards.
 
  


Reply



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
How to Increase Space in Filesystem Root, because I only have 188.54MB left? Mihael Keehl Linux - Newbie 1 09-18-2011 01:46 PM
[SOLVED] how can i remount root filesystem as read/write after modify readonly-root file jcwkyl Linux - Newbie 3 12-21-2010 10:40 PM
What new filesystem in squeeze? stardustdk Debian 2 08-11-2010 02:11 AM
Encrypted Root Filesystem HOWTO and /dev filesystem tmillard Linux From Scratch 0 10-18-2004 03:58 PM
Not enough space for root directory on a drive with 50g free space??? auoq Linux - Newbie 1 10-13-2004 12:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 07:20 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
Open Source Consulting | Domain Registration