Mounting Windows partition
how do i mount windows partition on linux ? my partions are as follows:
[root@localhost ~]# fdisk -l Disk /dev/hda: 20.0 GB, 20020396032 bytes 255 heads, 63 sectors/track, 2434 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/hda1 * 1 1355 10884006 7 HPFS/NTFS /dev/hda2 1356 1843 3919860 f W95 Ext'd (LBA) /dev/hda3 1844 1856 104422+ 83 Linux /dev/hda4 1857 2434 4642785 8e Linux LVM /dev/hda5 1356 1843 3919828+ 7 HPFS/NTFS Disk /dev/hdb: 3249 MB, 3249340416 bytes 128 heads, 63 sectors/track, 787 cylinders Units = cylinders of 8064 * 512 = 4128768 bytes Device Boot Start End Blocks Id System /dev/hdb1 * 1 787 3173152+ 7 HPFS/NTFS |
/dev/hda1 * 1 1355 10884006 7 HPFS/NTFS
/dev/hdb1 * 1 787 3173152+ 7 HPFS/NTFS Become root. Create two directories, preferably under /mnt. Type mount /dev/hda1 where the first directory is Type mount /dev/hdb1 where the second directory is It should be noted that you will only have read access, since NTFS is not well supported under Linux. You can force it to have read/write access, but it trashes data (like your MBR in my case). |
|
well i tried as was guided ...but the following error keeps coming up:
[root@localhost ~]# mount -t ntfs /dev/hd1 /mnt/windows mount: unknown filesystem type 'ntfs' |
Didn't say which distro but more than likely ntfs support is not in the kernel. You need to recompile the kernel and add ntfs support. Lots of post here about recompiling kernels.
To check goto /lib/modules/<current running kernel>/kernel/fs/ntfs Or type the command ' locate ntfs.ko ' Word of warning, Reading ntfs is fine but writing to ntfs from linux can destroy the partition. So it is best to mount as readonly (ro) and not Read Write (rw). If you need to swap data it is best to write it to a fat32 partition since both windows and linux can read and write to both with no issue. |
Quote:
You may try this: Code:
for HDX in hda1 hda5 hdb1 ; do |
I heard that maybe earlier Redhat versions do not install the ntfs driver by default to avoid some braindead copyright issues. Try anyway
|
All times are GMT -5. The time now is 07:55 AM. |