LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   fdisk command not found? (https://www.linuxquestions.org/questions/linux-newbie-8/fdisk-command-not-found-182693/)

tiang_ono 05-17-2004 09:54 PM

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

itsjustme 05-17-2004 10:00 PM

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?

Bruce Hill 05-17-2004 10:07 PM

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.

tiang_ono 05-17-2004 10:19 PM

thanks, it' works

itsjustme 05-17-2004 10:28 PM

What works?

What did you do?

Bruce Hill 05-17-2004 10:31 PM

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.

tiang_ono 05-17-2004 10:44 PM

/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 :)

Bruce Hill 05-17-2004 10:48 PM

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


All times are GMT -5. The time now is 05:02 PM.