Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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.
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;
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.