[opensuse] Need explanation - question 1
Hello SuSE people Recently installed 10.2 on a new hard drive. Triple boot all on their own harddrives. I gave 10.2 a 3GB partition for / I also made separate partitions for /tmp, /var, and /home, each 10GB in size. I went to update 10.2 and was warned that the / partition is 97% full. How can that be? Does everthing on the DVD install into / ?? Now, do I have to reinstall 10.2 after making the / partition much larger ?? Some please explain what the problem is here. Please ?? Bob S. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Friday 2006-12-01 15:52, usr wrote:
... I gave 10.2 a 3GB partition for /
I also made separate partitions for /tmp, /var, and /home, each 10GB in size. I went to update 10.2 and was warned that the / partition is 97% full.
/tmp, /var, and /home don't necessarily have a lot of stuff in them, especially after a fresh install. Big directories include /usr and /opt depending on what packages you have installed. Since you did not make separate volumes for those locations everything in /usr and /opt is on the same device as root (or / ). I have effectively the same setup. With just about everything worth installing (in x86_64) from the 10.2 DVD my root ( / ) occupies quite a bit of space: Filesystem Size Used Avail Use% Mounted on /dev/hda5 22G 11G 9.7G 54% / (P.S. Set your computer's clock.) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Onsdag 07 marts 2007 07:48 skrev Ken Jennings:
On Friday 2006-12-01 15:52, usr wrote:
... I gave 10.2 a 3GB partition for /
I also made separate partitions for /tmp, /var, and /home, each 10GB in size. I went to update 10.2 and was warned that the / partition is 97% full.
/tmp, /var, and /home don't necessarily have a lot of stuff in them, especially after a fresh install.
Big directories include /usr and /opt depending on what packages you have installed. Since you did not make separate volumes for those locations everything in /usr and /opt is on the same device as root (or / ).
I have effectively the same setup. With just about everything worth installing (in x86_64) from the 10.2 DVD my root ( / ) occupies quite a bit of space:
Filesystem Size Used Avail Use% Mounted on /dev/hda5 22G 11G 9.7G 54% /
(P.S. Set your computer's clock.)
Hi, may we see the output of "df -h"? -- ------------------------------------------------------------------------- Med venlig hilsen/Best regards Verner Kjærsgaard -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Wed, 2007-03-07 at 10:42 +0100, Verner Kjærsgaard wrote:
Onsdag 07 marts 2007 07:48 skrev Ken Jennings:
On Friday 2006-12-01 15:52, usr wrote:
...
may we see the output of "df -h"?
Here's my layout, since about the 8.0 days, now fully loaded with 10.2. /boot is ext2, all else is reiserfs. master:~ # df -h Filesystem Size Used Avail Use% Mounted on /dev/sdb1 3.1G 193M 2.9G 7% / udev 506M 216K 506M 1% /dev /dev/sda1 54M 9.6M 41M 19% /boot /dev/md0 11G 6.6G 3.5G 66% /data1 /dev/sda10 39G 1.5G 38G 4% /home /dev/sdb7 132G 61G 71G 47% /local /dev/sda7 4.1G 1.4G 2.7G 34% /opt /dev/sda9 11G 74M 10G 1% /srv /dev/sda8 4.0G 9.2M 3.8G 1% /tmp /dev/md1 11G 2.3G 7.8G 23% /usr /dev/sdb2 5.1G 1.4G 3.7G 27% /usr/lib /dev/sda3 5.1G 468M 4.6G 10% /var When I do a fresh install, I copy /home into /data1 (ie /data1/home92), then format everything except /data1 and /local. (I'd hate to accidentally loose one of the kids' homework papers...or the wife's favorite recipe!) I used to keep /usr and /usr/lib on separate hard drives, to improve load speed, but now /usr is on raid, and touches both sda and sdb anyway. I can't tell a big difference. I should probably rethink that and include /local in a raid instead...next computer, I guess. Tom in NM -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Wednesday 07 March 2007 04:42, Verner Kjærsgaard wrote:
Onsdag 07 marts 2007 07:48 skrev Ken Jennings:
On Friday 2006-12-01 15:52, usr wrote:
... I gave 10.2 a 3GB partition for /
I also made separate partitions for /tmp, /var, and /home, each 10GB in size. I went to update 10.2 and was warned that the / partition is 97% full.
Thanks for replying gentlemen. Is appreciated.
/tmp, /var, and /home don't necessarily have a lot of stuff in them, especially after a fresh install.
Big directories include /usr and /opt depending on what packages you have installed. Since you did not make separate volumes for those locations everything in /usr and /opt is on the same device as root (or / ).
I have effectively the same setup. With just about everything worth installing (in x86_64) from the 10.2 DVD my root ( / ) occupies quite a bit of space:
Filesystem Size Used Avail Use% Mounted on /dev/hda5 22G 11G 9.7G 54% /
(P.S. Set your computer's clock.)
Whoops !!! Not too far off, huh? ........Done
Hi,
may we see the output of "df -h"?
Yes, here it is: bob@linux-c7cx:~> df -h Filesystem Size Used Avail Use% Mounted on /dev/sda1 3.0G 2.9G 0 100% / udev 503M 188K 502M 1% /dev /dev/sda9 10G 8.0K 10G 1% /fat /dev/sda5 9.9G 1.7G 7.8G 18% /home /dev/sda8 9.9G 151M 9.3G 2% /local /dev/sda7 9.9G 156M 9.2G 2% /tmp /dev/sda6 9.9G 368M 9.0G 4% /var bob@linux-c7cx:~> Guess I really didn't need to ask this question. I already knew that I screwed up on the partitioning scheme. I guess I could move /usr or /opt to one of my new empty and separate partitions like /local. I remember seeing something about that a few years ago. I'd have to find it though........Does anybody remember?? Or.... I guess I could just start over. (but I've already moved so much over from 10.0 though.) Bob S.
-- ------------------------------------------------------------------------- Med venlig hilsen/Best regards Verner Kjærsgaard
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Torsdag 08 marts 2007 06:40 skrev Bob S:
On Wednesday 07 March 2007 04:42, Verner Kjærsgaard wrote:
Onsdag 07 marts 2007 07:48 skrev Ken Jennings:
On Friday 2006-12-01 15:52, usr wrote: [...] Yes, here it is: bob@linux-c7cx:~> df -h Filesystem Size Used Avail Use% Mounted on /dev/sda1 3.0G 2.9G 0 100% / udev 503M 188K 502M 1% /dev /dev/sda9 10G 8.0K 10G 1% /fat /dev/sda5 9.9G 1.7G 7.8G 18% /home /dev/sda8 9.9G 151M 9.3G 2% /local /dev/sda7 9.9G 156M 9.2G 2% /tmp /dev/sda6 9.9G 368M 9.0G 4% /var bob@linux-c7cx:~>
Guess I really didn't need to ask this question. I already knew that I screwed up on the partitioning scheme. I guess I could move /usr or /opt to one of my new empty and separate partitions like /local. I remember seeing something about that a few years ago. I'd have to find it though........Does anybody remember??
Or.... I guess I could just start over. (but I've already moved so much over from 10.0 though.)
Bob S.
Hi Bob and list, - first; DON'T FOLLOW MY ADVISE UNTIL CONFIRMED BY OTHERS FROM THE LIST ! (:-)) - but as I see it, one should be able to (say) Knoppix boot the machine and do a complete recursive copy of one or more of the fat dirs from (not /boot, not /root) the original root partition onto, say, /local/some-dir. And then symlink from the original to the new place. I seem to remember doing this years ago - back when I really didn't know what I was doing...but it worked. ok? -- ------------------------------------------------------------------------- Med venlig hilsen/Best regards Verner Kjærsgaard -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Bob S wrote:
Guess I really didn't need to ask this question. I already knew that I screwed up on the partitioning scheme. I guess I could move /usr or /opt to one of my new empty and separate partitions like /local. I remember seeing something about that a few years ago. I'd have to find it though........Does anybody remember?? Suggested move procedure:
(in the example below, I move /usr because it's supposed to be the largest. Please use 'du -ks' to find out the respective sizes of /usr and /opt on your system and move the largest of the 2). - login as root on the console - go single-user mode # init 1 - copy all contents from /usr to /local # cd /usr # tar -cvf - * | (cd /local ; tar -xf - ) (the command will preserve mode, ownership and symlinks) - edit your /etc/fstab to make sure that the filesystem now called /local (/dev/sda8) will be mounted on /usr instead. - rename /usr to /usr-old # cd / # mv /usr /usr-old (when you do this, any executable relying on shared libs stored below /usr/lib will stop working -- 'mv' and 'mkdir' only rely on /lib, so you should be safe). - create the new mountpoint for /usr # mkdir /usr - reboot # reboot After the reboot, if all goes well, you should have an empty /local directory on the root FS, the old '/local' filesystem should now be mounted as /usr (and contain what the old '/usr' used to). On the / filesystem, below /usr-old you'll find the old contents. Once you've checked that the system behaves as it should, you can remove the now unused /usr-old. # cd / # rm -rf /usr-old This will give you back some free space on the / filesystem. Please review my recommendations before carrying them out to make sure I haven't left out anything. "Going back" in case of problem is always possible until you perform the last step (removal of /usr-old). HTH Cheers. Bye. Ph. A. -- *Philippe Andersson* Unix System Administrator IBA Particle Therapy | Tel: +32-10-475.983 Fax: +32-10-487.707 eMail: pan@iba-group.com <http://www.iba-worldwide.com> The contents of this e-mail message and any attachments are intended solely for the recipient (s) named above. This communication is intended to be and to remain confidential and may be protected by intellectual property rights. Any use of the information contained herein (including but not limited to, total or partial reproduction, communication or distribution of any form) by persons other than the designated recipient(s) is prohibited. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free. Ion Beam Applications does not accept liability for any such errors. Thank you for your cooperation.
On Friday 09 March 2007 04:39, Philippe Andersson wrote:
Bob S wrote:
Guess I really didn't need to ask this question. I already knew that I screwed up on the partitioning scheme. I guess I could move /usr or /opt to one of my new empty and separate partitions like /local. I remember seeing something about that a few years ago. I'd have to find it though........Does anybody remember??
Suggested move procedure:
(in the example below, I move /usr because it's supposed to be the largest. Please use 'du -ks' to find out the respective sizes of /usr and /opt on your system and move the largest of the 2).
- login as root on the console
- go single-user mode
# init 1
- copy all contents from /usr to /local
# cd /usr # tar -cvf - * | (cd /local ; tar -xf - )
(the command will preserve mode, ownership and symlinks)
- edit your /etc/fstab to make sure that the filesystem now called /local (/dev/sda8) will be mounted on /usr instead.
- rename /usr to /usr-old
# cd / # mv /usr /usr-old
(when you do this, any executable relying on shared libs stored below /usr/lib will stop working -- 'mv' and 'mkdir' only rely on /lib, so you should be safe).
- create the new mountpoint for /usr
# mkdir /usr
- reboot
# reboot
After the reboot, if all goes well, you should have an empty /local directory on the root FS, the old '/local' filesystem should now be mounted as /usr (and contain what the old '/usr' used to). On the / filesystem, below /usr-old you'll find the old contents.
Once you've checked that the system behaves as it should, you can remove the now unused /usr-old.
# cd / # rm -rf /usr-old
This will give you back some free space on the / filesystem.
Please review my recommendations before carrying them out to make sure I haven't left out anything. "Going back" in case of problem is always possible until you perform the last step (removal of /usr-old).
Thanks guys, Since it was a new install I just went back and reinstalled with a much larger / directory. Figured it was better for the future anyway. Took me another 3 or 4 hours to move my stuff from 10.0 to 10.2 but all is well now. I will keep this mail for future reference if I should need to move some partitions around. Again thanks for helping. Bob S. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Saturday 2007-03-10 at 00:41 -0500, Bob S wrote:
I will keep this mail for future reference if I should need to move some partitions around. Again thanks for helping.
There is a whole howto dedicated to the subject ;-) - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFF8plytTMYHG2NR9URAucOAJ4vmE+FIB6IYAjc2n9lbEfPxhRMaQCdFS6Z iA+myltkH26ct/CszKLubQc= =xHbp -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Friday 2006-12-01 at 15:52 -0500, usr wrote:
Recently installed 10.2 on a new hard drive. Triple boot all on their own harddrives.
I gave 10.2 a 3GB partition for /
I also made separate partitions for /tmp, /var, and /home, each 10GB in size. I went to update 10.2 and was warned that the / partition is 97% full.
How can that be? Does everthing on the DVD install into / ??
Now, do I have to reinstall 10.2 after making the / partition much larger ?? Some please explain what the problem is here. Please ??
Known "feature". Simple get to one of the terminals, and manually mount the missing partitions. Use "mount" and "df" to see what is mounted and where, then mount whatever is needed, manually. I assume that you haven't installed yet 10.2 and you are waiting at the dvd install/upgrade screen. Or... no, hold on, you are asking something different. You have already installed, giving 3GB for /, and extra partitions for /tmp, /var, and /home, and now you see that / is almost full... obviously. Most of the stuff goes under /usr and /opt, which in your case goes to /. Well, you could substitute /var with /usr, but /var can also be big. There is a chapter in the admin book about proper partitioning for systems, you should read it. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFF7uSTtTMYHG2NR9URAn4zAJ4oWnrgRc8Bo5NBS//a/4X4T2k8FgCglYZc k+UJ7ljkKTwMwCIfyzGOjNU= =84qG -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (7)
-
Bob S
-
Carlos E. R.
-
Ken Jennings
-
Philippe Andersson
-
Tom Patton
-
usr
-
Verner Kjærsgaard