Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 4th June 2006, 09:30 PM
oltraver Offline
Registered User
 
Join Date: May 2006
Posts: 5
Moving (or renaming) /home folder.

I am a relatively fresh Linux user and have having trouble figuring out how to accomplish something here.

I am running Fedora Core 4, using a single SATA hard drive. I want to enable quotas on my home directories (only 2 users on box) so that they cannot fill up the system. The 2 users, for the most part, will only be using vsftpd. Vsftpd is installed and configured perfecty, as is apache, a PBPbb message board and MySql.

During initial setup, the Fedora installer put everything (except swap) on one partiton, which I though was OK, as I figured I could resize and move stuff around later. I can't seem to find a way to do this due to having either an upsupported SATA drive or motherboard SATA controller. I've tried command line parted, a bootable SystemRescueCD and Gparted all to no avail. All the latest versions. None of them recognize my primary partition. I also found a tip via Google to try using an older version of Gparted (1.0), and still no luck.

So I then decided I was going to make a virtual filesystem for my home directory, I have that all set up and mounted, with all of my old data copied over to the /newhome directory using cp -pidRv. All is fine and /newhome mounts on bootup with quotas and everything enabled. Now, I cannot for the life of me figure out how to replace my current /home directory with /newhome. Since my system is all on one partiton, all the tutorials I have found discuss using /etc/fstab to change the existing /home to the /newhome after renaming them, and my fstab DOES NOT have an entry for my existing home, and I cannot rename it either.

So, could someone tell me how to go about this, or even if I am just approaching this completley wrong. I REALLY don't want to rebuild the machine just to get the partitions I initially wanted.

Thanks!

-P
Reply With Quote
  #2  
Old 4th June 2006, 09:43 PM
Brian1's Avatar
Brian1 Offline
Registered User
 
Join Date: Nov 2004
Location: Seymour, Indiana
Posts: 2,511
This is the way I would do. If you are not famialiar with vi editor or do not have pico installed. Both are CLI editors. Then you need to boot up with a Live cd like knoppix or ubuntu/kubuntu. Once the live cd is up then mount the partition that has your currrent /home and /etc. Rename home to say home_backup. Now edit /etc/fstab and change the mount point to /home from /newhome. Then rename /newhome to /home if you wish to work off of the contents of /newhome.

If doing under the CLI and your system startsup with a Gui Login Manager then hit Alt-Ctrl-F1. Login as root.
mv /home /home_backup
mv /newhome /home
vi /etc/fstab ( modify moint point for here like above)
save and exit.
mount /home
logout from here.

Alt-Ctrl-F7 returns you to your login manager. Login as a user to check all is well.

The above part is based on what I see from your post. You may need to change if names and locations are incorrect.

Brian1
__________________
Distribution: RHEL 5.1 with Pieces of this and that.
Kernel 2.6.23.9, KDE 3.5.8 and KDE 4.0 beta, Plus Development src.rpm, ATI fglrx64_7_1_0-8.433-1 rpm with 3D and DRI working.
Acer 5100-5840 with webcam, ati, sdcard reader, sound, atheros based wireless, all working. Only thing not working is the memory stick reader.
Reply With Quote
  #3  
Old 5th June 2006, 06:48 AM
oltraver Offline
Registered User
 
Join Date: May 2006
Posts: 5
That did it, thanks! I knew it had to be easy! I did have to modify the instructions a bit as the /newhome folder was a virtual filesystem, so I did the following instead:

mv /home /home_backup
mkdir -p /home
cp -pidRv /newhome/* /home
umount /newhome
vi /etc/fstab ( modify mount point from /newhome to /home)
save and exit.
mount /home
logout from here.
Reply With Quote
  #4  
Old 5th June 2006, 09:59 PM
Brian1's Avatar
Brian1 Offline
Registered User
 
Join Date: Nov 2004
Location: Seymour, Indiana
Posts: 2,511
Glad to see you have it going. Never messed with virtual filesystems before. What exactly di you use to create one. Might be something I will keep a note on.

Brian1
__________________
Distribution: RHEL 5.1 with Pieces of this and that.
Kernel 2.6.23.9, KDE 3.5.8 and KDE 4.0 beta, Plus Development src.rpm, ATI fglrx64_7_1_0-8.433-1 rpm with 3D and DRI working.
Acer 5100-5840 with webcam, ati, sdcard reader, sound, atheros based wireless, all working. Only thing not working is the memory stick reader.
Reply With Quote
  #5  
Old 5th June 2006, 10:04 PM
oltraver Offline
Registered User
 
Join Date: May 2006
Posts: 5
I was pretty much following the steps here to create a new /home directory that I could apply quotas to without reformatting my drive:

http://souptonuts.sourceforge.net/quota_tutorial.html

Thanks again for the help!
Reply With Quote
  #6  
Old 6th June 2006, 12:00 AM
Brian1's Avatar
Brian1 Offline
Registered User
 
Join Date: Nov 2004
Location: Seymour, Indiana
Posts: 2,511
Thanks for the link. Love learning something new on Linux. Even after 8 years you still find something new whether a modern new way or an old school techinque.

Brian1
__________________
Distribution: RHEL 5.1 with Pieces of this and that.
Kernel 2.6.23.9, KDE 3.5.8 and KDE 4.0 beta, Plus Development src.rpm, ATI fglrx64_7_1_0-8.433-1 rpm with 3D and DRI working.
Acer 5100-5840 with webcam, ati, sdcard reader, sound, atheros based wireless, all working. Only thing not working is the memory stick reader.
Reply With Quote
Reply

Tags
folder, moving, or home, renaming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
moving HOME folder on another HDD punklinux Using Fedora 3 8th August 2008 04:23 AM
Home folder vs. root Home folder? bisctboy Installation and Live Media 6 20th March 2006 03:28 AM
gconf error after moving home folder mpittman Using Fedora 1 19th January 2006 09:52 AM
mounting a NTFS folder on my /home/myuser folder jaguero Using Fedora 3 26th October 2005 10:54 PM


Current GMT-time: 17:38 (Sunday, 19-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat