LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Mounting Windows partition (https://www.linuxquestions.org/questions/linux-general-1/mounting-windows-partition-376467/)

ZeroIdea 10-24-2005 02:56 PM

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

linux=future 10-24-2005 03:06 PM

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

bobbens 10-24-2005 03:08 PM

http://www.linuxquestions.org/questions/search.php :

ZeroIdea 10-24-2005 05:26 PM

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'

Brian1 10-24-2005 06:17 PM

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.

primo 10-25-2005 01:30 AM

Quote:

Originally posted by ZeroIdea
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'

Isn't "/dev/hd1" a typo? :scratch:

You may try this:
Code:

for HDX in hda1 hda5 hdb1 ; do
mkdir /mnt/$HDX
echo "/dev/$HDX /mnt/$HDX ntfs auto,user,ro,dmask=0022,fmask=0133,nls=iso8859-1 0 0" >> /etc/fstab
done

If you are unconfortable with the for thing, just replace $HDX with each hdxx and do the mkdir and echo parts. Then run "mount -a". Be careful as you type, specially with ">>" vs ">"

primo 10-25-2005 01:38 AM

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.