LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   partitioned but it isn't there (https://www.linuxquestions.org/questions/linux-general-1/partitioned-but-it-isnt-there-302231/)

ampex189 03-16-2005 06:14 AM

partitioned but it isn't there
 
hi,
I just installed fedora core 3, partitioned my 60GB HD into 2GB hda1, 54GB hda2, and 1GB swap. For some reason, I can't mount hda2. hda1 and hda2 are both ext2. any ideas??

Thanks
ampex189

homey 03-16-2005 06:24 AM

Run the command: fdisk -l and post the results.

marcosdumay 03-16-2005 06:28 AM

What is really your problem?
 
You need to post some more information in order to anyone help you. How are you trying to mount it? By mount or by a icon? What error messages it gives you?

As a hint, I sugest you to try "mount /dev/hda2 /mnt/hda2" as root on a terminal and see what happens (/mnt/hda2 must be an empty directory, you can change it if you want).

If you are trying to mount the partition as a normal user, you problabli can`t. A normal user can`t mount anything he wants, just what is listed on /etc/fstab. Take a look there.

ampex189 03-16-2005 06:41 AM

Code:

Disk /dev/hda: 60.0 GB, 60040544256 bytes
16 heads, 63 sectors/track, 116336 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes

  Device Boot      Start        End      Blocks  Id  System
/dev/hda1  *          1        4065    2048256  83  Linux
Partition 1 does not end on cylinder boundary.
/dev/hda2            4065      114220    55518592+  83  Linux
Partition 2 does not end on cylinder boundary.
/dev/hda3          114221      116335    1065960  82  Linux swap
Partition 3 does not end on cylinder boundary.
/dev/hda4              1          1          31  83  Linux
Partition 4 does not end on cylinder boundary.

Partition table entries are not in disk order


ampex189 03-16-2005 06:44 AM

Im trying to mount it using mount but it tells me
Code:

mount: can't find /mnt/hda2 in /etc/fstab or /etc/mtab
Im running this as root.

marcosdumay 03-16-2005 07:08 AM

Mount error
 
You are trying "mount /mnt/hda2". The command "mount /dev/hda2 /mnt/hda2" should work.

To change this, you can add the line "/mnt/hda2 /dev/hda2 ext2 defaults 0 0" to your /etc/fstab.
The line above tels mout that when you write "mount /mnt/hda2" it should mount the device "/dev/hda2" there (otherwise, it doens`t know what device to mount). This device has a "ext2" fs and you want "defaults" options (don't botter now about the two trayling zeros, they are almost always zero).

If you want to mount the device automaticaly on boot, add "auto" to the options, if tou want a normal user to aount it, add "user". If you want everybody to write there, add "umask=000" (if you want to set better the permissions, see the umask manual). The options must be separated by commas ",".

ampex189 03-16-2005 07:10 AM

Code:

[root@localhost ~]# mount /dev/hda2 /mnt/hda2
mount: mount point /mnt/hda2 does not exist


homey 03-16-2005 08:08 AM

Quote:

Partition 1 does not end on cylinder boundary.
Partition 2 does not end on cylinder boundary.
Partition 3 does not end on cylinder boundary.
Partition 4 does not end on cylinder boundary.
Partition table entries are not in disk order
Did you do the partitioning with Fedora at install time or some other method?
The partitioning seems to be more than a little messed up.

WhatsHisName 03-16-2005 09:40 AM

ampex189: You need to manually create the directory /mnt/hda2 before you can mount to it. A mount point is just a directory and it must exist before you can mount to it.

Otherwise, the command line you entered is correct and should mount the partition.

To make my life easier, I create the directory /mnt/temp as a “universal” mount point for use whenever I need to mount something.

ampex189 03-16-2005 03:29 PM

Problem solved! Thank you WhatsHisName! I would have never guessed that I would have to create a directory.

Thanks
Ampex189


All times are GMT -5. The time now is 08:18 AM.