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!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I formatted a second hard drive (hdb1) as ext2. I can mount it but my problem is that under /etc/fstab, I can't find hdb1 even after mounting the 2nd hard drive. What am I doing wrong?
Also, is there a way to know the hdd space available for the hard drives and partitions under Linux like in Windows Explorer?
Finally, I'm wary on storing my backups on the 2nd hard drive because I'm not sure if it's really detected. I might resort to Windows just to check if my files are really getting stored. What format is read/writable under both Linux and Windows?
Also, for finding out how much space is left, you could type "df -h" This produces a human readable format of space available including % used.
As for the second hard disk. Just installing it in the machine doesn't make it automatically appear 'fstab'. Once mounted it should appear in 'mtab' though. To make it Windows readable, format it as FAT16/32 (32 best), and mount it somewhere where to read and write to.
Also, if you have a network installed, using Samba you can then share the folder over the network. (This works for both ext2 and FAT32).
Distribution: openSuSE 42.1_64+Tumbleweed-KDE, Mint 17.3
Re: Second Hard Drive Mounting Problems
Originally posted by JC404 I formatted a second hard drive (hdb1) as ext2. I can mount it but my problem is that under /etc/fstab, I can't find hdb1 even after mounting the 2nd hard drive. What am I doing wrong?
You expect too much . You have only one partition on hdb? you can do that, but make sure you don't waste disk space. Now. Edit /etc/fstab manually. Copy the line for your first disk's first partition (hda1) and just change hda1 to hdb1 and the file type part (NTFS?) to ext2. Then reboot and you should see hdb1. You can test it beforehand with manually mounting hdb1.
Originally posted by JC404 Also, is there a way to know the hdd space available for the hard drives and partitions under Linux like in Windows Explorer?
Type du at the command prompt (man du). KDE and Gnome have pretty graphical tools.
Originally posted by JC404 Finally, I'm wary on storing my backups on the 2nd hard drive because I'm not sure if it's really detected. I might resort to Windows just to check if my files are really getting stored. What format is read/writable under both Linux and Windows?
I'm now having problems with the disk space on the 80gb hard drive. I partitioned this hard drive with Partition Magic as ext2. Now it seems that the 80gb hard drive is now recognized as 70gb. I know that the 80gb is actually just 76 or 78gb but it's still a lot of wasted space.
This is most likely due to the 10% reserves. It's something you can use tune2fs for, see man tune2fs and look for:
Change that to less, something like 2 or 1 (1 is probably too little, 2 is sufficient).
I think what they were trying to suggest is to use linux fdisk to remove create a new partition.
And then go from there. Use 'm' to read the help, but here's basically the keys you'll look for:
p to list the current partitions
n to create new one(s)
d to delete the current/old ones
And finally, if you are satisfied:
w to save changes.
If you aren't happy with the change:
q to quit without saving.
Then you'll need to create a filesystem on it, at which point you can also specify how much reserve space you want used
mke2fs -j /dev/hddX
Where X is probably 1, but it's the partition(s) you created during fdisk.