LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 03-08-2008, 10:24 PM   #1
vhcg
LQ Newbie
 
Registered: Mar 2008
Posts: 5

Rep: Reputation: 0
Added a 2nd disk -- did I do it right?


I'm just playing around on my Fedora 7 box. It has a pair of 80GB IDE disks in it. The OS is installed on the primary (master) drive.

I wanted to try the process of adding the 2nd disk as a "play" area with a mount point called "junk".

1. fdisk /dev/sdb
2. n (new partition), used whole disk, made it a primary, chose partition #1
3. w - wrote changes and exited from FDISK
4. mke2fs -j /dev/sdb ("formatted" using ext3fs filesystem)
5. mkdir /junk
6. mount -t ext3 /dev/sdb /junk
7. I added an entry into /etc/fstab for the new disk

How did I do?

I am coming up to speed using training videos from CBT Nuggets which are based on RH9...dated, but the instructor is good. The filesystem layout is different in RHEL and Fedora, but I figured adding a 2nd disk would be similar?

Thanks,
VHCG
 
Old 03-08-2008, 11:54 PM   #2
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
With the command: fdisk -l you can see if you have a partition. You must mount the partition, not the drive, which should be similar to /dev/sdb1 not /dev/sdb which is the drive.
 
Old 03-09-2008, 09:01 AM   #3
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,923
Blog Entries: 44

Rep: Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158
Hi,
Quote:
Originally Posted by vhcg View Post
I'm just playing around on my Fedora 7 box. It has a pair of 80GB IDE disks in it. The OS is installed on the primary (master) drive.

I wanted to try the process of adding the 2nd disk as a "play" area with a mount point called "junk".

1. fdisk /dev/sdb
2. n (new partition), used whole disk, made it a primary, chose partition #1
3. w - wrote changes and exited from FDISK
4. mke2fs -j /dev/sdb ("formatted" using ext3fs filesystem)
5. mkdir /junk
6. mount -t ext3 /dev/sdb /junk
7. I added an entry into /etc/fstab for the new disk

How did I do?

I am coming up to speed using training videos from CBT Nuggets which are based on RH9...dated, but the instructor is good. The filesystem layout is different in RHEL and Fedora, but I figured adding a 2nd disk would be similar?

Thanks,
VHCG
You would make the filesystem on the partition you create on device '/dev/sdb' which would be '/dev/sdb1' for the first partition by;
Code:
mke2fs -j /dev/sdb1
You should then mount the filesystem on the partition for the device '/dev/sdb' which would be '/dev/sdb1';
Code:
mount -t ext3 /dev/sdb1 /junk
The entry for the '/etc/fstab' should look something like;
Code:
/dev/sdb1        /junk            ext3        defaults         1   2
 
Old 03-09-2008, 11:44 AM   #4
vhcg
LQ Newbie
 
Registered: Mar 2008
Posts: 5

Original Poster
Rep: Reputation: 0
Got it!

Thank you very much for the responses.

VHCG
 
  


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 manage newly added 2nd HDD ? kcarun Solaris / OpenSolaris 11 09-07-2007 12:54 AM
Added a 2nd Sata Drive installed Fedora Core 5, BIOS Doesn't See 2nd Drive. mtmcc1 Linux - General 3 12-03-2005 04:01 PM
accessing a 2nd drive I added joel b Linux - Newbie 8 02-24-2005 01:00 AM
Added 2nd router - not working tw001_tw Linux - Networking 4 01-30-2005 03:20 PM
One switch, One monitor, just added 2nd box... justin_p Linux - Networking 3 08-18-2004 06:13 AM

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

All times are GMT -5. The time now is 10:21 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
Open Source Consulting | Domain Registration