LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-01-2004, 06:17 AM   #1
ziggie216
Member
 
Registered: Oct 2003
Posts: 176

Rep: Reputation: 30
move mount?


Currently I have File /dev/hdb1 mount for /home. I want to take out the second hard drive since I relize I dont really need all that space. How cam I move /home back into hda(x)?
 
Old 01-01-2004, 10:43 AM   #2
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
umount it? Or if you can't do that, for example if you have all the "important" stuff on it (root partition and these that you cannot umount like that, I guess), boot your linux from a diskette or something and then do the dirty work
 
Old 01-01-2004, 11:02 PM   #3
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Jessie, Linux Mint 17
Posts: 7,750

Rep: Reputation: 271Reputation: 271Reputation: 271
"How cam I move /home back into hda(x)?"

If hda(x) is an empty partition then mount /dev/hdax on an empty directory and copy /home to the new partition:
login as root
mkdir /zigzag
mount /dev/hdax /zigzag
cp -pR /home/* /zigzag
Then change /etc/fstab to mount /dev/hdax on /home and reboot.

If hda(x) is your / partition then:
login as root
mkdir /zigzag
cp -pR /home/* /zigzag
remove the /home entry from /etc/fstab and reboot.
login as root and rename /zigzag to /home

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites
 
Old 01-02-2004, 05:49 AM   #4
ziggie216
Member
 
Registered: Oct 2003
Posts: 176

Original Poster
Rep: Reputation: 30
wow that was simple. thanks!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 11:03 AM
NFS mount of smb mount of windows share: permission denied problem :( Bagatur Linux - Networking 4 07-07-2009 12:34 PM
cannot using FTP move command to move files adrianmak Linux - Networking 4 04-21-2009 01:01 PM
Move mount point to another physical drive? michaelsanford Linux - General 2 05-06-2005 02:42 PM
How to move mount points after install? concoran Linux - General 16 07-21-2002 06:50 PM


All times are GMT -5. The time now is 06:36 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration