Fedora 8: How to re-allocate server hardisk partition size?
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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.
Fedora 8: How to re-allocate server hardisk partition size?
Hi. I have a server with 80GB HDD, running Fedora 8. I type in 'df -h -T' in the terminal to get the filesystem listing as shown below. I have a few question and hope you guys can help me out.
1. Is it possible to re-allocate the partition size safely using the command line interface only? I would like to maximise the disk space for use on '/home'. So, How can I move/relocate the free 7.8G (mounted on /usr) and 8.9GB (mounted on /var) to /home (sda8)?
2. If it is a NO NO to the first question, is '/usr' and '/var' as shown above safe for me to use? Meaning, can I save files to that directory without screwing up linux?
3. I know that hard disk usually show less space than advertise. But as you can see above, the total size is about 71GB only. And I am suppose to have a 80GB hdd, so is that normal about 9GB has disappeared? Does the boot section use up so much disk space?
4. In Fedora 8, when a file is deleted, is it totally removed and all disk space made available? Or is there a 'trash' folder that i need to empty occasionally, something equivalent to 'Windows Recycle Bin' in order to free up more disk space?
1. Is it possible to re-allocate the partition size safely using the command line interface only? I would like to maximise the disk space for use on '/home'. So, How can I move/relocate the free 7.8G (mounted on /usr) and 8.9GB (mounted on /var) to /home (sda8)?
3. I know that hard disk usually show less space than advertise. But as you can see above, the total size is about 71GB only. And I am suppose to have a 80GB hdd, so is that normal about 9GB has disappeared? Does the boot section use up so much disk space?
Harddisk vendor use 1M=1000 bytes , actually 1M=1024bytes. so a little bit difference occur.
4. In Fedora 8, when a file is deleted, is it totally removed and all disk space made available? Or is there a 'trash' folder that i need to empty occasionally, something equivalent to 'Windows Recycle Bin' in order to free up more disk space?
if u delete file in x-windows, u may find it at ~/.Trash
Delete these file to get more space.
Hi. Thanks for the info on LVM, I am reading up on it now. But it does seems getting a bit complicated for wanting to change the size of the mounted drive (/var and /usr) to /home
BTW, can any user save files to /var and /usr, or does the access rights need to be change?
Hi. Thanks for the info on LVM, I am reading up on it now. But it does seems getting a bit complicated for wanting to change the size of the mounted drive (/var and /usr) to /home
BTW, can any user save files to /var and /usr, or does the access rights need to be change?
Cheers.
u may change the user home directory u like at /etc/passwd.
but I don't suggest u use this way to solve your problem.
To just make things simple and not touch anything that would screw the OS up.
Is it safe that I just create a folder and save files to the '/var' and '/usr' directory on Linux?
As I notice the following info:
Quote:
/usr (equivalent to Program Files /usr directory tends to store most software you install for personal use including media players and browsers.
/var (equivalent to c:\windows\temp) Linux uses the /var folder to temporarily store information for currently open programs, it generally isnt deleted since it caches software and aids in quick loading.
I haven't tried it yet. But do I need to change read/write permission for user to write to those folders?
2. Provided that /usr and /var are mounted with the same options as /home, there's no technical reason you couldn't create a directory /var/home2 or /usr/home2 and put data (like new user accounts) there. It's non-standard though and could get confusing.
Check the mount options by simply running 'mount' at the command line.
3. It's normal. It's the way HDD manufacturers calculate disk space, plus there's some reserved space for superblocks (about 3% I think).
4. At the command prompt deleted is usually deleted. Gone. In a graphical windows manager there may be a recycle bin (as noted above).
Your problem is you're running out of disk space. The workaround in #2 might tide you over for a while but eventually you'll face the same issue again.
The simple solution is to add a second harddrive. If your system is using LVM you can probably add the new harddrive space to /home. If not, you can mount the new drive somewhere like /home2 and put data (e.g., new user accounts) there.
To see if you're using LVM, type 'lvs' at the command line:
Your problem is you're running out of disk space. The workaround in #2 might tide you over for a while but eventually you'll face the same issue again.
Yup. Running out of disk space on /home. But, there's plenty of space on /var and /usr that i can used.
The full story is the server is setup for ftp. Everything is done in command line interface, no GUI required. Files go in and out, don't stay for long, so it seems the suggested workaround #2 would work fine for me, as I don't seems to run any more programs that would require the use of space on /var and /usr. And i don't want to change any serious settings that would screw up the system.
So the next question, is, what command (chmod something?) should i type to give access to my username to have read/write access to /var and /usr in order to create an extra folder, say named 'FTP_TEMP'? What should i add behind #chmod...
The problem will raise again if u choose #2, its non standard and it will
be confusing everyone someday.
Just buy a new hd, make lvm from that so in further you can resize it
online.
Well, if u insist to choose #2, if u create dir --> /usr/FTP_TEMP,
u can change owner/group owner to your user and run chmod 760 to that folder, to ensure u can read and write others cannot.
Well, the problem is I don't have physical access to the server, i paid for the server service from a webhosting company. They set the file system up that way, and I use putty terminal to access it, all the control i have is only from the command line interface. Any request for them to change anything or reinstall the OS to my specification means I have to pay them more $$$$$ .... so adding a HDD is not an option.
Ya... the method of using /usr/FTP_TEMP or /var/FTP_TEMP definately sound non standard, but seems the only way i have eh . Should be ok as I will be the one accessing it and will remember it. Thanks.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.