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.
Adding a new HDD to my computer. It is /dev/hdb. I used fdisk to partition it. Deleted the old partitions, added a new primary partition, and then formatted it using mke2fs. When I use fdisk and hit "p" to print the partition table, I see:
Disk /dev/hdb: 255 heads, 63 sectors, 9732 cylinders
Units = cylinders of 16065 * 512 bytes
Device Boot Start End Blocks Id System
/dev/hdb1 1 9732 78172258+ 83 Linux
However, if I try to mount the drive:
# mount /dev/hdb1 /data
mount: fs type ntfs not supported by kernel
I was reading the mke2fs manpage, it it seems that if you use the command with no arguments it defaults to ext2, so try what I suggested above except with 'ext2', and if that doesn't work you may want to try redoing the filesystem. It might work better if you use mkfs.ext3 instead of mke2fs, although I'm not really sure of the difference, except that it explicitly creates ext3.
Okay, I was able to mount it with the following command:
mount -t ext2 /dev/hdb1 /mountpoint
I ran the df command as you said, cojo, and it was indeed an ext2 partition. Thanks again for the help, man. You rock.
As for all you other helpful people who are so dilligently trying to alleviate my ignorance, I have a host of other questions for you sparked by this issue:
1) Why do you sometimes have to mount files with the -t option and other times it's not necessary? (I mount a USB backup drive without it)
2) How can I have these mount via fstab instead of just adding a mount command in rc.local? I've tried to add both my hdb1 and sda1 drives to my fstab, but it didn't work (and these mount normally otherwise)
3) How are ext2 and ext3 different?
4) Can you add NTFS support to your kernel in some fashion? (if this is terribly complicated, just say so and let's drop it)
5) How can you unmount file systems?
Thanks for all the help, guys. You make this message board the best source of Linux information on the internet that I've found so far, and I'm sincerely thankful for it.
1) You don't need to specify the type if it is listed in your /etc/fstab, in fact, if it is in fstab you only need to run 'mount mountpoint' and it will work.
2) open the file in your favorite editor and add something like:
/dev/hdb1 /mountpoint ext2 defaults 0 0
read 'man fstab' for all the gritty details.
3) ext3 is ext2 with journaling. This makes checking the filesystem faster after an unclean shutdown. You can change your filesystem to ext3 without losing any data with tune2fs (read the manpage) if you want.
4) kernel version 2.4.20 has read support, but the write support is experimental, and not reccomended (stupid proprietary microsoft!!) You may have to recompile your kernel, but I have seen some posts here that seem to suggest you can add a module to get NTFS support without recompiling.