LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 02-15-2010, 07:02 AM   #1
Colin M
LQ Newbie
 
Registered: Oct 2009
Posts: 8

Rep: Reputation: 0
Unhappy How do I increase the size of my "Home " folder.


I want to increase the size of my "Home" folder. I use it for all my work, music and videos. The partition is 200Gbs and I am using 28Gbs. To me, that means that I have 178Gbs left, but no, I keep getting the message "You only have 645Mbs of space left". Why is this, and how do I resolve it. I looked at "properties for my home folder and it says :-

NAME:- colin
TYPE:- Folder(inode/directory)
CONTENTS:- 354 items, totalling 6.2GB

LOCATION:- on the desktop
VOLUME:- unknown

FREE SPACE:- 702.8MB.

I would appreciate it if someone could tell me how to increase the size of this folder in a simple manner.

Thanks in advance

Colin M
 
Old 02-15-2010, 07:20 AM   #2
slightlystoopid
Member
 
Registered: Jan 2010
Distribution: Arch, Gentoo, FreeBSD
Posts: 64

Rep: Reputation: 16
what does `df -Thx tmpfs` say?
 
Old 02-15-2010, 07:23 AM   #3
hostmaster
Member
 
Registered: Feb 2007
Posts: 55

Rep: Reputation: 17
Please post the output of following commands to see if its possible

df -h
vgs
lvs
vgdisplay -v
 
Old 02-15-2010, 07:53 AM   #4
Colin M
LQ Newbie
 
Registered: Oct 2009
Posts: 8

Original Poster
Rep: Reputation: 0
root@mint:/home/colin# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/loop0 13G 12G 500M 96% /
udev 628M 292K 627M 1% /dev
none 628M 104K 628M 1% /dev/shm
none 628M 316K 627M 1% /var/run
none 628M 0 628M 0% /var/lock
none 628M 0 628M 0% /lib/init/rw
/dev/sdb6 184G 15G 169G 9% /host
root@mint:/home/colin# vgs
root@mint:/home/colin# lvs
root@mint:/home/colin# vgdisplay -v
Finding all volume groups
root@mint:/home/colin#
 
Old 02-15-2010, 08:06 AM   #5
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,576
Blog Entries: 31

Rep: Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195
Output from fdisk -l would be helpful.

EDIT: that's a letter l, short for "list".

EDIT 2: from the command output already given, your /home directory is on the / file system. To increase the space available for files in your /home directory you must increase the size of the / file system or put /home on another file system. Hopefully someone will explain how / is on /dev/loop0.

Last edited by catkin; 02-15-2010 at 08:12 AM.
 
Old 02-15-2010, 08:58 AM   #6
hostmaster
Member
 
Registered: Feb 2007
Posts: 55

Rep: Reputation: 17
You have 169G free in /host partition. You can link your home directory with a folder on /host partition and then copy all you files from home directory to that new folder.
Login as root

cd /
mkdir /host/myhome
mv /home/* /host/myhome/
rm -rf /home
ln -s /host/myhome /home
 
Old 02-15-2010, 10:16 AM   #7
Colin M
LQ Newbie
 
Registered: Oct 2009
Posts: 8

Original Poster
Rep: Reputation: 0
This is what I get when I try hostmasters fix, and when I run fdisk -l

root@mint:/home/colin# cd /
root@mint:/# mkdir /host/myhome
mkdir: cannot create directory `/host/myhome': File exists
root@mint:/# mv home/colin /host/myhome
mv: inter-device move failed: `home/colin' to `/host/myhome/colin'; unable to remove target: Is a directory
root@mint:/# mv /home/* /host/myhome
mv: inter-device move failed: `/home/colin' to `/host/myhome/colin'; unable to remove target: Is a directory
root@mint:/# fdisk -l

Disk /dev/sda: 20.5 GB, 20547841536 bytes
255 heads, 63 sectors/track, 2498 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xd553d553

Device Boot Start End Blocks Id System
/dev/sda1 2 2498 20057152+ f W95 Ext'd (LBA)
/dev/sda5 2 2498 20057121 7 HPFS/NTFS

Disk /dev/sdb: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x1a5712ec

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 13725 110246031 7 HPFS/NTFS
/dev/sdb2 13726 38913 202322610 f W95 Ext'd (LBA)
/dev/sdb5 13726 14936 9727326 7 HPFS/NTFS
/dev/sdb6 14937 38913 192595221 7 HPFS/NTFS
root@mint:/#
 
Old 02-15-2010, 10:20 AM   #8
Colin M
LQ Newbie
 
Registered: Oct 2009
Posts: 8

Original Poster
Rep: Reputation: 0
This is what I got when I ran df -Thx tmpfs

root@mint:/# df -Thx tmpfs
Filesystem Type Size Used Avail Use% Mounted on
/dev/loop0 ext3 13G 7.5G 4.7G 62% /
/dev/sdb6 fuseblk 184G 18G 167G 10% /host
root@mint:/#
 
Old 02-15-2010, 10:35 AM   #9
Bratmon
Member
 
Registered: Jul 2009
Location: 75.126.162.205:80
Distribution: Arch / Mint 17
Posts: 297
Blog Entries: 3

Rep: Reputation: 50
Are you using a livecd?
 
Old 02-15-2010, 10:59 AM   #10
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,576
Blog Entries: 31

Rep: Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195
Quote:
Originally Posted by Colin M View Post
This is what I get when I try hostmasters fix, and when I run fdisk -l

root@mint:/home/colin# cd /
root@mint:/# mkdir /host/myhome
mkdir: cannot create directory `/host/myhome': File exists
root@mint:/# mv home/colin /host/myhome
mv: inter-device move failed: `home/colin' to `/host/myhome/colin'; unable to remove target: Is a directory
root@mint:/# mv /home/* /host/myhome
mv: inter-device move failed: `/home/colin' to `/host/myhome/colin'; unable to remove target: Is a directory
Hostmaster's suggestion was good but there were a couple of problems.

When following a procedure like that it's a good idea to stop when the system gives an error message. The first problem was that /host/myhome already exists, so use /host/<something else> that does not exist, maybe /host/h -- but use /bin/ls -l /host to see what's in /host first.

The second problem was that /host/myhome/colin also exists. Have you already tried moving your home directory onto /hosts? Were you trying to run the same commands again?

I hope you did not run the final rm -f /home because that would have deleted /home and all the files under it, and the error messages show that they would not have been copied anywhere else first!

It might be safest if you posted the output of
Code:
/bin/ls -ad /home/*
/bin/ls -ad /host/* /host/*/*
before trying again.
 
Old 02-15-2010, 06:35 PM   #11
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
Is it a Mint thing that all partitions are MS types, not Linux?
 
Old 02-15-2010, 06:42 PM   #12
Bratmon
Member
 
Registered: Jul 2009
Location: 75.126.162.205:80
Distribution: Arch / Mint 17
Posts: 297
Blog Entries: 3

Rep: Reputation: 50
Quote:
Originally Posted by chrism01 View Post
Is it a Mint thing that all partitions are MS types, not Linux?
I think he might be using the livecd.
 
  


Reply

Tags
folder, resizing


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] how to simulate "mkdir -p /home/blah1/blah2/blah3" in "c" where only /home exist platinumedge Linux - Newbie 4 10-04-2009 07:28 PM
How to create a "fixed-space"-a folder that is EXT2 inside and whatever size-50MB? linus72 Linux - Newbie 3 04-08-2009 09:47 AM
How to issue "ls" command start with the largest file size in a folder? fjkum Linux - Newbie 5 07-27-2006 04:28 AM
Why I cant open "Home" folder when I click on Home Thumbnail riba43 SUSE / openSUSE 2 04-17-2006 01:49 AM
my "home" folder is empty linuxnoub Linux - Newbie 3 10-28-2003 09:40 AM


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