LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 05-17-2004, 09:54 PM   #1
tiang_ono
LQ Newbie
 
Registered: Apr 2004
Location: indonesia
Distribution: red hat 9
Posts: 21

Rep: Reputation: 15
fdisk command not found?


i changed to root and typed fdisk -l, but
bash:fdisk:command not found.
interesting one, i can see fdisk manual.
any explain about this? and i have another HD with win98, it is used as slave. how can i mount this HD ?
thx in advance
 
Old 05-17-2004, 10:00 PM   #2
itsjustme
Senior Member
 
Registered: Mar 2003
Location: Earth
Distribution: Slackware, Ubuntu, Smoothwall
Posts: 1,571

Rep: Reputation: 47
Did you do a search for fdisk?
which fdisk
locate fdisk
find / -name 'fdisk'
etc...

It should be in /sbin.
Is your PATH hosed up?
 
Old 05-17-2004, 10:07 PM   #3
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
Re: fdisk command not found?

Quote:
Originally posted by tiang_ono
i changed to root and typed fdisk -l, but
bash:fdisk:command not found.
interesting one, i can see fdisk manual.
any explain about this? and i have another HD with win98, it is used as slave. how can i mount this HD ?
thx in advance
Try (as root) /sbin/fdisk -l as it may not be in your path. If that doesn't work, it's not installed.

Edit your /etc/fstab file as follows and it will mount when you boot ->
Code:
/dev/hda5        /WinE            vfat        user,umask=1000,rw,auto 0 0
where hda5 is whichever device your W98 drive is, and /WinE is the mount point you'd like to use. This scheme will mount your drive as read/write, but if you don't want to write to it, use ro instead or rw and it will be read only.
 
Old 05-17-2004, 10:19 PM   #4
tiang_ono
LQ Newbie
 
Registered: Apr 2004
Location: indonesia
Distribution: red hat 9
Posts: 21

Original Poster
Rep: Reputation: 15
thanks, it' works
 
Old 05-17-2004, 10:28 PM   #5
itsjustme
Senior Member
 
Registered: Mar 2003
Location: Earth
Distribution: Slackware, Ubuntu, Smoothwall
Posts: 1,571

Rep: Reputation: 47
What works?

What did you do?
 
Old 05-17-2004, 10:31 PM   #6
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
Spot on, mate! Always tell what fixed your problem, so that when someone else searches and comes to your thread, they'll know what to do on their system.
 
Old 05-17-2004, 10:44 PM   #7
tiang_ono
LQ Newbie
 
Registered: Apr 2004
Location: indonesia
Distribution: red hat 9
Posts: 21

Original Poster
Rep: Reputation: 15
/sbin/fdsik -l
i got /dev/hdb for my slave HD
in the fstab i added
/dev/hdb1 /mnt/win98 vfat user,umask=1000,rw,noauto 0 0 (i have another patition at that HD)
and i mount as root with
mount /dev/hdb1 /mnt/win98 -t vfat -r -o umask=0222
thank you all
 
Old 05-17-2004, 10:48 PM   #8
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
Quote:
Originally posted by tiang_ono
/dev/hdb1 /mnt/win98 vfat user,umask=1000,rw,noauto 0 0 (i have another patition at that HD)
and i mount as root with
mount /dev/hdb1 /mnt/win98 -t vfat -r -o umask=0222
thank you all :)
Good on yah! With that setup, you can mount as user by issuing ->
$ mount /mnt/win98
and not have to login as root. ;-) That's the purpose of user instead of root
in that line in /etc/fstab
 
  


Reply



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
Problem using command fdisk -l ? AkshatBhandari Linux - Newbie 2 03-17-2005 12:36 PM
fdisk/parted/cfdisk: command not found indole Linux - Software 2 02-17-2005 12:08 PM
fdisk command not found ryancherry Fedora 2 06-12-2004 06:56 PM
fdisk command thefetus Linux - Newbie 5 11-19-2003 02:15 PM
fdisk not a command? toob Linux - Newbie 11 04-26-2003 10:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:49 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
Open Source Consulting | Domain Registration