GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Is there a Linux admini in the house? (https://gfy.com/showthread.php?t=588156)

3M TA3 03-18-2006 01:57 PM

Is there a Linux admin in the house?
 
I have to unmount a hard drive and remount it in a new location. Someone want to help a brother out? Gotta get it done today.

I ran a few commands from google and it tells me the device is busy. instead of pushing buttons randomly i figure i'd take words of advice from the wise :helpme

fuzebox 03-18-2006 02:27 PM

If you have "lsof" installed you can see what processes might be using files on that drive... Is it just an extra filesystem with your own data? (No tmp, var, log type directories on it?)

3M TA3 03-18-2006 05:54 PM

i am actually using it as a live web server right now. i need to shut it down for 5 minutes and make the change. i also need to make sure it auto-mounts after a reboot.

my regular admin is out till monday and i want to get it done before people get back to work when they would notice any down time.

because of the sensivity of it i was hoping to get someone who has experience in it.

High Plains Drifter 03-18-2006 06:23 PM

If you're just trying to change the mount point, open up /etc/fstab, look for something like this, edit the second column to the new mountpoint, and reboot.

/dev/hdb2 /home ext2 defaults 1 2

solkimaras 03-18-2006 06:24 PM

:winkwink:

woj 03-18-2006 07:08 PM

it's as easy as:
rm -rf /old/mount/point /new/mount/point



.. (jk, don't run that!)

mayon 03-18-2006 07:54 PM

if you have files being openned on that location by apache then that makes it buzy. or youre on that location working via ssh.

1. kill apache
2. go to the root folder
3. run df -h ( so you see the parttitions and mount points)
4. unmount it.
5. mount it to the new mount point
6. start apache
7. add it to /etc/fstab or just add add the mount command in /etc/rc.local

mrkris 03-18-2006 08:16 PM

If you are shutting down, then just change the mount point in /etc/fstab and reboot.

Superterrorizer 03-18-2006 09:14 PM

Don't be a fucking pussy, umount -f it and remount it where you want it. YOU tell the server what to do, don't let it fuck you around man, make it your bitch.

3M TA3 03-18-2006 11:41 PM

Quote:

Originally Posted by Superterrorizer
Don't be a fucking pussy, umount -f it and remount it where you want it. YOU tell the server what to do, don't let it fuck you around man, make it your bitch.

sould i bitch slap it while i'm at it?


All times are GMT -7. The time now is 06:50 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123