Click to See Complete Forum and Search --> : $ mkdir/dos
wsm2506
06-17-2001, 12:56 PM
I would like to set up Mandrake 8.0 so it recognozes my Windows data drive hdb1 (40 Gb Western Digital) when it boots up. I have read that I nee to enter:
$ mkdir/dos $mount -tmsdos -o conv=text,unmask=22,uid=100 /dev/hdb1/dos
But WHERE do I enter this command?
Any help appreciated.
Craig McPherson
06-17-2001, 04:04 PM
You enter it at any root shell. You have to be root to do it.
Note that the "$"'s just represent the prompt. You don't type those.
Also, you have to put a space after mkdir before the argument.
Also, you should never create directories directly under the root.
Also, you should always use vfat instead of msdos.
Actually, that command is all screwed up. Forget about it completely, and just use this:
mkdir /mnt/dos
mount -t vfat /dev/hdXX /mnt/dos
Replace "hdXX" with the proper device name for the partition.
[ 18 June 2001: Message edited by: Craig McPherson ]
Linuxcool
06-18-2001, 12:13 AM
I believe the command to mount the partition would be for read-only:
mount -t vfat -o ro /dev/hdXX /mnt/dos
For read/write:
mount -t vfat /dev/hdXX /mnt/dos
wsm2506
06-18-2001, 10:16 PM
OK. From KDE, how do I grt to /ect/fstab to edit it to include this at startup?
Thanks
Radar
06-18-2001, 10:46 PM
pico /etc/fstab
or
vim /etc/fstab
Linuxcool
06-18-2001, 11:21 PM
In your fstab file to mount on start up as read-only, put this:
/dev/hdb1 /mnt/dos vfat ro,user 0 0
For read/write:
/dev/hdb1 /mnt/dos vfat user 0 0
Make sure the /mnt/dos directory exists, if not run ' mkdir /mnt/dos '.
The word ' user ' means that any user can mount or unmount a device. If you don't want this, then delete this. If you don't want the partition to be mounted on start up, then use the word ' noauto ' like this:
/dev/hdb1 /mnt/dos vfat noauto,ro 0 0
nuisance
06-19-2001, 09:55 PM
Originally posted by Radar:
<STRONG>pico /etc/fstab
or
vim /etc/fstab</STRONG>
Of course, if you're lazy like me or hate vim or pico you could (from a root shell):
chown <your username> /etc/fstab
To give yourself ownership of the file. Then open the file using a nice gui (kwrite or something) and make your edits, then back at the shell...
chown root /etc/fstab
To give ownership back to root