MEPIS This forum is for the discussion of MEPIS Linux. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
07-08-2007, 07:39 AM
|
#1
|
LQ Newbie
Registered: May 2007
Distribution: Xubuntu 8.04
Posts: 18
Rep:
|
Switching "/home"s...
Unfortunately, the installer for SimplyMepis 6.5 was a bit simpler than other LiveCDs i've come across; that is, it didn't let me pick more than one drive to mount things. I have two harddrives: I store my settings on one harddrive, and i install Linux on the other. Since i don't bear knowledge on how to edit /etc/fstab, i want to know if it is possible to mount the partition that stores all my settings as "/home", and if so, how? Basically, make a big switch.
|
|
|
07-08-2007, 09:08 AM
|
#2
|
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809
|
From your description, it sounds like you did an installation with everything on one partition. This means that your settings are now in /home/username on the new install. Do you also have settings on the other drive?
If you don't need any of the settings in the new install, you can simply mount the other drive at /home and it will use what is on the other drive. The basic entry in fstab is (assumes you 2nd drive (partition) is hdb1):
/dev/hdb1 /home ext3 defaults 0 0
Simply use an editor such as nano to add this to /etc/fstab:
su (to become root)
nano /etc/fstab
"man fstab" and "man mount" for more details on how the syntax works
If you want to simply re-install, I think the option for multiple partitions IS there--typically, you have to select something like manual partitioning.
|
|
|
07-08-2007, 10:29 AM
|
#3
|
Senior Member
Registered: Feb 2003
Location: Calif, USA
Distribution: PCLINUXOS
Posts: 2,918
Rep:
|
Take a look at the moving home article.
|
|
|
07-08-2007, 11:49 AM
|
#4
|
LQ Newbie
Registered: May 2007
Distribution: Xubuntu 8.04
Posts: 18
Original Poster
Rep:
|
Thank you, the tutorial helped. All my old settings are in place.
|
|
|
07-09-2007, 01:23 PM
|
#5
|
LQ Newbie
Registered: May 2007
Distribution: Xubuntu 8.04
Posts: 18
Original Poster
Rep:
|
Okay, problem: When i restart the computer, the previous settings for fstab gets restored, and i have to go back in, as root, and remount the partition that has my settings to /home. I noticed upon starting up that fstab gets "updated." Any way to get around this so i won't have to keep mounting things over and over again upon restart?
|
|
|
07-09-2007, 01:37 PM
|
#6
|
Member
Registered: Apr 2002
Location: Greenville, SC
Distribution: Debian, antiX, MX Linux
Posts: 639
Rep:
|
I see this too
Quote:
Originally Posted by rendezvous123
Okay, problem: When i restart the computer, the previous settings for fstab gets restored, and i have to go back in, as root, and remount the partition that has my settings to /home. I noticed upon starting up that fstab gets "updated." Any way to get around this so i won't have to keep mounting things over and over again upon restart?
|
I had tried, at one time, to modify /etc/fstab, but noticed that it kept getting overwritten. I did not have time to dig through the code to see where this was happening, so I wrote a short script instead to mount the directories I am interested in. What I do is create a 3-5 line script called mount-partitions.sh, stick it in the /root directory. Then when I boot my system, I do Ctrl Alt F1, log into a non graphical root console, run the script ./mount-partitions.sh from root, then Ctrl Alt F7 to go to the graphical login banner, do my thing, and move on. Annoying, but I can do all of it in under a minute, so until I have time to engineer a better solution, this workaround gets the job done.
|
|
|
07-09-2007, 06:02 PM
|
#7
|
LQ Newbie
Registered: Jun 2007
Location: The Beautiful Sunshine State
Distribution: Debian Squeeze
Posts: 28
Rep:
|
Quote:
Originally Posted by rendezvous123
Okay, problem: When i restart the computer, the previous settings for fstab gets restored, and i have to go back in, as root, and remount the partition that has my settings to /home. I noticed upon starting up that fstab gets "updated." Any way to get around this so i won't have to keep mounting things over and over again upon restart?
|
I can't be sure what you did, but in fstab, you should put the line of code that mounts your /home partition in the "static" part of fstab (above the comment that starts the "dynamic" section of fstab). If you made the mistake of adding the line of code to mount /home BELOW that comment line (inside the dynamic section of fstab), then it will keep getting overwritten each time you restart your computer.
|
|
|
07-10-2007, 11:14 PM
|
#8
|
LQ Newbie
Registered: May 2007
Distribution: Xubuntu 8.04
Posts: 18
Original Poster
Rep:
|
Quote:
Originally Posted by ComputerBob
I can't be sure what you did, but in fstab, you should put the line of code that mounts your /home partition in the "static" part of fstab (above the comment that starts the "dynamic" section of fstab). If you made the mistake of adding the line of code to mount /home BELOW that comment line (inside the dynamic section of fstab), then it will keep getting overwritten each time you restart your computer.
|
Whoops! Yeah, i had it below, but now it's above; now everything mounts the way i want it to. Thanks for your help.
|
|
|
07-11-2007, 07:32 AM
|
#9
|
LQ Newbie
Registered: Jun 2007
Location: The Beautiful Sunshine State
Distribution: Debian Squeeze
Posts: 28
Rep:
|
You're very welcome!
|
|
|
All times are GMT -5. The time now is 02:08 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|