Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hi every body,
i have Dual boot with WinXP and RedHat 9 , having 2.4Ghz processor.My first question is"How i can enable upper arrow and lower arrow keys to repeat the last commands entered,as iam working in KSH shell and When i press lower or upper keys to repeat last command entered,it displays ^]A ^]A like characters.But both keys are working fine in repeating last commands entered in BASH shell".
My second question is "How i can see & access my WINDOWS files from LINUX partition as iam having dual boot with both OS".
Your help is highly appreciable plz answer both questions and help me out.
Best Regards.
Sunil.

Within ksh set your options to have a vi behavior with
set -o vi
then the vi keystrokes such as [ESCAPE]-K work. You might look at
set -o emacs
for a different behavoir

You can mount your windoze partitons as
follows:
# mount -t vfat /dev/hda1
/mnt/windows
This should work if your windows partition
is the first (only) partition on your
primary master (/dev/hda1), the file system
if FAT (if it is NTFS, try "-t ntfs"
instead) and that you have the mountpoint
/mnt/windows already created.
To break it down a little more:
mount = mount command
/dev/hda=IDE primary master
/dev/hdb=IDE primary slave
/dev/hdc=IDE secondary master
/dev/hdd=IDE secondary slave
/dev/sda=first SCSI hard drive
/dev/sdb=second drive etc
/dev/hda1=first primary partiton
/dev/hda2=second primary partition
/dev/hda4=possible logical partiton
/dev/hda5=first extended partiton
-t vfat = mount FAT16/32 partiton
-t ntfs = NTFS file system. Still
experimental under linux and read-only is
advisable
/mnt/windows is a folder where you want to
mount it. If it doesn't exist, just ccreate
it:
# mkdir /mnt/windows
If all goes well, you can add a line to
/etc/fstab so that the drive is
automatically mounted everytime you boot,
eg:
/dev/hda1 /mnt/windows vfat
user,umask=0
The user flag allows ordinary users to
(un)mount the drive and the umask=0 allows
everyone to write to it.

thanks for all you experts for your valuable answers,but one thing here i would like to draw your attention that for my 2nd question,when i find device name of my windowsXP partition thru hardware browser in my linux OS it is hdb1 not hda1.On issuing
"mount -t vfat /dev/hda1 /mnt/windows" on shell prompt (login as root)doesnt give any result & only displaying information related to command "mount".I have installed winxp on FAT32 not on NTFS. I had already created directory "windows" under "mnt" before issuing "mount -t vfat /dev/hda1 /mnt/windows" command line.Even i have tried with"hdb1" in the above command line inplace of "hda1"but no result,only information on command "mount" is displayed each time. Awaiting for a favourable reply.Best regards
SUNIL

You can view what partitions are on your
system:
$ cat /proc/partitions
Look through the blocks to find the size
relating the your XP partiton (it is
displayed in Kb so a 20Gb partition will
look something like "3 64 20010312 hdb"

sir,
3dave,here is the results when i issued the command
===========================================================
ROOT# mount -t vfat /dev/hdb1 /mnt/win
Usage: mount -V : print version
mount -h : print this help
mount : list mounted filesystems
mount -l : idem, including volume labels
So far the informational part. Next the mounting.
The command is `mount [-t fstype] something somewhere'.
Details found in /etc/fstab may be omitted.
mount -a [-t|-O] ... : mount all stuff from /etc/fstab
mount device : mount device at the known place
mount directory : mount known device here
mount -t type dev dir : ordinary mount command
Note that one does not really mount a device, one mounts
a filesystem (of the given type) found on the device.
One can also mount an already visible directory tree elsewhere:
mount --bind olddir newdir
or move a subtree:
mount --move olddir newdir
A device can be given by name, say /dev/hda1 or /dev/cdrom,
or by label, using -L label or by uuid, using -U uuid .
Other options: [-nfFrsvw] [-o options].
For many more details, say man 8 mount .
mount --move olddir newdir
A device can be given by name, say /dev/hda1 or /dev/cdrom,
or by label, using -L label or by uuid, using -U uuid .
Other options: [-nfFrsvw] [-o options].
For many more details, say man 8 mount .
========================================================
One more thing is that when i use the "fdisk" command it shows the below result.
========================================================
ROOT# fdisk -lDisk /dev/hdb: 40.0 GB, 40060403712 bytes
255 heads, 63 sectors/track, 4870 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytesDevice Boot Start End Blocks Id System
/dev/hdb1 * 1 2550 20482843+ c Win95 FAT32 (LBA)
/dev/hdb2 2551 4869 18627367+ f Win95 Ext'd (LBA)
/dev/hdb5 2551 3825 10241406 e Win95 FAT16 (LBA)
/dev/hdb6 3826 3838 104391 83 Linux
/dev/hdb7 3839 4804 7759363+ 83 Linux
/dev/hdb8 4805 4869 522081 82 Linux swap
=======================================================
so above is the total info for your observation and analysis.Hope this is sufficient now.
Plz help me to get rid of the problem.
Best regardsSUNIL.

Strange...."mount -t vfat /dev/hdb1
/mnt/win" should work.
First make sure that /mnt/win exists:
# ls -l /mnt
Now make sure /dev/hdb1 exists:
# ls -l /dev/hdb*
You could also try mounting either hdb2 or
hdb5 instead, or perhaps "-t ntfs" instead
of vfat

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |