LinuxQuestions.org
Visit Jeremy's Blog.
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 11-26-2008, 09:36 AM   #1
Allanitto Newbee
Member
 
Registered: Oct 2007
Location: Montreal
Distribution: Slackware12;Slackware13
Posts: 106

Rep: Reputation: 15
mounting and using 2nd partition


Newbee question again and again...

I do have 60g hard drive and I'm using Slack12.

I partitioned 30g for my / and 2g for my swap.

Now I don't know how to mount my second partition and use it for my /home directory. As of now am working as root all the time. I will be creating new user later.

Please anybody?
 
Old 11-26-2008, 09:47 AM   #2
amani
Senior Member
 
Registered: Jul 2006
Location: Kolkata, India
Distribution: Debian 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,766

Rep: Reputation: Disabled
#fdisk -l
#mkdir /home
#mount -t ext3 /dev/sdb1 /home (EXAMPLE)
#adduser or use the GUI (control centre)

#man mount
#mount --help
 
Old 11-26-2008, 09:54 AM   #3
camorri
LQ Guru
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1, 14.2
Posts: 5,090

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
If the partition exists, then it need formatting. Once that is done, you will need an entry in /etc/fstab.

Here is what it looks like for my /home ...

Quote:
/dev/sda6 /home ext3 defaults,noatime 1 2
Things that may differ, the first field, /dev/sda6 will depend on the hard drive type. This is a sata drive, hence the sda. The 6 is the first user partition on an extended partition.

ext3 is the file system type. This will change depending on the file system type you select when formatting. The rest should get you going.

Once you edit fstab, as root, then a command 'mount /dev/sda6' or a 'mount -a' shoudl mount the partition. No need to boot.

BTW, 30g for a / is overkill. It won't hurt, but you are very unlikely to fill that up. User files should never go to your / partition. Just the system and if you like, applications.
 
Old 11-26-2008, 10:34 AM   #4
Allanitto Newbee
Member
 
Registered: Oct 2007
Location: Montreal
Distribution: Slackware12;Slackware13
Posts: 106

Original Poster
Rep: Reputation: 15
Wink

Thanks a lot guys, I'll do these when I get home later.



Quote:
Originally Posted by camorri View Post
BTW, 30g for a / is overkill. It won't hurt, but you are very unlikely to fill that up. User files should never go to your / partition. Just the system and if you like, applications.
Thats what I thought also but is there anyway I could resize my / w/o re-installing the OS?
 
  


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
Mounting a 2nd drive mattjohnstone22 Linux - Newbie 5 11-11-2007 06:34 PM
fstab mounting 2nd harddisk dannyk1 Linux - General 3 11-24-2005 02:15 AM
Problems mounting 2nd hd (hdb1) p3_141597i Linux - Hardware 1 10-02-2004 11:36 AM
help mounting 2nd partition on WinXP drive harnadem Linux - Newbie 2 03-21-2004 10:38 AM
Problem mounting 2nd cdrom NeoY2k Linux - Newbie 14 10-28-2003 08:54 AM


All times are GMT -5. The time now is 11:57 AM.

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