LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 08-01-2005, 05:35 PM   #1
pdeman2
Member
 
Registered: Jul 2005
Location: Maine, USA
Distribution: OpenSUSE, Gentoo, Fedora, Ubuntu, Mandriva, others
Posts: 413

Rep: Reputation: 30
Can't mount partitions on the same drive as linux


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.
 
Old 08-01-2005, 05:42 PM   #2
samel_tvom
Member
 
Registered: Aug 2004
Posts: 133

Rep: Reputation: 15
what do you want to mount?

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.
 
Old 08-01-2005, 06:15 PM   #3
pdeman2
Member
 
Registered: Jul 2005
Location: Maine, USA
Distribution: OpenSUSE, Gentoo, Fedora, Ubuntu, Mandriva, others
Posts: 413

Original Poster
Rep: Reputation: 30
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.
 
Old 08-01-2005, 06:33 PM   #4
Elomis
Member
 
Registered: Dec 2004
Location: Sydney
Distribution: SUSE
Posts: 89

Rep: Reputation: 15
Exact same thing.

mount /dev/hda2 /mnt/nameofafolderyoucreate
 
Old 08-01-2005, 08:51 PM   #5
pdeman2
Member
 
Registered: Jul 2005
Location: Maine, USA
Distribution: OpenSUSE, Gentoo, Fedora, Ubuntu, Mandriva, others
Posts: 413

Original Poster
Rep: Reputation: 30
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.
 
Old 08-01-2005, 10:12 PM   #6
volvogga
Member
 
Registered: Aug 2004
Location: MI, USA
Distribution: Fedora Core 3
Posts: 137

Rep: Reputation: 15
I think it should be the same kind of process (as was said earlier). I haven't messed with partitions in a while.

Try this:

fdisk -l /dev/hda (if it is hard disk a, if not make it what it should be)

That should identify the all of your partitions for you (I think).

If that doesn't help, please post the output of that command.
 
Old 08-01-2005, 10:29 PM   #7
volvogga
Member
 
Registered: Aug 2004
Location: MI, USA
Distribution: Fedora Core 3
Posts: 137

Rep: Reputation: 15
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.
 
Old 08-02-2005, 05:40 PM   #8
samel_tvom
Member
 
Registered: Aug 2004
Posts: 133

Rep: Reputation: 15
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.
 
Old 08-02-2005, 09:00 PM   #9
pdeman2
Member
 
Registered: Jul 2005
Location: Maine, USA
Distribution: OpenSUSE, Gentoo, Fedora, Ubuntu, Mandriva, others
Posts: 413

Original Poster
Rep: Reputation: 30
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.

Thanks for the help ya'll.
 
Old 08-02-2005, 09:18 PM   #10
volvogga
Member
 
Registered: Aug 2004
Location: MI, USA
Distribution: Fedora Core 3
Posts: 137

Rep: Reputation: 15
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.
 
Old 08-03-2005, 10:13 AM   #11
pdeman2
Member
 
Registered: Jul 2005
Location: Maine, USA
Distribution: OpenSUSE, Gentoo, Fedora, Ubuntu, Mandriva, others
Posts: 413

Original Poster
Rep: Reputation: 30
Here's what I get with fdisk -l:

[root@localhost ~]# /sbin/fdisk -l

Disk /dev/hda: 40.0 GB, 40007761920 bytes
255 heads, 63 sectors/track, 4864 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 132 1522 11173176 7 HPFS/NTFS
/dev/hda2 4710 4864 1245037+ f W95 Ext'd (LBA)
/dev/hda3 1 131 1052226 82 Linux swap / Solaris
/dev/hda4 1523 4709 25599577+ 83 Linux
/dev/hda5 4710 4857 1188778+ 6 FAT16
/dev/hda6 4858 4864 56196 b W95 FAT32

Partition table entries are not in disk order
 
Old 08-03-2005, 06:46 PM   #12
volvogga
Member
 
Registered: Aug 2004
Location: MI, USA
Distribution: Fedora Core 3
Posts: 137

Rep: Reputation: 15
Ok, that looks good.

I would say that the command that you need would be

mount -t vfat /dev/hda6 /WhatEverYouWant

also, if you want

mount -t vfat /dev/hda5 /WhatEverYouWant

just remember that the subdirectory that you want to mount to has to already exist.

One last thing, if neither of these work, what partition(s) are you having the problem with?
 
Old 08-03-2005, 07:03 PM   #13
pdeman2
Member
 
Registered: Jul 2005
Location: Maine, USA
Distribution: OpenSUSE, Gentoo, Fedora, Ubuntu, Mandriva, others
Posts: 413

Original Poster
Rep: Reputation: 30
Thanks, both of those work, it's just hda2 that doesn't. I assume that's because it is just identifying the extended partitions.
 
Old 08-03-2005, 07:14 PM   #14
volvogga
Member
 
Registered: Aug 2004
Location: MI, USA
Distribution: Fedora Core 3
Posts: 137

Rep: Reputation: 15
Sure. No problem.

hda2 (extended partition) is just a place holder. More or less anyway. So you're all set now, right?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mount freeBSD partitions under linux cccc Linux - General 1 08-07-2005 03:47 PM
Flash drive with 2 partitions...how do I mount the other partition? Carl P DamnSmallLinux 4 04-06-2005 10:20 PM
How to mount FAT partitions under Linux automatically cquedugdylp Linux - Hardware 9 03-23-2005 10:14 PM
PQMagic8 destroyed linux partitions. Unable to mount root fs cristip Debian 2 02-04-2005 09:22 PM
how do i mount my windows partitions and secondary hard drive in RH9 kasperl Linux - Newbie 5 10-22-2003 05:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration