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.
Now that you have the new disk installed, the next step is to partition and format t he disk.
Decide how many partitions you want. If you want more that four, my suggestion would
be to make one primary (for part of the disk) and one extended for the rest of the
disk. Them you can make up to 15 logical partitions inside the extended partition.
For this example, let's use two partitions; one for data files and one for music.
Remember, this is just an example.
Use your favorite partitioning tool to make two partitions of equal size to take up the entire disk. Then use the mkfs command to format both partitions.
Now make two mount points to mount the partitions. Something like 'mkdir /mnt/data'
for the data partition, and 'mkdir /mnt/music' for the music partition.
Now to edit /etc/fstab. Make two entries, one for each partition. So, if the new disk
is hdb, and the partitions are hdb1 and hdb2, your entries in fstab would be:
/dev/hdb1 /mnt/data ext2 (mount parameters) 1 2
/dev/hdb2 /mnt/music ext2 (mount paramters) 1 2
where (mount parambers) are like the parameters for other partitions in fstab, and 1 2
(if I remember correctly) refer to boot order.
where (mount parambers) are like the parameters for other partitions in fstab, and 1 2
(if I remember correctly) refer to boot order.
I believe the "1 2" in the above post refers to fs that can be dumped (the 1) and the 2 refers to the order of fs checks, where the root fs should be 1 and others should be 2 or zero if no check to be performed.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.