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? |
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 |
use 'fdisk -l' to see all your partitions.
======================= you can automount partitions during boot up by editing /etc/fstab file. |
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! |
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' |
Quote:
|
Sorry, I forgot about the rpm! Doh !!
Another post on forum forgot to mention that too and its hardcopy is sitting next to me! |
its a Linux partition not a fat32 or ntfs ..........
|
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. |
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>) |
Filesystem type? Does that mean "system" in fdisk?
Would this work mount -t linux /dev/hda2 /mnt/partition |
Quote:
|
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. |
Quote:
What now? |
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. |