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'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.
extended partitions are those which live inside a logical partition. A logical partition is (for simplicity) a box to place your extended partitions in.
Logical partitions live inside the extended partition.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.