LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Trying to mount partition. (https://www.linuxquestions.org/questions/linux-hardware-18/trying-to-mount-partition-39042/)

dkc_ace 12-21-2002 10:29 AM

Trying to mount partition.
 
i am trying to mount a partiotion in redhat 8.0 i have samba installed. dont know if it is installed correctly but its installed.

DavidPhillips 12-21-2002 10:43 AM

mounting a partition is considered to be local. Samba is for microsoft networking. Mounting local partitions does not use samba.

the mount command can be used to mount a partition
run fdisk to see the partition

Code:

fdisk -l
Code:

mount /dev/hda1 /mnt/somewhere

dkc_ace 12-21-2002 11:03 AM

well will it work if i mount the partition as NTFS.

edit: i tryed to run Fdisk -l but it says command not found.

MasterC 12-21-2002 11:15 AM

You need to be root to run fdisk. Oh, and it's all lowercase.

Cool

dkc_ace 12-21-2002 11:18 AM

ok well i tryed it under root and under / and nothing worked typed fdisk -l it come back saying bash: fdisk:command not found.

MasterC 12-21-2002 11:52 AM

That's odd. See if it's installed, again as root (the admin user, root, not the directory) type:
find fdisk

Or you can type:
f (then press Tab twice or 3 times to display all possible f commands).

Or, what I'd try first, type:
whereis fdisk

This will show you the location of the binary file. Then, as root, run it will full path, so let's say it's /sbin/fdisk run:
/sbin/fdisk -l

Cool

DavidPhillips 12-21-2002 12:03 PM

you will need to add support for ntfs to your kernel

dkc_ace 12-21-2002 01:43 PM

Quote:

Originally posted by MasterC
That's odd. See if it's installed, again as root (the admin user, root, not the directory) type:
find fdisk

Or you can type:
f (then press Tab twice or 3 times to display all possible f commands).

Or, what I'd try first, type:
whereis fdisk

This will show you the location of the binary file. Then, as root, run it will full path, so let's say it's /sbin/fdisk run:
/sbin/fdisk -l

Cool

ok i found out that fdisk is in the dir /usr/shar/man/man8/fdisk.8.gz im kinda lost on what to do with it.
how can i update my kernal to support NTFS.

MasterC 12-21-2002 02:41 PM

That's just the manpage for it, not the executable file itself. However, if you have the man I would suppose you had the file installed as well?

Maybe you don't have it then??? It should be on your distro's install CD if you need to install it.

Cool

dkc_ace 12-21-2002 02:53 PM

Quote:

Originally posted by MasterC
That's just the manpage for it, not the executable file itself. However, if you have the man I would suppose you had the file installed as well?

Maybe you don't have it then??? It should be on your distro's install CD if you need to install it.

Cool

i guess i dont have it install. as u can see im a VERY big newb :) u know how to install it. :)

MasterC 12-21-2002 03:19 PM

Sure, you just locate the RPM, which requires the install CD, then install via command line:
rpm -Ivh filename.rpm

You will need to put in the install CD, then mount the disc, change to the RPM directory and locate the file to install, here's a sorta how to on all that (remember to be root):
place disc in drive, then;
mount -t iso9660 /dev/cdrom /mnt/cdrom
find /mnt/cdrom/redhat/RPMS/ | grep fdisk <this should give the filename for fdisk>
cd /mnt/cdrom/redhat/RPMS
rpm -Ivh filename.rpm (replace filename.rpm with the actual filename)

Remember to TAB autocomplete as often as possible. I am still very surprised it's not installed...

After running that, you will want to:
ldconfig (LDCONFIG lowercase) and
updatedb

Then try running the command David gave you again.

Cool

DavidPhillips 12-21-2002 03:23 PM

that's almost impossible to believe.
did you remove some files or something?

run this command


Code:

/sbin/fdisk -l

Sifvion 12-22-2002 10:47 AM

I just make a guess. When you log in to user and you want to swtich to root to use commands like fdisk you got to :

su -
and pwd for root and not:

su
pwd for root.

with - you will import the commands for the user you switching to.

DavidPhillips 12-22-2002 02:32 PM

that's true, su - will load roots environment, su will not

however the $PATH statement is not related to running

Code:

/sbin/fdisk -l

dkc_ace 01-06-2003 04:12 PM

well sorry about the other post in the General forums i guess u can delete it or lock it or whatever i didnt find this one until an after thought.

ok i got fdisk to work but when i try to mount my 20gb partition it says "fs type ntfs not supported by kernel"

im not sure what to do here bc all of my partitions are NTFS. If there is some way i can just be able to copy some of the info off the drive and then format it to a linux partition that would be great.

How would i go about mounting my other 40gb HDD it didnt show up under fdisk. I have serveral diffrent partitions on the 40gb partition and would like to get some info off the drives then format them and use them for storage.


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