LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-29-2004, 05:46 AM   #1
TheRudy
Member
 
Registered: Jul 2004
Posts: 40

Rep: Reputation: 15
New drive, mount home...


First i new to this linux stuff and so on and can't find how to do this!

here is my fstab:

Code:
/dev/hda5          swap           swap
/dev/hda1          /                  ext2
/dev/hdd1          /usr/local     ext2
/dev/cdrom        /mnt/cdrom
...
I have two disks and on one i have OS and on second i currently have /usr/local (i just set it on installation this folder).

I would like to also have /home (this is where the 'big' files have their place) on hdd1 if possible, if not then just /home without /usr/local.

How to do this? What if i just change in fstab from /usr/local to /home and reboot? Do i have to umount it first and the mount?

Any help is wanted!
 
Old 09-29-2004, 06:51 AM   #2
carboncopy
Senior Member
 
Registered: Jan 2003
Location: Malaysia
Posts: 1,210
Blog Entries: 4

Rep: Reputation: 45
I pressume you haven't compile any program and installed it at /usr/local/ cause that is normal default location.

And do you have any other user created on your system?
If not,

You are good to go in changing /usr/local to /home

before you do that just unmount /dev/hdd1
after you done the change, just mount /dev/hdd1

df -h to verify
 
Old 09-29-2004, 08:52 AM   #3
TheRudy
Member
 
Registered: Jul 2004
Posts: 40

Original Poster
Rep: Reputation: 15
I have Webmin installed in there! This is the only thing i installed.

Oh and PHP package from CD, but that doesn't count or it does?

As for the users, i have 2 or 3 users created, but they can be removed. Don't know how to remove them...

Is this problem? More editing i gues

So the hdd1 will held only /home and /usr/local will be back on hda1, after that changes are done?
 
Old 09-29-2004, 07:49 PM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
You need to mount the /dev/hdd1 partition somewhere else so that you can first move the contents to the /usr/local directory in the root partition (/dev/hda1). Then you need to copy the contents of the /home directory ( on /dev/hda1 ) to the mounted /dev/hdd1 directory.

Be sure that all the permissions and user/group attributes are copied as well, and be sure to copy the hidden files and directories ( such as .kde, .ssh, .bashrc ) that exist in the home directories. After the contents of the hda1/home directory are copied on the new partition, you can delete the files and subdirectories. They will be hidden when you mount /home on /dev/hdd1 anyway.

After that, change the /etc/fstab line to
/dev/hdd1 /home ext2
 
Old 09-30-2004, 01:25 AM   #5
carboncopy
Senior Member
 
Registered: Jan 2003
Location: Malaysia
Posts: 1,210
Blog Entries: 4

Rep: Reputation: 45
It would be best doing all that jschiwai says while boot-up into the rescue disk.
 
  


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: unknown filesystem type 'ntfs' when trying to mount windows drive... DiZASTiX Linux - Hardware 12 09-28-2008 07:29 PM
Mount usb drive, umount and mount another drive arubin Linux - Hardware 9 01-17-2007 03:46 AM
mount new hard drive as /home filpee Debian 3 02-27-2005 12:24 AM
mount / , /home , /home/usr on different partitions alekoos Slackware 14 05-03-2004 11:39 AM
HELP! Error from mount: drive is write-protected... won't mount writeable. system Linux - General 2 12-27-2001 09:08 PM

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

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