On Wed, Jan 16, 2002 at 06:55:28AM -0800, Nair Jayamohan wrote: > I need help on two counts. Somebody pl. tell me > > 1. How can i mount my second (extended partition d > drive ) windows partition ? I am able to mount my > primary partition which is the c drive. > > 2. Pl. tell me how i can see my partition info in > Linux. I am unable to run fdisk -l /dev/hda as it > says command not found. >
Whichever distro you are using has not installed the classical fdisk program. You may be having cfdisk or sfdisk. Avoid sfdisk. If you have "cfdisk" then run: cfdisk /dev/hda (the info you get will be less than what you would have got with fdisk -l, but at least you will get which partition is your D:) .. Once you know that, do: mount -t vfat /dev/hdaN /mnt/win-d This is assuming that the Win is 9x. It will not work for NT/ 2k/ XP. N is the partition number for D: as revealed by cfdisk. The directory /mnt/win-d should pre-exist. For mounting during boot entries would be needed at /etc/fstab. Please come back if you fail to understand man fstab. > 3. Also pl tell me how to save a script file in the > sbin directory. when i copy the script text to text > editor and save i get the message 'error writing to > directory' > As an user you have access only to your home dir and /tmp. To write to /sbin you need to have root privi- leges. However, writing normal scripts to /sbin is not advocated since it is only in the default path of root and usually only sys-admining stuff goes there. If it is some general purpose script of use by all pl put it at /usr/local/bin. Root privileges (viz su) is needed here too ... HTH Bish -- : ####[ Linux One Stanza Tip (LOST) ]########################### Sub : Copying from Linux to Win partition LOST #040 Method 2: To copy a file from Linux to a Windows partition #mount -t msdos /dev/fd0 /floppy (/floopy is mount point) #cp /path/filename /floppy Then boot through Win/ DOS and copy from Floppy ####<[EMAIL PROTECTED]>################################### : _______________________________________________ linux-india-help mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/linux-india-help
