[SOLVED] I need to increase the size of /var - adjacent to an NTFS partition
MageiaThis forum is for the discussion of Mageia Linux.
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.
I need to increase the size of /var - adjacent to an NTFS partition
Hi good people.
I'm having problems with the size of my /var partition - it is full! (I tried installing 3 different software pgms at the same time but I have experienced problems in the past, now it's time to bite the bullet). I have to mention it is 6.8Gb in size (see screen dump) - 2.7Gb of that is taken up by a pgm that stores it's data in there for some reason.
what I want to do is shrink the NTFS partition and then move it to the right. Then I hope to be able to expand the /var partition into the free space after moving the NTFS partition.
Okay, is this all possible WITHOUT causing problems with my Mageia bootup (seeing that system stuff and the logs etc. are kept there!) OR
Am I going to have to re-install my Mageia system allocating a larger size of /var (once I shrink and move the NTFS partition)
There is almost never a need to re-install (Linux) for this sort of thing.
That is useless - run this and post back in-line as text, not a photo - use [code] tags.
if you cannot figure out what to delete, to give more space, as this is a log directory that can hold over sized log files and one that are not actually needed to be kept track of for over 10 years. you maybe able to get away with deleting some and putting that on a schedule to try and keep the size down. that being said:
resizing partitions in itself should not effect the over all operation of the Operating System. the only thing that you'll have to cross your fingers for it data loss or corruption during the process of moving it over if the program doing the work need to do so. Mount points being the same, the system does not take into account of the size of your partition, other than the, does it have, or not have enough room to put anything so it will , or will not, put anything in them anymore.
backing up important data prior to is always suggested. how it is backed up, is up to the user.
syg00,
Sorry for posting image, I'm a visual guy not a cli guy, and not up with most cmds used in Linux - I just use it. I also forgot to mention that I can't install anything now as I know /var is where temp files are put when installing stuff. Dolphin tells me that there is 0 bytes free on /var (as does the result of the first cmd).
anyway, here is the results of the cmds you asked for:
BW-userx,
I was trying to install a pgm to interrogate /var to tell me what is taking up all of the space (besides my Application that I know takes up 2.7Gb).
I wouldn't be confident in deleting anything out of there as I have screwed up my system too many times through my own fault.
Seeing that /var is a pretty important part of the system that is why I'm hesitant to touch it, but I really need to to give me some breathing space.
is what you're working with on the same hdd, move one of them as it looks like /var being on /sdb3 puts it in the middle of the other two. shrink one of them, format freed up space to ext4 then merge it into /sdb3, or bind mount var into a different larger partition/directory, depending on spin up assignment of drives. though it is not apparent that you're having an issue of that with / root already on a different drive.
You might be able to find some space somewhere else, and free it up by moving a partition, or using an existing one that has the same format as /var then create a directory and bind mount it to /var , or just move the entire /var to a larger partition
just an idea. this has to be a desktop with more than two drives. room to install another one? then move /var onto it, and have fstab mount it from there.
Nah, don't mind me - images are ok if they have what we need. I get cranky when I have to turn on javascript for those sites and the data isn't there.
You may know all the following, but bear with me.
To expand a (normal) partition unallocated space must exist contiguous to it - like the small bits you see in the parted listing. Presuming you want to scrape some space from /dev/sdb5 (/media/win_d2), it isn't straight-forward but is do-able using gparted - best done using their liveCD.
First you need to move the start of that NTFS partition - pick a number, say 9 Gig. Then move the beginning of the extended partition /dev/sda4 likewise - this is just a container for logical partitions. Then you can extend /dev/sda3 to use the space.
gparted is a GUI tool that allows you to drag the edges of partitions around, or right click and specify numbers to suit. Make sure you "apply" each change before doing the next action. Great tool, I use it often, even on NTFS.
I have confidence it will work as expected, particularly for /var, but NTFS is M$oft proprietary code, so note my sigline.
syg00 (and BW-userx as well),
Sorry for the late reply. I've been reluctant to tackle this and I have been waiting for the right time.
Well, I finally took the plunge and did the deed. I actually used a combination of tools - 1 on Windows and the GParted Live CD. So, the combination worked successfully!!! Writing this on my newly booted system with a MUCH larger /var partition.
So, thanks to both of you for your help, most appreciated!!!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.