What's new
PGBlitz.com

Register Now! Find useful tips, Interact /w Community Members and join the part the Best Community on the Internet!

Discussion Moving mnt drive

Poore

Full Member
Donor
PG Version
8.6.3
Mount Type
Move Unencrypted
Server Type
Local - Dedicated Server
I currently have my mnt drive on its own hard drive. I need to move mnt to a new drive. What's the best way to do this without me messing something up?
 
M

MrDoob

Guest
what do you want to do ??

you want /mnt/ on the new drive ??

thats raelly tricky ...

you must stop all services

then mounte the second drive as /mnt2
move all folder to /mnt2

if /mnt/ on the OS drive you must rename it to /mnt-old
Bash:
mv /mnt/ /mnt-old
next step

rename /mnt2 to /mnt

Bash:
mv /mnt2 /mnt
next ist the permissions

Bash:
chown -cR 1000:1000 /mnt/
now server reboot and hope all works :p
 

Poore

Full Member
Donor
Thanks, Doob. I'm getting a warning of hard drive issues and want to swap the drive out. The OS is on its own SSD . I have MNT on a platter drive all by itself so hopefully, things will go smoothly.
 
M

MrDoob

Guest
But /opt is also used for so much space ;)

so you can move the /var and /opt yo an different drive ;)

Each folder on /* can use his own drive

But for this action you muster reinstall and mount each drive over the installer of the OS .

That's the best option
 

Poore

Full Member
Donor
You are correct. OPT by far is my largest folder then at 42 GB followed by VAR at 7 GB. Digging in I found a 25 GB nzbget.log file. That doesn't seem good.

I was planning on upgrading my server this winter to dual XEON E5-2670v2. I'll probably just hold out till then and just rebuild everything over a weekend.
 

Oohdang

Junior Member
what do you want to do ??

you want /mnt/ on the new drive ??

thats raelly tricky ...

you must stop all services

then mounte the second drive as /mnt2
move all folder to /mnt2

if /mnt/ on the OS drive you must rename it to /mnt-old
Bash:
mv /mnt/ /mnt-old
next step

rename /mnt2 to /mnt

Bash:
mv /mnt2 /mnt
next ist the permissions

Bash:
chown -cR 1000:1000 /mnt/
now server reboot and hope all works :p

I just added a second SSD to my local server and this post helped me tremendously! Thank you!
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.


Development Donations

 

Top NZB NewsGroups!

Members - Up To a 58% Discount!

Trending

Online statistics

Members online
13
Guests online
121
Total visitors
134
Top