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 searched all over this site and google, I can not figure out how to mount partitions on the local hard drive. I'm using FC4 on a Toshiba Satellite.
Thanks.
if you have lets say an mp3player and its /dev/sda1
you should make a directory in /mnt called something like mp3player.
#mkdir /mnt/mp3player
and then you mount the device to that dir like so:
#mount -t vfat /dev/sda1 /mnt/mp3player
if the filesystem is vfat that is....
if you would like to do that often you should edit your /etc/fstab,
you add an entry something like
/dev/sda1 /mnt/mp3player vfat defaults 0 0
did it help? please explain how you did it (if my help wasn't enough) so that others like you can see.
Yeah, I know about that stuff. It all works with external devices, but not for partitions on my local hard drive (such as hda2). Also, the partitions I want to mount are vfat.
Well, this didn't change anything that I have been doing in the past, however, I tried it again and it worked for one of my partitions, but I still don't know how to mount extended partitions.
I don't think that this is the problem, but if you already know the partition number, then it could be that you need to identify the file system in the mount command. That would look similar to this:
mount -t vfat /dev/hda /mnt/theDIRofChoosing
Might want to look this up as I'm not sure if there needs to be the -t swich before the vfat.
maybe the process of making a filesystem went wrong. if you use cfdisk (probably the same with fdisk) to make a filesystem that isn't sufficient (at least not for me). you have to download the dosfstools package and use the mkfs.vfat command. or maybe the disk is okay, have you perhaps used it in windows? then it should be okay.
Well, I think I figured out the extended partition thing. When I do fdisk -l, one of the partitions it gives me is an extended partition, this partition has the same starting value as one of my other partitions and an ending value of another. So, I think that this partition is actually just showing that those two other partitions are extended, and this is why I can not mount that listed partition.
Having an extended partition should not stop you from mounting it. All an extended partition does is reserve space for logical drives (partitions within a partition). This is due to a limit of 4 primary partitions to a single hard disk. I only suggested fdisk -l so that you could see the numbers and know which one to call out for in your mount command.
Post the results of fdisk -l if you don't mind working on this a little bit more.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.