Understanding and using Symlinks
Clash Royale CLAN TAG#URR8PPP
up vote
2
down vote
favorite
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
When it was created the initial partitions were set incorrectly. /dev/hda1 has 6GB space and the /dev/hda6 has nearly 50GB
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
add a comment |
up vote
2
down vote
favorite
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
When it was created the initial partitions were set incorrectly. /dev/hda1 has 6GB space and the /dev/hda6 has nearly 50GB
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
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
add a comment |
up vote
2
down vote
favorite
up vote
2
down vote
favorite
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
When it was created the initial partitions were set incorrectly. /dev/hda1 has 6GB space and the /dev/hda6 has nearly 50GB
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
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
When it was created the initial partitions were set incorrectly. /dev/hda1 has 6GB space and the /dev/hda6 has nearly 50GB
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
directory symlink
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
add a comment |
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
add a comment |
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.
add a comment |
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.
add a comment |
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.
add a comment |
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.
add a comment |
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.
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.
answered Oct 30 '14 at 16:41
Mella
218110
218110
add a comment |
add a comment |
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.
add a comment |
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.
add a comment |
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.
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.
answered Nov 21 at 23:33
Michael Prokopec
59915
59915
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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