Understanding and using Symlinks

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
2
down vote

favorite
1












I have a bit of a situation with a virtual server running some RHEL distro. The server is hosted on a Win2008 server via VMPlayer
uname



When it was created the initial partitions were set incorrectly. /dev/hda1 has 6GB space and the /dev/hda6 has nearly 50GB



dfah



As you can see, they're running out of space and I can't resize the partitions. Most of the space is used by their SQL database and internal website. I've been told I can move everything to the hda6 partition and use symlinks to point to it. I've not tried using symlinks before and my initial tests were unsuccessful.



How about using symlinks on an entire directory? or is there a better way to go about this.










share|improve this question



















  • 2




    I'm not sure what you're asking here. Symlinks to a directory work just fine, what problem are you having? This question doesn't seem to ask any questions at all..
    – Chris Down
    Oct 30 '14 at 16:29















up vote
2
down vote

favorite
1












I have a bit of a situation with a virtual server running some RHEL distro. The server is hosted on a Win2008 server via VMPlayer
uname



When it was created the initial partitions were set incorrectly. /dev/hda1 has 6GB space and the /dev/hda6 has nearly 50GB



dfah



As you can see, they're running out of space and I can't resize the partitions. Most of the space is used by their SQL database and internal website. I've been told I can move everything to the hda6 partition and use symlinks to point to it. I've not tried using symlinks before and my initial tests were unsuccessful.



How about using symlinks on an entire directory? or is there a better way to go about this.










share|improve this question



















  • 2




    I'm not sure what you're asking here. Symlinks to a directory work just fine, what problem are you having? This question doesn't seem to ask any questions at all..
    – Chris Down
    Oct 30 '14 at 16:29













up vote
2
down vote

favorite
1









up vote
2
down vote

favorite
1






1





I have a bit of a situation with a virtual server running some RHEL distro. The server is hosted on a Win2008 server via VMPlayer
uname



When it was created the initial partitions were set incorrectly. /dev/hda1 has 6GB space and the /dev/hda6 has nearly 50GB



dfah



As you can see, they're running out of space and I can't resize the partitions. Most of the space is used by their SQL database and internal website. I've been told I can move everything to the hda6 partition and use symlinks to point to it. I've not tried using symlinks before and my initial tests were unsuccessful.



How about using symlinks on an entire directory? or is there a better way to go about this.










share|improve this question















I have a bit of a situation with a virtual server running some RHEL distro. The server is hosted on a Win2008 server via VMPlayer
uname



When it was created the initial partitions were set incorrectly. /dev/hda1 has 6GB space and the /dev/hda6 has nearly 50GB



dfah



As you can see, they're running out of space and I can't resize the partitions. Most of the space is used by their SQL database and internal website. I've been told I can move everything to the hda6 partition and use symlinks to point to it. I've not tried using symlinks before and my initial tests were unsuccessful.



How about using symlinks on an entire directory? or is there a better way to go about this.







directory symlink






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 21 at 22:56









Rui F Ribeiro

38.3k1475126




38.3k1475126










asked Oct 30 '14 at 16:27









inthesound

112




112







  • 2




    I'm not sure what you're asking here. Symlinks to a directory work just fine, what problem are you having? This question doesn't seem to ask any questions at all..
    – Chris Down
    Oct 30 '14 at 16:29













  • 2




    I'm not sure what you're asking here. Symlinks to a directory work just fine, what problem are you having? This question doesn't seem to ask any questions at all..
    – Chris Down
    Oct 30 '14 at 16:29








2




2




I'm not sure what you're asking here. Symlinks to a directory work just fine, what problem are you having? This question doesn't seem to ask any questions at all..
– Chris Down
Oct 30 '14 at 16:29





I'm not sure what you're asking here. Symlinks to a directory work just fine, what problem are you having? This question doesn't seem to ask any questions at all..
– Chris Down
Oct 30 '14 at 16:29











2 Answers
2






active

oldest

votes

















up vote
0
down vote













Make sure you're linking the full path of the source. So ln -s /home/user/docs/file.txt, not ln -s docs/file.txt.



If that's not your problem then you'll have to be more specific.






share|improve this answer



























    up vote
    0
    down vote













    I would copy all partitions to a external drive. Then recreate the partitions the way you want. Then put the data in the partitions that you want them in. Then boot to live cd or usb and edit fstab to reflect the new partition uuids'.



    or



    I would shrink the hda6 partition that has room. Create a new one, copy the hda1 partition to the new one. Then wipe hda1 and move hda6 to hda1. Then wipe hda6 then resize the new partition to fill the drive.






    share|improve this answer




















      Your Answer








      StackExchange.ready(function()
      var channelOptions =
      tags: "".split(" "),
      id: "106"
      ;
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function()
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled)
      StackExchange.using("snippets", function()
      createEditor();
      );

      else
      createEditor();

      );

      function createEditor()
      StackExchange.prepareEditor(
      heartbeatType: 'answer',
      convertImagesToLinks: false,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: null,
      bindNavPrevention: true,
      postfix: "",
      imageUploader:
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      ,
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      );



      );













       

      draft saved


      draft discarded


















      StackExchange.ready(
      function ()
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f165039%2funderstanding-and-using-symlinks%23new-answer', 'question_page');

      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes








      up vote
      0
      down vote













      Make sure you're linking the full path of the source. So ln -s /home/user/docs/file.txt, not ln -s docs/file.txt.



      If that's not your problem then you'll have to be more specific.






      share|improve this answer
























        up vote
        0
        down vote













        Make sure you're linking the full path of the source. So ln -s /home/user/docs/file.txt, not ln -s docs/file.txt.



        If that's not your problem then you'll have to be more specific.






        share|improve this answer






















          up vote
          0
          down vote










          up vote
          0
          down vote









          Make sure you're linking the full path of the source. So ln -s /home/user/docs/file.txt, not ln -s docs/file.txt.



          If that's not your problem then you'll have to be more specific.






          share|improve this answer












          Make sure you're linking the full path of the source. So ln -s /home/user/docs/file.txt, not ln -s docs/file.txt.



          If that's not your problem then you'll have to be more specific.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Oct 30 '14 at 16:41









          Mella

          218110




          218110






















              up vote
              0
              down vote













              I would copy all partitions to a external drive. Then recreate the partitions the way you want. Then put the data in the partitions that you want them in. Then boot to live cd or usb and edit fstab to reflect the new partition uuids'.



              or



              I would shrink the hda6 partition that has room. Create a new one, copy the hda1 partition to the new one. Then wipe hda1 and move hda6 to hda1. Then wipe hda6 then resize the new partition to fill the drive.






              share|improve this answer
























                up vote
                0
                down vote













                I would copy all partitions to a external drive. Then recreate the partitions the way you want. Then put the data in the partitions that you want them in. Then boot to live cd or usb and edit fstab to reflect the new partition uuids'.



                or



                I would shrink the hda6 partition that has room. Create a new one, copy the hda1 partition to the new one. Then wipe hda1 and move hda6 to hda1. Then wipe hda6 then resize the new partition to fill the drive.






                share|improve this answer






















                  up vote
                  0
                  down vote










                  up vote
                  0
                  down vote









                  I would copy all partitions to a external drive. Then recreate the partitions the way you want. Then put the data in the partitions that you want them in. Then boot to live cd or usb and edit fstab to reflect the new partition uuids'.



                  or



                  I would shrink the hda6 partition that has room. Create a new one, copy the hda1 partition to the new one. Then wipe hda1 and move hda6 to hda1. Then wipe hda6 then resize the new partition to fill the drive.






                  share|improve this answer












                  I would copy all partitions to a external drive. Then recreate the partitions the way you want. Then put the data in the partitions that you want them in. Then boot to live cd or usb and edit fstab to reflect the new partition uuids'.



                  or



                  I would shrink the hda6 partition that has room. Create a new one, copy the hda1 partition to the new one. Then wipe hda1 and move hda6 to hda1. Then wipe hda6 then resize the new partition to fill the drive.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Nov 21 at 23:33









                  Michael Prokopec

                  59915




                  59915



























                       

                      draft saved


                      draft discarded















































                       


                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function ()
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f165039%2funderstanding-and-using-symlinks%23new-answer', 'question_page');

                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown






                      Popular posts from this blog

                      How to check contact read email or not when send email to Individual?

                      Displaying single band from multi-band raster using QGIS

                      How many registers does an x86_64 CPU actually have?