Hi, I am running out of space in my linux partition, so I went to the partitioner and from a windows partition I free some space for linux. However, how could I use now this space for linux, because it is there but linux doesn't use it. How could I tell linux that there is more space and that the programs could be saved there. thanks Jose
Well... you can at most free up some space on the hdd and create a new partition... I am not sure if you could actually increase the size of your / partition, but you could, for example, backup your /home partition (if you have one) and then delete it and recreate it with the new size (this also means the space on the hdd should be next to the /home partition, or else you will have to move partitions around the hdd)... In any case :) is not simple... Good luck! Daniel Jose Sanchez wrote:
Hi,
I am running out of space in my linux partition, so I went to the partitioner and from a windows partition I free some space for linux. However, how could I use now this space for linux, because it is there but linux doesn't use it. How could I tell linux that there is more space and that the programs could be saved there.
thanks
Jose
Well, I have only one partition as / partition. There I have everything. What a did is from a windows partition create a new partition for linux. But obviously when I mount it as /usr nothing works because there is nothing saved there, so I don't know how to copy all the /usr files to this new partition and mount it as /usr. thanks Jose Daniel Secareanu wrote:
Well... you can at most free up some space on the hdd and create a new partition... I am not sure if you could actually increase the size of your / partition, but you could, for example, backup your /home partition (if you have one) and then delete it and recreate it with the new size (this also means the space on the hdd should be next to the /home partition, or else you will have to move partitions around the hdd)... In any case :) is not simple... Good luck!
Daniel
Jose Sanchez wrote:
Hi,
I am running out of space in my linux partition, so I went to the partitioner and from a windows partition I free some space for linux. However, how could I use now this space for linux, because it is there but linux doesn't use it. How could I tell linux that there is more space and that the programs could be saved there.
thanks
Jose
No, no, no, no.... Don't touch any of the system directories (/usr is for programs, binaries, etc...)... At most you can do as I said, create the new partition and mount it as /home, this is the safest way to do it... As I said before, backup original /home to /var/smth or /smth and after that mount the new /home.... Daniel Jose Sanchez wrote:
Well, I have only one partition as / partition. There I have everything. What a did is from a windows partition create a new partition for linux. But obviously when I mount it as /usr nothing works because there is nothing saved there, so I don't know how to copy all the /usr files to this new partition and mount it as /usr.
thanks
Jose
Daniel Secareanu wrote:
Well... you can at most free up some space on the hdd and create a new partition... I am not sure if you could actually increase the size of your / partition, but you could, for example, backup your /home partition (if you have one) and then delete it and recreate it with the new size (this also means the space on the hdd should be next to the /home partition, or else you will have to move partitions around the hdd)... In any case :) is not simple... Good luck!
Daniel
Ok, I will do so, thanks Jose Daniel Secareanu wrote:
No, no, no, no.... Don't touch any of the system directories (/usr is for programs, binaries, etc...)... At most you can do as I said, create the new partition and mount it as /home, this is the safest way to do it... As I said before, backup original /home to /var/smth or /smth and after that mount the new /home....
Daniel
Jose Sanchez wrote:
Well, I have only one partition as / partition. There I have everything. What a did is from a windows partition create a new partition for linux. But obviously when I mount it as /usr nothing works because there is nothing saved there, so I don't know how to copy all the /usr files to this new partition and mount it as /usr.
thanks
Jose
Daniel Secareanu wrote:
Well... you can at most free up some space on the hdd and create a new partition... I am not sure if you could actually increase the size of your / partition, but you could, for example, backup your /home partition (if you have one) and then delete it and recreate it with the new size (this also means the space on the hdd should be next to the /home partition, or else you will have to move partitions around the hdd)... In any case :) is not simple... Good luck!
Daniel
The Wednesday 2004-03-24 at 17:12 +0200, Daniel Secareanu wrote:
No, no, no, no.... Don't touch any of the system directories (/usr is for programs, binaries, etc...)... At most you can do as I said, create the new partition and mount it as /home, this is the safest way to do it...
That is not correct, /usr can be moved to another partition: in fact, I did it on my other machine (on runlevel 1). On the other hand, /etc, /bin, /sbin, can not be moved. /lib I think not as well. This is documented on the SuSE books, the admin one, chapter "Partitioning for Experts" (on paper or on line or on file, you choose), and some other chapters. -- Cheers, Carlos Robinson
Hi, thanks for the help from everyone, I created the new partition, then mounted as /usr.new as I was recommended in the list earlier, I copied everything to that partition, then I run to level 1, where I umounted /usr.new, renamed /usr to /usr.old. Changed the fstab to mount the new partition to /usr. Rebooted and it worked out. thanks Jose
The Thursday 2004-03-25 at 00:27 -0800, Jose Sanchez wrote:
Hi, thanks for the help from everyone, I created the new partition, then mounted as /usr.new as I was recommended in the list earlier, I copied everything to that partition, then I run to level 1, where I umounted /usr.new, renamed /usr to /usr.old. Changed the fstab to mount the new partition to /usr. Rebooted and it worked out.
See? It was easy. I would have started with /opt, but nevermind. -- Cheers, Carlos Robinson
Jose Sanchez wrote:
Well, I have only one partition as / partition. There I have everything. What a did is from a windows partition create a new partition for linux. But obviously when I mount it as /usr nothing works because there is nothing saved there, so I don't know how to copy all the /usr files to this new partition and mount it as /usr.
Since you're trying to move /usr, you probably don't want to do it, while booted from that system. Instead, get the latest knoppix CD image and make a disc. Then boot from that and run qtparted to resize a partition or just use the linux commands to Format the partition to the file system you want to use i.e. ext3 etc. Create a temporary mount point and mount the new partition there. Use cp -a, to make an archive copy of /usr on the new partition. Modify fstab, to mount the partition on /usr. Boot into your desktop system, and make sure you have proper access to the files in /usr. If all's OK, reboot the knoppix CD, and remove the files under the original /usr. Hope this helps.
On Wednesday 24 March 2004 06:24 pm, James Knott wrote:
Since you're trying to move /usr, you probably don't want to do it, while booted from that system. Instead, get the latest knoppix CD image and make a disc. Then boot from that and run qtparted to resize a partition or just use the linux commands to
Since information rarely changes in the /usr partition, I don't see any problem in moving it elsewhere. Just: 1) Mount the partition that will become the new /usr partition. 2) copy all the /usr files to the new partition. 3) change /etc/fstab to show that /usr is now on its own partition (the new one) 4) Reboot. Oughta work. -- +----------------------------------------------------------------------------+ + Bruce S. Marshall bmarsh@bmarsh.com Bellaire, MI 03/24/04 20:24 + +----------------------------------------------------------------------------+ "Very funny Scotty, now beam down my clothes."
The Wednesday 2004-03-24 at 08:32 -0600, Jose Sanchez wrote:
I am running out of space in my linux partition, so I went to the partitioner and from a windows partition I free some space for linux. However, how could I use now this space for linux, because it is there but linux doesn't use it.
It doesn't work that simple...
How could I tell linux that there is more space and that the programs could be saved there.
Con unas cañas y un poco de maña... :-p You have to manually mount that new partition somewhere, copy the files, and remount as appropriate. Example: Suppose you want to move /opt/* to a new partition. * Create new empty directory /opt.new * Initialize the partition (mkfs) if not already done. * Edit fstab to mount the new partition on /opt.new, and mount it. * Copy everything in /opt to /opt.new, taking care that links must stay being links, and that permissions and ownerships are respected. I'm lazy: I use mc (midnight commander) for that. * If it doesn't fit, abort, and think about some other dir to do. * Switch to runlevel 1, login as root: text only! No kde :-p * umount /opt.new * rename /opt as /opt.old * rename _empty_ /opt.new as /opt * edit fstab to mount the new partition on /opt instead of /opt.new, and mount it. * switch to runlevel 3 or 5; double check that everything works. * Finally, if everything works, delete /opt.new This procedure can be applied for most directories, except /bin, /sbin/, /lib... and a few more, that need to be available when booting, when only / is mounted. /home is a good candidate, /usr... More info: read /usr/share/doc/howto/en/mini/Hard-Disk-Upgrade.gz. If you don't have it, install it (howto*rpm). If not enough space, read it online (ldp?). Alternatively, if you don't like the above, use lvm (ask somebody else). Probably implies reformatting. -- Cheers, Carlos Robinson
participants (5)
-
Bruce Marshall
-
Carlos E. R.
-
Daniel Secareanu
-
James Knott
-
Jose Sanchez