LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > MEPIS
User Name
Password
MEPIS This forum is for the discussion of MEPIS Linux.

Notices


Reply
  Search this Thread
Old 07-08-2007, 06:39 AM   #1
rendezvous123
LQ Newbie
 
Registered: May 2007
Distribution: Xubuntu 8.04
Posts: 18

Rep: Reputation: 0
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.
 
Old 07-08-2007, 08:08 AM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
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.
 
Old 07-08-2007, 09:29 AM   #3
2damncommon
Senior Member
 
Registered: Feb 2003
Location: Calif, USA
Distribution: PCLINUXOS
Posts: 2,918

Rep: Reputation: 103Reputation: 103
Take a look at the moving home article.
 
Old 07-08-2007, 10:49 AM   #4
rendezvous123
LQ Newbie
 
Registered: May 2007
Distribution: Xubuntu 8.04
Posts: 18

Original Poster
Rep: Reputation: 0
Thank you, the tutorial helped. All my old settings are in place.
 
Old 07-09-2007, 12:23 PM   #5
rendezvous123
LQ Newbie
 
Registered: May 2007
Distribution: Xubuntu 8.04
Posts: 18

Original Poster
Rep: Reputation: 0
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?
 
Old 07-09-2007, 12:37 PM   #6
masinick
Member
 
Registered: Apr 2002
Location: Greenville, SC
Distribution: Debian, antiX, MX Linux
Posts: 636
Blog Entries: 16

Rep: Reputation: 104Reputation: 104
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.
 
Old 07-09-2007, 05:02 PM   #7
ComputerBob
LQ Newbie
 
Registered: Jun 2007
Location: The Beautiful Sunshine State
Distribution: Debian Squeeze
Posts: 28

Rep: Reputation: 15
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.
 
Old 07-10-2007, 10:14 PM   #8
rendezvous123
LQ Newbie
 
Registered: May 2007
Distribution: Xubuntu 8.04
Posts: 18

Original Poster
Rep: Reputation: 0
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.
 
Old 07-11-2007, 06:32 AM   #9
ComputerBob
LQ Newbie
 
Registered: Jun 2007
Location: The Beautiful Sunshine State
Distribution: Debian Squeeze
Posts: 28

Rep: Reputation: 15
You're very welcome!
 
  


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
LXer: Displaying "MyComputer", "Trash", "Network Servers" Icons On A GNOME Desktop LXer Syndicated Linux News 0 04-02-2007 08:31 AM
switching from CRT to LCD get message "signal over range" dholling Linux - Hardware 4 03-19-2007 03:46 AM
Switching "nv" to "nvidia" = screen shifted to the left? mpriddy Linux - General 5 02-28-2007 10:38 PM
"cp -p" fails with "cp: setting permissions for `/home/svbld/t': Invalid argument" mkhesin Red Hat 1 02-28-2007 12:57 AM
Why I cant open "Home" folder when I click on Home Thumbnail riba43 SUSE / openSUSE 2 04-17-2006 12:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > MEPIS

All times are GMT -5. The time now is 09:17 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