LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-15-2009, 07:58 AM   #1
saurabh nigam
Member
 
Registered: Feb 2009
Location: @ /home & @ my blog at http://saurabh-nigam.blogspot.com/
Distribution: Slackware , Fedora , Ubuntu
Posts: 35

Rep: Reputation: 15
Unhappy / partition full


Hi friends,
I was compiling the kernel last night omn my mandriva 09 but ran out of space on my hard disk partition.So anyone can help me in resizing the partition without deleting the partiton's data
my / partition is full


Here is the /etc/fstab

#entry for /dev/sda5:
uuid=d90c643c-eb13-11dd-892a-79860145e77 / ext3 relatime 1 1

#entry for /dev/sda7 :
uuid=9ccf1df0-8107-11dd-ad34-1b2b8fd334e6 /home ext2 relatime 1 2 /dev/cdrom /media/cdrom auto umask=0,users,iocharset=utf8,noauto,ro,exec 0 0

#entry for /dev/sda1 :
uuid=A8D00D65D00D3AD8 /mnt/win_c ntfs -3g defaults 0 0

#entry for /dev/sda2 :
uuid=387028B2702878B0 /mnt/win_d ntfs -3g defaults 0 0

#entry for /dev/sda3 :
uuid=CE1434A614349405 /mnt/win_e ntfs -3g defaults 0 0
none /proc proc defaults 0 0

#entry for /dev/sda6 :
uuid=9cabfeba-8107-11dd-a5c9-39c728f9dfe6 swap swap defaults 0 0


saurabh
 
Old 02-15-2009, 08:03 AM   #2
amani
Senior Member
 
Registered: Jul 2006
Location: Kolkata, India
Distribution: Debian 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,766

Rep: Reputation: Disabled
Resize with parted magic CD

The uuids may change on / ...so replace it with /dev/sda5

Basically shrink the NTFS drives and extend / partition

'<free space> /dev/sda5 <free space>' is ok for expansion
 
Old 02-15-2009, 09:09 AM   #3
saurabh nigam
Member
 
Registered: Feb 2009
Location: @ /home & @ my blog at http://saurabh-nigam.blogspot.com/
Distribution: Slackware , Fedora , Ubuntu
Posts: 35

Original Poster
Rep: Reputation: 15
friends well i do not have entry for /usr in fstab since it is mounted under / so how can i make a new entry for /usr
can i do it as follows

cp -pRP /usr/* /mnt/win_c/usr/

(that means to a folder in windows already mounted partition)
if yes then how can i know uuid

saurabh
 
Old 02-15-2009, 11:17 AM   #4
TITiAN
Member
 
Registered: Mar 2008
Location: NRW, Germany
Distribution: Arch Linux, using KDE/Plasma
Posts: 392

Rep: Reputation: 49
you shouldn't do that as it will erase the permission settings of the contents of /usr (the -p flag doesn't help as far as i know, because the ntfs filesystem uses another permissions system)
but you can create a .tar.gz and then extract it onto a new partition, like ...

Code:
tar -czf /mnt/win_c/usr.tar.gz /usr
then use gparted to shrink a partition and create a new linux compatible partition (e.g. with type ext2 or ext3) in the resulting free space.
ALWAYS BE CAREFUL WHEN YOU WORK ON PARTITIONS, YOU CAN EASILY LOSE ALL YOUR DATA
then edit your fstab accordingly, mount /usr and extract the file /mnt/win_c/usr.tar.gz into /usr

would that be a good idea for you?
 
Old 02-15-2009, 11:29 AM   #5
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Quote:
Originally Posted by saurabh nigam View Post
Hi friends,
I was compiling the kernel last night omn my mandriva 09 but ran out of space on my hard disk partition.So anyone can help me in resizing the partition without deleting the partiton's data
my / partition is full
Uh, if you just want to compile a kernel, wouldn't it be easier to just mount another partition on /usr/src or wherever your kernel source tree is?
 
Old 02-15-2009, 11:50 AM   #6
TITiAN
Member
 
Registered: Mar 2008
Location: NRW, Germany
Distribution: Arch Linux, using KDE/Plasma
Posts: 392

Rep: Reputation: 49
if you have free space on your /home partition, you can also create a new folder there, move your linux source tree there and make a link there from your directory in /usr
the command line procedure could look like this (note that this is not useful for copy+paste, you have to adapt it)
Code:
mkdir /home/linux-tree
mv -r /usr/src/linux[your-version]/* /home/linux-tree
rmdir /usr/src/linux[your-version]
ln -s /home/linux-tree /usr/src/linux[...]
that would be easiest, i think
 
Old 02-17-2009, 02:05 AM   #7
saurabh nigam
Member
 
Registered: Feb 2009
Location: @ /home & @ my blog at http://saurabh-nigam.blogspot.com/
Distribution: Slackware , Fedora , Ubuntu
Posts: 35

Original Poster
Rep: Reputation: 15
Well friends i can only boot in safe mode
everytime i try to boot normally it says not enough space

i ran
df
it outputs

filesystem 1 kblocks Used Available Use % Mounted on
/dev/sda5 6301256 6299732 0 100% /
/dev/sda7 3842376 1626316 2216060 43% /home




i tried to keep a backup of /usr data by tarring it

tar -czf /mnt/win_e/usr.tar.gz /usr

it outputs:
tar: Removing leading '/' from member names
gzip:stdout:No space left on device


Can i use gparted here & how

Last edited by saurabh nigam; 02-17-2009 at 02:06 AM.
 
Old 02-17-2009, 04:52 AM   #8
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Quote:
Can i use gparted here & how
No, it doesn't deal with files, only with partitions.


Quote:
Originally Posted by saurabh nigam View Post
Well friends i can only boot in safe mode
everytime i try to boot normally it says not enough space

i ran
df
it outputs

filesystem 1 kblocks Used Available Use % Mounted on
/dev/sda5 6301256 6299732 0 100% /
/dev/sda7 3842376 1626316 2216060 43% /home




i tried to keep a backup of /usr data by tarring it

tar -czf /mnt/win_e/usr.tar.gz /usr

it outputs:
tar: Removing leading '/' from member names
gzip:stdout:No space left on device
So your disk was filled with an incomplete backup, all you need is to locate it and delete it. Assuming that the safe mode allows you write operations all you need is du to locate where the space is being wasted, and rm to delete the incomplete backup. If you know where the file lives then that will ease the process.

If you can't write in this "safe mode" then you will probably need a livecd to boot, then mount the partition somewhere and operate from there.
 
Old 02-17-2009, 07:31 AM   #9
saurabh nigam
Member
 
Registered: Feb 2009
Location: @ /home & @ my blog at http://saurabh-nigam.blogspot.com/
Distribution: Slackware , Fedora , Ubuntu
Posts: 35

Original Poster
Rep: Reputation: 15
well TITiAN i tried
rmdir /usr/src/linux[your-version]

but it too failed
i think thats because i have 0 bytes free space
i cant delete it

till now nothing is working

well tell me if i have a live cd
& free space how can i make /usr partition

Last edited by saurabh nigam; 02-17-2009 at 07:38 AM.
 
Old 02-17-2009, 11:10 AM   #10
amani
Senior Member
 
Registered: Jul 2006
Location: Kolkata, India
Distribution: Debian 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,766

Rep: Reputation: Disabled
rm -rf ....

then possibly rmdir ...

man rmdir

remove the unfinished backups
 
Old 02-17-2009, 01:16 PM   #11
saurabh nigam
Member
 
Registered: Feb 2009
Location: @ /home & @ my blog at http://saurabh-nigam.blogspot.com/
Distribution: Slackware , Fedora , Ubuntu
Posts: 35

Original Poster
Rep: Reputation: 15
Talking

Thanks a lot amani
I can now boot normally into my mandriva
i used
rm -rf
to remove unused space
Really happy to see you back Mandy
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Full Partition need help DigiCrime *BSD 8 06-25-2008 05:32 PM
Why has my / partition full??? cpd05 Debian 9 01-31-2007 05:09 AM
Partition full giraf Debian 10 08-10-2006 09:08 AM
root partition gets full when using cp -a on another partition timsch75 Linux - General 2 10-02-2005 06:41 AM
why the partition is full? xyfan Linux - Newbie 4 11-09-2003 05:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:55 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