Results 1 to 10 of 10

Thread: Install not to / directory

  1. #1

    Question Install not to / directory


    How do I tell linux to install packages from openSUSE 11 CD not to / but to /local/?


  2. #2
    Join Date
    Jun 2008
    Blog Entries

    Default Re: Install not to / directory

    Can't. Nearly all packages are non-relocatable meaning the files are expected to be installed to a standard location.

  3. #3

    Question Re: Install not to / directory

    Hmm. Can I displace / to another hard disk partition without destroying the installation?

  4. #4
    Join Date
    Jun 2008
    Earth - Denmark

    Default Re: Install not to / directory

    > Hmm. Can I displace / to another hard disk partition without destroying
    > the installation?

    just an idea: tell us what you wanna do...because maybe what you wanna
    do IS possible, but your question might not trigger a correct response..

    for example, i suspect you might be wanting to install SuSE 11.0 to a
    machine with limited hard disk storage capacity...and, wanting to put a
    bunch of the new stuff somewhere else...perhaps on a different hard
    drive, a networked drive, a USB drive...or what?

    grub can be most anywhere and 'point to' a new installation most anywhere..

    and, both /home and /var are often placed on partitions/drives separate
    from both / and grub..

    but in all cases, there must be a /

    DenverD (Linux Counter 282315)
    A Texan in Denmark

  5. #5

    Post Re: Install not to / directory


    That's a good suggestion. My problem is:

    I installed openSUSE 11.0 (Kde) to a relatively small hard disk partition (some Gigabyte). Consequently, root directory / is on this partition.
    Now bougth a larger hard disk and created a much bigger Linux partition (about a hundred Gigabyte), but I can't use it, because Linux wants to install every package to root directory.

  6. #6
    Join Date
    Jun 2008
    Earth - Denmark

    Default Re: Install not to / directory

    on the initial install (on the small drive) the SuSE install routine
    made three partitions, one for swap, one for /home and one for the root

    i am NOT the best person here to advise you on do NOT move
    forward until someone else has given you better direction OR you have
    used the search feature at the web forum to mine the data already
    there...but, as far as i know it IS possible to move all three of those
    partitions to the new hard drive...however the swap partition should be
    quite small (like about the size of your ram) so there is no really good
    reason to move it)..

    so you only need to move the root and /home, make the root bootable and
    edit grub so it can bootstrap 11.0 on the new drive..

    for planning: i don't know how many applications you want to add, but
    there are thousands....i have just what i need and so am only using
    about 7 GB in all the directories other than /home..

    /home, on the other hand can get pretty large...those films, music and
    photos chew up space pretty quickly..

    i see you have already created one 100 GB partition on the new
    disk...let me suggest you take that one primary partition and in that
    space make one primary partition of 20 GB and one extended partition of
    80 GB using the last one for /home

    but, even before you do that i want you to wait for QUALIFIED help to
    come along and confirm (or dispute) all i said and give you some more
    hint......and, do some reading while waiting:

    basic reading list:

    If new to Linux please read this:

    above includes links to these--READ THEM

    Basic openSuSE concepts:

    Before you install SuSE 11.0 read this.
    If you already installed and it all went sour, read it BEFORE
    you reinstall it wrong again:

    Ready to use Multimedia? Read:

    When you get frustrated, and BEFORE you give up and go back, read
    "Linux is Not Windows":

    Partitioning/Install Guide

    HowTo Boot / Multiboot openSUSE and Windows (2000, XP, Vista - any mix)
    using the GRUB bootloade

    When you have learned all you think you need to know read
    "LINUX: Rute User's Tutorial and Exposition"

    welcome to software freedom...even if free, no freedom comes easily,

    DenverD (Linux Counter 282315)
    A Texan in Denmark

  7. #7
    Join Date
    Jun 2008
    Blog Entries

    Default Re: Install not to / directory

    Is your new hard disk internal or external?

    If internal, consider backing up your personal files, replacing the existing hard disk with the larger one and reinstalling. Then you won't have two HDs eating power.

    If you don't want to do that, one way is to copy some large directories over to the new HD and replace with symlinks on the original disk. E.g.

    /home -> /data/home
    /usr -> /data/usr

    But not as pretty.

    If external HD, those are slightly tricky. Make sure you don't have any directories needed for booting on the external HD, so leave /boot /sbin /tmp on the original /.

  8. #8
    Join Date
    Jun 2008
    Finland, European Union

    Default Re: Install not to / directory

    Mount the new drive to some temp directory.
    Copy /usr there (retaining user permissions, -p flag in cp)
    Change fstab to mount /dev/newdrive to /usr
    Rename the old usr to usr.bak or something.
    mount /usr to test if it works.


  9. #9
    Join Date
    Jul 2008

    Default Re: Install not to / directory


    It is likely to install a base Open Suse system on a given directory by doing :

    yast -> Software -> Install on a directory

    From that point on, after yast builds the cache of available packages according to your configured software repositories, the install process is basically the same that you will find when installing normally.
    You will be asked the name of the directory you want to install the base system.

    This mode of install is specially handy when setting up the root filesystem for a domU guest on Xen.

    Now, from the above, what you seem to be after is extending your already working system on a bigger hard disk.
    This was usually the process used to extend partitions in the old days, before solutions like LVM were available.
    The directories susceptible of having specific partitions mounted on them are: /home, /usr, /var, /opt/ /tmp, /boot.

    Do not move any essential directory (/bin, /etc, /sbin, /dev, /lib) out of the root partition or you system could become unbootable.

    As someone has already pointed before, you should create on the new hard disk a partition for each directory you would like to extend. Then, once the partitions are created and a file system built on them, you can mount them on temporal mount points and easily populate from the contents of the original directories.
    Then, umount the populated partitions.

    Now, you must change your /etc/fstab so that each new populated partition be mounted at boot time on its corresponding directory.

    Before booting the system, verify that every entry line is correct by manually mounting every partition in its final directory from the command line. This way you will check if all the settings are correct in the fstab.
    Tweak your fstab until you can mount every partition device from the command line without any problem.

    Notice: perform all the above operation on maintenance mode (runlevel 1) and make sure no process is updating the directories while you are replicating its content to the corresponding partition.

    Once you are happy and your system boots fine, reboot the system in maintenance mode, umount all the new partitions and remove the old content in the directories they are mounted on. This way, you will recover storage space for the root file system.

    Be aware that all these operations are quite delicate, so be sure you have understanden all the above steps before deleting anything.

    Hope this helps.

  10. #10

    Red face Re: Install not to / directory

    Could you please explain the last explanation in easy words? Unfortunately I'm a newby. Or do you think, it is the easiest way to reinstall openSUSE to the new partition?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts