LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-04-2004, 12:12 AM   #1
groover
LQ Newbie
 
Registered: Apr 2004
Posts: 12

Rep: Reputation: 0
Question Mount a partition to an existing folder


Is it possible to mount a partition to an existing folder? I'm trying to mount the new partition onto /usr/local but when I add it to fstab, it seems to over-ride the existing folder and it shows up empty. Is this the correct line to have in fstab?

/dev/hda2 /usr/local reiserfs defaults 1 2

Is what I'm asking even possible?

Thanks for the help ahead of time.

Zac
 
Old 04-04-2004, 12:18 AM   #2
bosewicht
Senior Member
 
Registered: Aug 2003
Location: Houston, TX
Distribution: Arch
Posts: 1,381

Rep: Reputation: 47
ok, so u want to move a "folder" to a new partition?? it sounds like u are mounting a empty partition
 
Old 04-04-2004, 12:40 AM   #3
groover
LQ Newbie
 
Registered: Apr 2004
Posts: 12

Original Poster
Rep: Reputation: 0
Yes, It's a completely empty partion. I have to move the entire folder onto that drive? Is it as easy as cp -r?
 
Old 04-04-2004, 01:05 AM   #4
bosewicht
Senior Member
 
Registered: Aug 2003
Location: Houston, TX
Distribution: Arch
Posts: 1,381

Rep: Reputation: 47
yes, u should just be able to edit the fstab for ur new partition. be sure to move the files u want to a temp folder or something first. then either reboot or mount the new partition from the terminal
 
Old 04-04-2004, 01:42 AM   #5
groover
LQ Newbie
 
Registered: Apr 2004
Posts: 12

Original Poster
Rep: Reputation: 0
That did the trick. Messed up my owners and groups on the files, but thats easy enough to fix. Thanks for the help!
 
Old 04-04-2004, 01:43 AM   #6
bosewicht
Senior Member
 
Registered: Aug 2003
Location: Houston, TX
Distribution: Arch
Posts: 1,381

Rep: Reputation: 47
no problem.....good luck
 
  


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
Mount An Existing ext3 Partition br00tal Linux - Newbie 3 06-10-2005 12:08 AM
Alias for a Mount Folder / Partition Deiota Linux - Software 5 10-15-2004 06:21 AM
existing LVM partition won't mount anymore dehuszar Linux - Software 1 09-10-2004 01:26 PM
Mounting new HD space into existing mount points? GT_Onizuka Linux - Hardware 4 05-26-2004 05:15 AM
how to: mount existing partition on 2nd drive atljam Linux - General 2 07-28-2002 12:32 PM

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

All times are GMT -5. The time now is 08:38 PM.

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