LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-24-2005, 03:56 PM   #1
ZeroIdea
LQ Newbie
 
Registered: Sep 2005
Posts: 17

Rep: Reputation: 0
Angry 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
 
Old 10-24-2005, 04:06 PM   #2
linux=future
Member
 
Registered: Apr 2005
Distribution: Debian
Posts: 154

Rep: Reputation: 30
/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).
 
Old 10-24-2005, 06:26 PM   #4
ZeroIdea
LQ Newbie
 
Registered: Sep 2005
Posts: 17

Original Poster
Rep: Reputation: 0
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'
 
Old 10-24-2005, 07:17 PM   #5
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 64
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.
 
Old 10-25-2005, 02:30 AM   #6
primo
Member
 
Registered: Jun 2005
Posts: 542

Rep: Reputation: 34
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?

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 ">"

Last edited by primo; 10-25-2005 at 02:33 AM.
 
Old 10-25-2005, 02:38 AM   #7
primo
Member
 
Registered: Jun 2005
Posts: 542

Rep: Reputation: 34
I heard that maybe earlier Redhat versions do not install the ntfs driver by default to avoid some braindead copyright issues. Try anyway
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mounting my windows partition NNP Linux - General 5 08-03-2005 07:59 AM
Mounting windows partition drguitarum2005 Linux - General 15 02-28-2005 04:53 AM
Mounting Windows Partition pibby Fedora 3 11-19-2003 05:46 PM
mounting a windows partition? codename000 Linux - Newbie 1 04-15-2003 10:27 PM
mounting windows partition. FLuff_Suit Linux - General 2 05-10-2002 12:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration