LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-18-2004, 11:46 PM   #1
davidas
Member
 
Registered: Mar 2004
Distribution: Debian 'Sarge'
Posts: 168

Rep: Reputation: 30
What is the correct method to change mount point?


Current setup:

swap hda1
/home hda2
/ hda3
(based on this layout, /usr/local and /var should be on hda3?)

I'll be installing another HDD (partitioned into hdb1 and hdb2). How should I go about changing the mount point for /var and /usr/local from hda3 to hdb1 and hdb2 respectively?

Future setup:

swap hda1
/home hda2
/ hda3

/var hdb1
/usr/local hdb2

Thanks !
 
Old 04-19-2004, 12:17 AM   #2
lsmith
Member
 
Registered: Feb 2004
Posts: 40

Rep: Reputation: 15
I believe that you should be changing the /etc/fstab file.

You may want to use a bootdisk for this..... wouldn't want to screw it up and then reboot to find no working system.
 
Old 04-19-2004, 01:03 AM   #3
davidas
Member
 
Registered: Mar 2004
Distribution: Debian 'Sarge'
Posts: 168

Original Poster
Rep: Reputation: 30
Creating the mount points in /etc/fstab will suffice? What about those data in the original /var and /usr/local? Will they be deleted automatically?

Thanks !

Quote:
Originally posted by lsmith
I believe that you should be changing the /etc/fstab file.

You may want to use a bootdisk for this..... wouldn't want to screw it up and then reboot to find no working system.
 
Old 04-19-2004, 03:53 PM   #4
lsmith
Member
 
Registered: Feb 2004
Posts: 40

Rep: Reputation: 15
You could either move your existing /usr/local and /var directories onto the new hard drives, using a bootdisk, and then set up fstab to mount them from the new hard drives, or you could leave fstab the way it is and make /usr/local and /var symbolic links to somewhere on your new hard drives.


If you don't remove or rename the existing /usr/local and /var directories you may not be able to mount them on the new hard drives.

However I'm not very knowledgeable with the process of doing this, there may be complications that I don't know about....

Last edited by lsmith; 04-19-2004 at 03:55 PM.
 
Old 04-19-2004, 03:54 PM   #5
lsmith
Member
 
Registered: Feb 2004
Posts: 40

Rep: Reputation: 15
repost

Last edited by lsmith; 04-19-2004 at 03:55 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to give not-root user ability to mount devices to any mount point??? jdupre Linux - General 8 02-04-2012 10:03 AM
Mount problem - device already mounted or mount point busy zahoo Linux - General 7 08-28-2009 05:02 PM
What's the correct method to start inetd? hello321_1999 Linux - Newbie 6 11-11-2005 02:18 PM
Can't change mount point. RoaCh Of DisCor SUSE / openSUSE 9 05-09-2005 01:51 PM
how to change filesystem mount point? buehler Linux - Newbie 5 04-16-2005 11:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration