Linux - GeneralThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Location: @ /home & @ my blog at http://saurabh-nigam.blogspot.com/
Distribution: Slackware , Fedora , Ubuntu
Posts: 35
Rep:
/ 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
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
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?
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)
No, it doesn't deal with files, only with partitions.
Quote:
Originally Posted by saurabh nigam
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.