LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Stay without space (https://www.linuxquestions.org/questions/linux-newbie-8/stay-without-space-527264/)

vladakg85 02-10-2007 05:19 AM

Stay without space
 
Last night I stay without space on my hdd, and to be worse that was / partition. Problem is That I'm new to linux and like to experiment with softwer especialy. Now I have to erase OOffice to start KDE. I dont want to repeat this scenario so:
1) my / is now 5gb
my /home is 25gb
I asume that if I want to use a lot of programs I will be needed separate /usr. Now she is on / partition, how to detach it from root and put to another partition?

2) I have one NTFS partition 15gb. I want to format her, change to ext3, and this partition use for /usr, from linux?

3) Can I start new slackware instalation, and install it od /dev/sdax, but not to touch(not erase or change anything) on /dev/sday(home) HOW?

Phrenchax 02-10-2007 06:39 AM

1) First, create the /mnt/sdax directory. Mount your new partition there. From the command line as root:
mount -t ext3 /dev/sdax /mnt/sdax
Move all the files within /usr to /mnt/sdax. Now everything will be on the new partition, and you just need to tell the system where to find it. You will need to edit the /etc/fstab file. I recommend as root:
nano /etc/fstab
You will need to add a line as follows:
/dev/sdax /usr ext3 [options] 0 2
(I'm not too familiar with the options for ext3, but just use the same options as the / line)
Don't forget to save out of nano, use control-o.
You'll need to reboot your machine, but you should be all set.
(after you reboot and everything is properly showing up under /usr again, you can delete the /mnt/sdax directory)


2) For your partitioning/formatting needs I recommend using gparted. You can install it as part of your distro, or you can download and burn a live CD (which is what I really recommend)

http://gparted.sourceforge.net/

3) Sorry, I have never installed slackware, so I can't help you with this one...

I hope this helps, and good luck!

Guttorm 02-10-2007 06:56 AM

Deleted it because it was duplicate


All times are GMT -5. The time now is 05:19 PM.