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 |
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.
|
|
|
12-21-2002, 11:29 AM
|
#1
|
Member
Registered: Dec 2002
Distribution: freeBSD 4.9/6.0
Posts: 194
Rep:
|
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.
|
|
|
12-21-2002, 11:43 AM
|
#2
|
LQ Guru
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163
Rep:
|
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:
mount /dev/hda1 /mnt/somewhere
|
|
|
12-21-2002, 12:03 PM
|
#3
|
Member
Registered: Dec 2002
Distribution: freeBSD 4.9/6.0
Posts: 194
Original Poster
Rep:
|
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 12:12 PM.
|
|
|
12-21-2002, 12:15 PM
|
#4
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
You need to be root to run fdisk. Oh, and it's all lowercase.
Cool
|
|
|
12-21-2002, 12:18 PM
|
#5
|
Member
Registered: Dec 2002
Distribution: freeBSD 4.9/6.0
Posts: 194
Original Poster
Rep:
|
ok well i tryed it under root and under / and nothing worked typed fdisk -l it come back saying bash: fdisk:command not found.
|
|
|
12-21-2002, 12:52 PM
|
#6
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
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
|
|
|
12-21-2002, 01:03 PM
|
#7
|
LQ Guru
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163
Rep:
|
you will need to add support for ntfs to your kernel
|
|
|
12-21-2002, 02:43 PM
|
#8
|
Member
Registered: Dec 2002
Distribution: freeBSD 4.9/6.0
Posts: 194
Original Poster
Rep:
|
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.
|
|
|
12-21-2002, 03:41 PM
|
#9
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
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
|
|
|
12-21-2002, 03:53 PM
|
#10
|
Member
Registered: Dec 2002
Distribution: freeBSD 4.9/6.0
Posts: 194
Original Poster
Rep:
|
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.
|
|
|
12-21-2002, 04:19 PM
|
#11
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
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
|
|
|
12-21-2002, 04:23 PM
|
#12
|
LQ Guru
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163
Rep:
|
that's almost impossible to believe.
did you remove some files or something?
run this command
|
|
|
12-22-2002, 11:47 AM
|
#13
|
Member
Registered: Jan 2002
Location: Singapore
Distribution: Slackware
Posts: 250
Rep:
|
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.
|
|
|
12-22-2002, 03:32 PM
|
#14
|
LQ Guru
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163
Rep:
|
that's true, su - will load roots environment, su will not
however the $PATH statement is not related to running
|
|
|
01-06-2003, 05:12 PM
|
#15
|
Member
Registered: Dec 2002
Distribution: freeBSD 4.9/6.0
Posts: 194
Original Poster
Rep:
|
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 10:28 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
|
|