LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 12-21-2002, 10:29 AM   #1
dkc_ace
Member
 
Registered: Dec 2002
Distribution: freeBSD 4.9/6.0
Posts: 194

Rep: Reputation: 30
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.
 
Old 12-21-2002, 10:43 AM   #2
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
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
 
Old 12-21-2002, 11:03 AM   #3
dkc_ace
Member
 
Registered: Dec 2002
Distribution: freeBSD 4.9/6.0
Posts: 194

Original Poster
Rep: Reputation: 30
well will it work if i mount the partition as NTFS.

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

Last edited by dkc_ace; 12-21-2002 at 11:12 AM.
 
Old 12-21-2002, 11:15 AM   #4
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

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

Cool
 
Old 12-21-2002, 11:18 AM   #5
dkc_ace
Member
 
Registered: Dec 2002
Distribution: freeBSD 4.9/6.0
Posts: 194

Original Poster
Rep: Reputation: 30
ok well i tryed it under root and under / and nothing worked typed fdisk -l it come back saying bash: fdisk:command not found.
 
Old 12-21-2002, 11:52 AM   #6
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 68
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
 
Old 12-21-2002, 12:03 PM   #7
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
you will need to add support for ntfs to your kernel
 
Old 12-21-2002, 01:43 PM   #8
dkc_ace
Member
 
Registered: Dec 2002
Distribution: freeBSD 4.9/6.0
Posts: 194

Original Poster
Rep: Reputation: 30
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.
 
Old 12-21-2002, 02:41 PM   #9
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 68
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
 
Old 12-21-2002, 02:53 PM   #10
dkc_ace
Member
 
Registered: Dec 2002
Distribution: freeBSD 4.9/6.0
Posts: 194

Original Poster
Rep: Reputation: 30
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.
 
Old 12-21-2002, 03:19 PM   #11
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 68
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
 
Old 12-21-2002, 03:23 PM   #12
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

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

run this command


Code:
/sbin/fdisk -l
 
Old 12-22-2002, 10:47 AM   #13
Sifvion
Member
 
Registered: Jan 2002
Location: Singapore
Distribution: Slackware
Posts: 250

Rep: Reputation: 30
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.
 
Old 12-22-2002, 02:32 PM   #14
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
that's true, su - will load roots environment, su will not

however the $PATH statement is not related to running

Code:
/sbin/fdisk -l
 
Old 01-06-2003, 04:12 PM   #15
dkc_ace
Member
 
Registered: Dec 2002
Distribution: freeBSD 4.9/6.0
Posts: 194

Original Poster
Rep: Reputation: 30
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mount a partition KptnKrill Linux - Newbie 20 06-15-2008 11:34 AM
cant mount old partition hydro Linux - Newbie 8 08-30-2005 01:31 PM
How to resize a partition and create/mount a new partition? Maarten_Holland Linux - Newbie 1 04-20-2005 08:56 AM
can't mount partition greklas Linux - Newbie 3 09-04-2004 10:45 AM
Mount the partition Hammad Linux - General 0 03-19-2003 04:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 11:32 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration