[opensuse] 10.0 ? remove un-needed languages
Hi, I am trying to clear some disc space. Is there an easy (safe) way to remove all languages apart from english ? Or should I just go to usr/lib/locale and manually delete everything that isn'r en... TIA Francesco -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Hi, ,------[ Earlier I said :: ] | > I am trying to clear some disc space. Is there an easy | > (safe) way to remove all languages apart from english ? Or | > should I just go to usr/lib/locale and manually delete | > everything that isn'r en... `------ I have free space under /usr/local (separate partition). Is it possible to copy /usr/lib and /usr/lib across to /usr/local and then symlink them back on a live system without breaking it? Cheers F -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Francesco Scaglioni wrote:
Hi,
,------[ Earlier I said :: ] | > I am trying to clear some disc space. Is there an easy | > (safe) way to remove all languages apart from english ? Or | > should I just go to usr/lib/locale and manually delete | > everything that isn'r en... `------
I have free space under /usr/local (separate partition). Is it possible to copy /usr/lib and /usr/lib across to /usr/local and then symlink them back on a live system without breaking it?
Yes, you can do that with anything under /usr. There are some directories, such as /lib. /boot, /sbin & /bin that must be available during boot up, before other partitions are moutned, that cannot be moved. -- Use OpenOffice.org <http://www.openoffice.org> -- 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 2007-05-18 at 13:42 +0100, Francesco Scaglioni wrote:
I have free space under /usr/local (separate partition). Is it possible to copy /usr/lib and /usr/lib across to /usr/local and then symlink them back on a live system without breaking it?
Er... You should not move files somewhere under /usr to the corresponding somewhere under /usr/local; ie, not to places under "/usr/local" that the systems searchs for programs and files, because those files are probably compiled to be installed under /usr. Maybe I'm confusing you. However, you can move, for instance: /usr/lib mv --> /usr/local/normal_usr/lib and then, symlink "/usr/lib --> /usr/local/normal_usr/lib" Thus, when the system searchs /usr/local/lib it will not find there files intended for /usr/lib - see what I mean? - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFGTbY5tTMYHG2NR9URAoW/AJ9VPC9hfzif1sbba+KtKOaOEb0P9ACfcbsu x6R/0xaqHk+eGn5213K5vaU= =X7I9 -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Carlos E. R. wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
The Friday 2007-05-18 at 13:42 +0100, Francesco Scaglioni wrote:
I have free space under /usr/local (separate partition). Is it possible to copy /usr/lib and /usr/lib across to /usr/local and then symlink them back on a live system without breaking it?
Er...
You should not move files somewhere under /usr to the corresponding somewhere under /usr/local; ie, not to places under "/usr/local" that the systems searchs for programs and files, because those files are probably compiled to be installed under /usr. Maybe I'm confusing you.
As long as he moves the entire directory and symlinks to the new location, what's the problem? -- Use OpenOffice.org <http://www.openoffice.org> -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 James Knott wrote:
Carlos E. R. wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
The Friday 2007-05-18 at 13:42 +0100, Francesco Scaglioni wrote:
I have free space under /usr/local (separate partition). Is it possible to copy /usr/lib and /usr/lib across to /usr/local and then symlink them back on a live system without breaking it?
Er...
You should not move files somewhere under /usr to the corresponding somewhere under /usr/local; ie, not to places under "/usr/local" that the systems searchs for programs and files, because those files are probably compiled to be installed under /usr. Maybe I'm confusing you.
As long as he moves the entire directory and symlinks to the new location, what's the problem?
If moving to a new partition be careful. There are some hardlinks in the structure and I have been caught out by broken links after doing a similar move.. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iD8DBQFGTcvEasN0sSnLmgIRAhXDAJ0UUX3NSKFUR+/lQF148hCoRygDlQCgxPjm 2SWWyk2XiB/y+hm93J8vtwM= =z2Na -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
G T Smith wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
James Knott wrote:
Carlos E. R. wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
The Friday 2007-05-18 at 13:42 +0100, Francesco Scaglioni wrote:
I have free space under /usr/local (separate partition). Is it possible to copy /usr/lib and /usr/lib across to /usr/local and then symlink them back on a live system without breaking it?
Er...
You should not move files somewhere under /usr to the corresponding somewhere under /usr/local; ie, not to places under "/usr/local" that the systems searchs for programs and files, because those files are probably compiled to be installed under /usr. Maybe I'm confusing you.
As long as he moves the entire directory and symlinks to the new location, what's the problem?
If moving to a new partition be careful. There are some hardlinks in the structure and I have been caught out by broken links after doing a similar move..
Where were those hard links? As I mentioned in another note, there are some directories that cannot be moved, as they're required at boot up, but I'd be suprised if anything under /usr would have problems. -- Use OpenOffice.org <http://www.openoffice.org> -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 James Knott wrote:
G T Smith wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
James Knott wrote:
Carlos E. R. wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
The Friday 2007-05-18 at 13:42 +0100, Francesco Scaglioni wrote:
I have free space under /usr/local (separate partition). Is it possible to copy /usr/lib and /usr/lib across to /usr/local and then symlink them back on a live system without breaking it?
Er...
You should not move files somewhere under /usr to the corresponding somewhere under /usr/local; ie, not to places under "/usr/local" that the systems searchs for programs and files, because those files are probably compiled to be installed under /usr. Maybe I'm confusing you.
As long as he moves the entire directory and symlinks to the new location, what's the problem?
If moving to a new partition be careful. There are some hardlinks in the structure and I have been caught out by broken links after doing a similar move..
Where were those hard links? As I mentioned in another note, there are some directories that cannot be moved, as they're required at boot up, but I'd be suprised if anything under /usr would have problems.
The hardlinks were to libraries in /usr/lib from somewhere else or vice versa I cannot remember precisely which.. Took out OpenOffice which was an unpleasant surprise at the time... I cannot remember precisely which libraries were involved but as usual for these things I discovered the problem when I needed to use OpenOffice in a hurry. It only took 10 to 15 minutes to diagnose and fix but it was a bloody nuisance at the time. I not entirely certain whether there are not any other broken links created by this move, but I will probably find out the hard way *sigh* Next time I do this I will make sure that I check for such linkages before I move structures to new partitions...:-) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iD8DBQFGTgIEasN0sSnLmgIRAugnAJ0W9uRUGiyPFXygoPeZ08RyIJP0swCfeG5h +nndK3+oy77KnH7zhfm8l6I= =4OZV -----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 2007-05-18 at 20:44 +0100, G T Smith wrote:
The hardlinks were to libraries in /usr/lib from somewhere else or vice versa I cannot remember precisely which.. Took out OpenOffice which was an unpleasant surprise at the time... I cannot remember precisely which libraries were involved but as usual for these things I discovered the problem when I needed to use OpenOffice in a hurry. It only took 10 to 15 minutes to diagnose and fix but it was a bloody nuisance at the time. I not entirely certain whether there are not any other broken links created by this move, but I will probably find out the hard way *sigh*
Next time I do this I will make sure that I check for such linkages before I move structures to new partitions...:-)
Mmmm... The "/usr" directory is a typical one to have on a separate partition, and in that case there can't be hardlinks from outside. If some programs requires hardlinks, it is a bug. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFGTgaatTMYHG2NR9URAm9JAJ9PErK5rnFhBfuRRdqRTMAAfvR3yQCdFtGV KkxMp1kXHLE962bTmNnlb3s= =BS/Y -----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 Carlos E. R. wrote:
The Friday 2007-05-18 at 20:44 +0100, G T Smith wrote:
The hardlinks were to libraries in /usr/lib from somewhere else or vice versa I cannot remember precisely which.. Took out OpenOffice which was an unpleasant surprise at the time... I cannot remember precisely which libraries were involved but as usual for these things I discovered the problem when I needed to use OpenOffice in a hurry. It only took 10 to 15 minutes to diagnose and fix but it was a bloody nuisance at the time. I not entirely certain whether there are not any other broken links created by this move, but I will probably find out the hard way *sigh*
Next time I do this I will make sure that I check for such linkages before I move structures to new partitions...:-)
Mmmm... The "/usr" directory is a typical one to have on a separate partition, and in that case there can't be hardlinks from outside. If some programs requires hardlinks, it is a bug.
Probably not, I do remember that the directories concerned were originally on the same partition, ln by default creates hardlinks. Shuffling key system directories around different partitions is not really a normal activity and one cannot really expect those who setup configurations to take account every slightly loopy activity of the user community ;-) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iD8DBQFGTi30asN0sSnLmgIRAkxGAJ9jBMu3WCN4Rh8dEdikuZ7AMQGy1ACeMEnr x7gbFGR+fKuOkLqZI23L934= =6tg8 -----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 2007-05-18 at 23:51 +0100, G T Smith wrote:
Mmmm... The "/usr" directory is a typical one to have on a separate partition, and in that case there can't be hardlinks from outside. If some programs requires hardlinks, it is a bug.
Probably not, I do remember that the directories concerned were originally on the same partition, ln by default creates hardlinks. Shuffling key system directories around different partitions is not really a normal activity and one cannot really expect those who setup configurations to take account every slightly loopy activity of the user community ;-)
It is certainly not loopy as it is talked about as some times recomended in the admin book written by SuSE. I myself have part of /usr on a different partition in this system, and entirely out on another older system, without any problems for years. There are some directories that have to remain in the same partition as /, but /usr is not one of them. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFGTkvTtTMYHG2NR9URAhocAJ48deAxH1+7o2OXvgA8x8beCfT6BQCfVyZB nB1t/2sjIDa9UOnaWp9x8Dw= =0cSe -----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 Carlos E. R. wrote:
The Friday 2007-05-18 at 23:51 +0100, G T Smith wrote:
Mmmm... The "/usr" directory is a typical one to have on a separate partition, and in that case there can't be hardlinks from outside. If some programs requires hardlinks, it is a bug.
Probably not, I do remember that the directories concerned were originally on the same partition, ln by default creates hardlinks. Shuffling key system directories around different partitions is not really a normal activity and one cannot really expect those who setup configurations to take account every slightly loopy activity of the user community ;-)
It is certainly not loopy as it is talked about as some times recomended in the admin book written by SuSE.
I myself have part of /usr on a different partition in this system, and entirely out on another older system, without any problems for years.
There are some directories that have to remain in the same partition as /, but /usr is not one of them.
I think my point has been missed. Putting different parts of the tree on different partitions on initial install is normative. Separating system and application directories from user data space (and log directories) is good practice on Windows, Linux and Netware based systems. Moving system and application directories around after installation usually means someone has got their sums wrong (Netware had the nifty capability of extending logical volumes across multiple partitions, which meant that all you did was plug in another chunk of disk space when you running a bit low on storage in another area so one rarely needed to do this kind of directory juggling but this not an option on Windows or Linux based systems). In my case the machines role had changed and I ran into space problems because I was installing more than I had initially planned... I should have performed some more rigorous checks before moving things around which really is down to me in the end .... -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iD8DBQFGTrQlasN0sSnLmgIRAoKBAKCSd+9xzsXoPO0exlfBf55L7WmIxACeNs1S vIqkcC7wZsTbpARJSx7cLf0= =t4dq -----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 G T Smith wrote: [...]
Moving system and application directories around after installation usually means someone has got their sums wrong (Netware had the nifty capability of extending logical volumes across multiple partitions, which meant that all you did was plug in another chunk of disk space when you running a bit low on storage in another area so one rarely needed to do this kind of directory juggling but this not an option on Windows or Linux based systems).
Of course it is an option on Linux. Just use LVM to create PVs (Physical Volumes) and then LVs (Logical Volumes) you can format and use as partitions for /, /usr, /var/log, etc... You can even combine the software RAID1 and LVM. cheers - -- -o) Pascal Bleser http://linux01.gwdg.de/~pbleser/ /\\ <pascal.bleser@skynet.be> <guru@unixtech.be> _\_v The more things change, the more they stay insane. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iD8DBQFGTtHUr3NMWliFcXcRAkDSAJ9oF/AhVGfvxR4guHxg0/Z0Y/8n/gCcDwl7 p+nCx5wUsKt1fmCmVjpuQIA= =5T5Z -----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 2007-05-18 at 11:12 -0400, James Knott wrote:
As long as he moves the entire directory and symlinks to the new location, what's the problem?
You can not move /usr/lib to /usr/local/lib, and then link /usr/lib to /usr/local/lib. You mix the functions of both directories. Depending on each case it will cause problems or not. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFGTgX9tTMYHG2NR9URAvtKAJ9leZvqew1NvsWRcbwvxEPQN9jzrACeIkxF sgsGCVD+BvfyOXJOlJUcem0= =Udj0 -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Hi,
The Friday 2007-05-18 at 13:42 +0100, Francesco Scaglioni wrote:
I have free space under /usr/local (separate partition). Is it possible to copy /usr/lib and /usr/lib across to /usr/local and then symlink them back on a live system without breaking it?
Er...
You should not move files somewhere under /usr to the corresponding somewhere under /usr/local; ie, not to places under "/usr/local" that the systems searchs for programs and files, because those files are probably compiled to be installed under /usr. Maybe I'm confusing you.
However, you can move, for instance:
/usr/lib mv --> /usr/local/normal_usr/lib
and then, symlink "/usr/lib --> /usr/local/normal_usr/lib"
I created /usr/local/contains_usr_share Moved /usr/share to usr/local/contains_usr_share/share Linked usr/local/contains_usr_share/share back to /usr/ Did a test re-boot and all is well. Now have another gig free under / ( audacity wants plenty of space in tmp for a particular job ) Thanks all F -- 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 2007-05-18 at 11:39 +0100, Francesco Scaglioni wrote:
I am trying to clear some disc space. Is there an easy (safe) way to remove all languages apart from english ? Or should I just go to usr/lib/locale and manually delete everything that isn'r en...
It's probably safe, but not "easy", unless you write a script or something. But I'm unsure of how much space that uses? - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFGTbaktTMYHG2NR9URAgvSAKCVni/f7+kqVnIArJAzFYPyBdJnswCfXSQN l+feY/y6pu7/gDvqBHvFmFo= =Aj/v -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Carlos E. R. wrote:
It's probably safe, but not "easy", unless you write a script or something. But I'm unsure of how much space that uses?
It's definitely not worth the effort, language files are tens of megabytes at most. I would suggest moving (any or all of) /home, /usr, /var to different partition. Cheers, Tosuja -- Petr "Tosuja" Klíma Mail: tosuja@tosuja.info Web: www.tosuja.info ICQ: 52057532 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Carlos E. R. wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
The Friday 2007-05-18 at 11:39 +0100, Francesco Scaglioni wrote:
I am trying to clear some disc space. Is there an easy (safe) way to remove all languages apart from english ? Or should I just go to usr/lib/locale and manually delete everything that isn'r en...
It's probably safe, but not "easy", unless you write a script or something. But I'm unsure of how much space that uses?
Boot into single user mode or use a rescue cd. Move the directory Make symlink Reboot -- Use OpenOffice.org <http://www.openoffice.org> -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (6)
-
Carlos E. R.
-
Francesco Scaglioni
-
G T Smith
-
James Knott
-
Pascal Bleser
-
Petr Klíma