LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   RedHat 9 Partitions (https://www.linuxquestions.org/questions/linux-newbie-8/redhat-9-partitions-85451/)

PionexUser 08-25-2003 07:21 AM

RedHat 9 Partitions
 
Dang does the search suck!

I just added a 2nd partiton to my harddrive. I think it is hda2, how do I use it?

Andy@DP 08-25-2003 07:46 AM

To use a partition you need to create a mount point in the /mnt/ directory and mount the drive to it. Code below:

mkdir /mnt/partition
mount /dev/hda2 /mnt/partition

The partition name above can be substituted for any name you like. The partition name (hda2) might be wrong.
I created a logical partition on my second drive (hdb) and it was referenced in linux by /dev/hdb5. Try to create the directory and then mount the drive if that command doesn't work substitute hda5 for hda2.
If the partition is on second drive use hdb.

Hope this helps

arunshivanandan 08-25-2003 07:49 AM

use 'fdisk -l' to see all your partitions.
=======================
you can automount partitions during boot up by editing /etc/fstab file.

Andy@DP 08-25-2003 07:50 AM

OH yeah I forgot to add if you want the drive mounted at boot add the following line to your /etc/fstab file. Remember to be in root when you edit.

/dev/hda2 /mnt/partition vfat defaults,umask=0000 0 0

if the drive is fat or fat32

and

/dev/hda2 /mnt/partition ntfs auto, ro, umask =0222 0 0

if the drive is NTFS.

Thats only if the partitions are windows drives!! Not ext2 or ext3 drives!

These two options work fine on my system (RH9/XPpro). Remember to alter hda and partition names to suit your system!

arunshivanandan 08-25-2003 07:57 AM

you cant mount ntfs that easily.


download and install the rpm for ntfs support.


http://linux-ntfs.sourceforge.net/info/redhat.html
======================
if in doubt,check 'man mount'

PionexUser 08-25-2003 07:59 AM

Quote:

[root@localhost hubcaps]# mount /dev/hda2 /mnt/partition
mount: you must specify the filesystem type
??????????

Andy@DP 08-25-2003 08:01 AM

Sorry, I forgot about the rpm! Doh !!
Another post on forum forgot to mention that too and its hardcopy is sitting next to me!

PionexUser 08-25-2003 08:02 AM

its a Linux partition not a fat32 or ntfs ..........

arunshivanandan 08-25-2003 08:02 AM

try
mount -t <filesystem type> /dev/(fill this) /mnt/(fill this)
to see the file system type etc.try 'man mount'.
I am saying this cos' you have not mentiones which partition are you going to mount.also,try 'fdisk -l' to see all partitions.

arunshivanandan 08-25-2003 08:06 AM

sorry,i was a bit late in the above post.
===========
if that was a linux partition,try 'cat /proc/partitions' or 'fdisk -l' to see the partition.
and then change directory to the partition.(ie cd <partition name>)

PionexUser 08-25-2003 08:17 AM

Filesystem type? Does that mean "system" in fdisk?

Would this work
mount -t linux /dev/hda2 /mnt/partition

PionexUser 08-25-2003 08:22 AM

Quote:

[root@localhost hubcaps]# mount -t linux /dev/hda2 /mnt/partition
mount: fs type linux not supported by kernel
WTF is a "FileSystem Type"

arunshivanandan 08-25-2003 08:29 AM

no,try replacing linux with 'ext3' or 'ext2'





======
to explain filesystem types and all,i just hit the google and got the following links. http://www.linuxgeek.net/beginners/node258.html
http://www.linuxplanet.com/linuxplan...orials/3174/8/
=====================





try 'df' to see whether your partition is already mounted.

PionexUser 08-25-2003 08:42 AM

Quote:

[root@localhost hubcaps]# mount -t ext2 /dev/hda2 /mnt/partition
mount: wrong fs type, bad option, bad superblock on /dev/hda2,
or too many mounted file systems
[root@localhost hubcaps]# mount -t ext3 /dev/hda2 /mnt/partition
mount: wrong fs type, bad option, bad superblock on /dev/hda2,
or too many mounted file systems
BUTT CRACK!

What now?

arunshivanandan 08-25-2003 08:44 AM

are you sure that it is /dev/hda2 ??what was the output of 'fdisk -l'


All times are GMT -5. The time now is 07:51 AM.