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've mounted a FAT32 partition so I can listen to my mp3s etc from Linux, but to do it I had to add both of the last 2 lines in fstab - see below. If I only add the dev/hdc1 line the partition shows as being empty.
Do you know why this happens?
ak, cheers -
I get this - see below. I guess it can't properly recognise the fat32 unless it's mounted the whole drive as an extended partition. Is this right? If it is i'm surprised that i didn't need to mount hdc1 for any of the linux part's to be mountable.
[root@localhost al]# fdisk -l /dev/hdc
Disk /dev/hdc: 255 heads, 63 sectors, 2434 cylinders
Units = cylinders of 16065 * 512 bytes
Device Boot Start End Blocks Id System
/dev/hdc1 * 1 1275 10241406 5 Extended
/dev/hdc2 1276 2433 9301635 c Win95 FAT32 (LBA)
/dev/hdc5 1 446 3582432 83 Linux
/dev/hdc6 447 477 248976 82 Linux swap
/dev/hdc7 478 1275 6409903+ 83 Linux
hdc1 is the container per se. It holds the rest of the volumes of 5,6,7. hdc2 is the only primary partition on the device, partitions 5,6,7 are linux, so those aren't fat .. that's (hdc2) the one that needs to be mounted. hdc1 is nothing more than a container, a box that holds the partitions (bad example I know, but it helps to visually see what I mean).
OK - I'm confused again. I've just fully dhut down and rebooted my pc. I go to the FAT 32 partition and it's empty so I check that both hdc1 and hdc2 are mounted - they are. I then unmount hdc1 and can now see the files on hdc2. If i re-mount hdc1 , then hdc2 appears empty again. Not a problem, but whats going on?
You shouldn't mount hdc1, ever. It's just there holding all the goodies. hdc2 and on are the only mountable partitions. You can only mount/read/see/view/touch/write/locate primary and extended partitions. extended partitions are those which live inside a logical partition. A logical partition is (for simplicity) a box to place your extended partitions in. You don't need the box, just the stuff inside. Primary partitions are those that are all happy by themselves. hdc2 is this type. hdc5 and so on are extended. hdc1 is logical.
looking at that fdisk stuf... basically your drive is illegal. As hdc2 is 1,2,3 or 4 then that indicates that it is a primary partition (or an extended... which it's clearly not) BUT it IS inside the bounds of an extended partition.... basically that's just gibberish ho on earth did you manage that?
You'd do well to repartition that drive really.... other odd things could well start happening. basically.