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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
|
08-25-2003, 07:21 AM
|
#1
|
Member
Registered: Jul 2003
Location: Alaska, USA
Distribution: Red Hat 9
Posts: 179
Rep:
|
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?
|
|
|
08-25-2003, 07:46 AM
|
#2
|
Member
Registered: Aug 2003
Posts: 208
Rep:
|
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
|
|
|
08-25-2003, 07:49 AM
|
#3
|
Member
Registered: May 2003
Location: Kerala,India
Distribution: RedHat,Mandrake,Debian
Posts: 643
Rep:
|
use 'fdisk -l' to see all your partitions.
=======================
you can automount partitions during boot up by editing /etc/fstab file.
|
|
|
08-25-2003, 07:50 AM
|
#4
|
Member
Registered: Aug 2003
Posts: 208
Rep:
|
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!
Last edited by Andy@DP; 08-25-2003 at 07:53 AM.
|
|
|
08-25-2003, 07:57 AM
|
#5
|
Member
Registered: May 2003
Location: Kerala,India
Distribution: RedHat,Mandrake,Debian
Posts: 643
Rep:
|
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'
|
|
|
08-25-2003, 07:59 AM
|
#6
|
Member
Registered: Jul 2003
Location: Alaska, USA
Distribution: Red Hat 9
Posts: 179
Original Poster
Rep:
|
Quote:
[root@localhost hubcaps]# mount /dev/hda2 /mnt/partition
mount: you must specify the filesystem type
|
??????????
|
|
|
08-25-2003, 08:01 AM
|
#7
|
Member
Registered: Aug 2003
Posts: 208
Rep:
|
Sorry, I forgot about the rpm! Doh !!
Another post on forum forgot to mention that too and its hardcopy is sitting next to me!
|
|
|
08-25-2003, 08:02 AM
|
#8
|
Member
Registered: Jul 2003
Location: Alaska, USA
Distribution: Red Hat 9
Posts: 179
Original Poster
Rep:
|
its a Linux partition not a fat32 or ntfs ..........
|
|
|
08-25-2003, 08:02 AM
|
#9
|
Member
Registered: May 2003
Location: Kerala,India
Distribution: RedHat,Mandrake,Debian
Posts: 643
Rep:
|
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.
|
|
|
08-25-2003, 08:06 AM
|
#10
|
Member
Registered: May 2003
Location: Kerala,India
Distribution: RedHat,Mandrake,Debian
Posts: 643
Rep:
|
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>)
|
|
|
08-25-2003, 08:17 AM
|
#11
|
Member
Registered: Jul 2003
Location: Alaska, USA
Distribution: Red Hat 9
Posts: 179
Original Poster
Rep:
|
Filesystem type? Does that mean "system" in fdisk?
Would this work
mount -t linux /dev/hda2 /mnt/partition
|
|
|
08-25-2003, 08:22 AM
|
#12
|
Member
Registered: Jul 2003
Location: Alaska, USA
Distribution: Red Hat 9
Posts: 179
Original Poster
Rep:
|
Quote:
[root@localhost hubcaps]# mount -t linux /dev/hda2 /mnt/partition
mount: fs type linux not supported by kernel
|
WTF is a "FileSystem Type"
|
|
|
08-25-2003, 08:42 AM
|
#14
|
Member
Registered: Jul 2003
Location: Alaska, USA
Distribution: Red Hat 9
Posts: 179
Original Poster
Rep:
|
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?
|
|
|
08-25-2003, 08:44 AM
|
#15
|
Member
Registered: May 2003
Location: Kerala,India
Distribution: RedHat,Mandrake,Debian
Posts: 643
Rep:
|
are you sure that it is /dev/hda2 ??what was the output of 'fdisk -l'
|
|
|
All times are GMT -5. The time now is 01:04 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|