LinuxQuestions.org
Visit Jeremy's Blog.
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 12-06-2012, 10:07 PM   #1
AnApproach2DigestLinux
LQ Newbie
 
Registered: Nov 2012
Posts: 6

Rep: Reputation: Disabled
How to create folders in 2nd and 3rd partions and how to mount /home on 3rd Partition


I have three partitions /dev/sda1, dev/sdb1, and /dev/sdc1. My redhat is installed in /dev/sda1.

/dev/sdb1 & /dev/sdb2 have already file system (ext4) created and both of them are empty.

I want to create 2 empty folders in /dev/sdb1 and 2 empty folders in /dev/sdc1. I just want to store few things in these empty folders.

One folder of /dev/sdc1, I want to use to mount the /home directory of /dev/sda1.

Please let me know how to perform these tasks amd how to access folders on different partitions after storing the data and how to acces one folder that is used to mount /home directory of IST partition.
 
Old 12-06-2012, 10:25 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,360

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
If the /home dir is empty, you can just edit /etc/fstab
Code:
/dev/sdc1		/home ext4    defaults        1 1
If it has data in it either copy the content temporarily elsewhere, then do above and copy content back or rename /home => /old_home, then create a new /home, edit fstab as above and copy content from /old_home to /home.
Note that the new home dir must have the same ownerships, permissions and SELinux settings as the original.

Can you show us what distro+version you have
Code:
cat /etc/*release*

uname -a
Also current disk layout
Code:
df -h

fdisk -l
Lowercase L for fdisk param
 
  


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
[SOLVED] Substituting zeros with dots in 2nd and 3rd field of a text file. iconig Linux - Newbie 9 05-31-2012 09:19 AM
Mounting a 2nd and 3rd internal harddrive trox Linux - Hardware 3 06-20-2007 03:18 PM
2nd/3rd USB ports not visible to Mandrake ncabell Linux - Newbie 3 03-31-2004 05:17 PM
Mandrake installation problems with 2nd and 3rd CD SidA Mandriva 2 03-21-2004 05:48 AM
Where to mount 2nd and 3rd disks vrillusions Linux - Hardware 3 11-29-2003 05:13 PM

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

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