LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 10-12-2003, 12:08 PM   #1
dave bean
Member
 
Registered: Jun 2003
Location: UK
Distribution: Slackware 9.1
Posts: 136

Rep: Reputation: 15
Question accessing windows partition from linux partition


Hi,
I know its impossible to read the linux partition from windows but i read somewhere its possible to read a ntfs partition from a linux partition. I currently have a dual boot and if i could transfer data from my windows xp partiition to my linux partiton without having to put data on cd's etc that would be very useful.

Can anyone help out, or point me to any resources that can explain how this is done? Im using redhat 9.

Thanks
 
Old 10-12-2003, 12:16 PM   #2
Toker
Member
 
Registered: Sep 2003
Distribution: Mandrake9.1
Posts: 92

Rep: Reputation: 15
Assuming windows was the first thing installed, did you look in the /mnt/ directory? There should be a 'win_c' or something like that in there. That would be the windows partition.
 
Old 10-12-2003, 12:20 PM   #3
Skyline
Senior Member
 
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104

Rep: Reputation: 45
Red Hat currently doesn’t include a NTFS driver because of uncertainties surrounding the legal status of the driver

So - to READ a NTFS partition from Red Hat, you can either:
  • Download and install an RPM – or
  • Compile your kernel

Check out this site for an RPM

http://linux-ntfs.sourceforge.net/info/redhat.html

2nd -

You'll need to create a mount point as root user with

mkdir /mnt/windows

Then put a line in /etc/fstab - modify this one to include the device name for your Windows partition:

/dev/hda1 /mnt/windows ntfs umask=0222,auto,ro 0 0


Incidentally - you can use Explore2fs from Win XP to get access to Linux filesystems - check out this site for more info:

http://uranus.it.swin.edu.au/~jn/linux/explore2fs.htm

Last edited by Skyline; 10-12-2003 at 12:55 PM.
 
Old 10-12-2003, 12:22 PM   #4
dave bean
Member
 
Registered: Jun 2003
Location: UK
Distribution: Slackware 9.1
Posts: 136

Original Poster
Rep: Reputation: 15
ok thanks, ill get on it now. Also sorry to the mods, someone just made a very similar post about 10 mins before, i didn't see it when i posted this though.
 
Old 10-12-2003, 03:50 PM   #5
dave bean
Member
 
Registered: Jun 2003
Location: UK
Distribution: Slackware 9.1
Posts: 136

Original Poster
Rep: Reputation: 15
hi again
how can i see my partition table ? I thought fdisk from the shell would bring this up. i know what my ntfs partition is called but while i was editing usr/fstab (incidentally what does fstab stand for?) i noticed my swap partion is on hda4. I have only the one hard disk so this is confusing.

If i can see the partition table under linux i can see how i need to edit the ntfs entry.

thanks
 
Old 10-12-2003, 04:00 PM   #6
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 47
fdisk -l /dev/hda

will give you the partition table of hda.
 
Old 10-12-2003, 05:09 PM   #7
DMR
Member
 
Registered: Jun 2001
Location: Fairfax, California
Distribution: RH 9.0, RH 7.3, Mandrake 8.0
Posts: 986

Rep: Reputation: 30
Quote:
Originally posted by dave bean
hi again
how can i see my partition table ?
As mentioned by quatsch.

Quote:
Originally posted by dave bean
(incidentally what does fstab stand for?)
File System Table.

Quote:
Originally posted by dave bean
i noticed my swap partion is on hda4. I have only the one hard disk so this is confusing.
Not at all; hda4 indicates the 4th primary partition on your Primary Master IDE drive (hda).

 
Old 10-12-2003, 06:07 PM   #8
Skyline
Senior Member
 
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104

Rep: Reputation: 45
Remember to use

su -

(su with a space then a dash after it - to get Root user's PATH to get access to fdisk)
 
Old 10-12-2003, 07:39 PM   #9
dalek
Senior Member
 
Registered: Jul 2003
Location: Mississippi USA
Distribution: Gentoo
Posts: 2,058
Blog Entries: 2

Rep: Reputation: 65
Exclamation Word of caution

Make sure you don't mount as writeable. The line that Skyline suggested is correct. It will be read only. Do not try to write to NTFS. You can really hose the system.

Skyline: I didn't know you were supposed to put a '-' after su. I never did and it worked fine. Just tried it. Yours different somehow?

Might I suggest that you have a small partition that is fat32. Both Linux and NTFS can read/write to that. That is safe.

Hope that helps.

 
Old 10-12-2003, 11:32 PM   #10
Skyline
Senior Member
 
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104

Rep: Reputation: 45
Quote:
Skyline: I didn't know you were supposed to put a '-' after su. I never did and it worked fine. Just tried it. Yours different somehow?
Yes - in Red Hat using su on its own gives you a typical ordinary users PATH - fdisk typically isnt in an ordinary users PATH - however - su dash gives you a typical root users PATH with directories such as /sbin ..........
 
Old 10-12-2003, 11:40 PM   #11
dalek
Senior Member
 
Registered: Jul 2003
Location: Mississippi USA
Distribution: Gentoo
Posts: 2,058
Blog Entries: 2

Rep: Reputation: 65
Post

I thought there may be something different. I have used fdisk and cfdisk before with no problems. Guess Mandrake is different from Redhat. Need to remember that. Crap, no room left in my brain. Need to throw out something. I know, I'll throw out some of that windoze crap. I don't use it anyway.

Later guys, and gals. Any gals out there? Never mind

 
Old 10-13-2003, 01:06 PM   #12
dave bean
Member
 
Registered: Jun 2003
Location: UK
Distribution: Slackware 9.1
Posts: 136

Original Poster
Rep: Reputation: 15
thanks everyone. Skyline u're totally right about the su - , i'd been using su and then wondering why i STILL didn't have root access. I've edited fstab and but i still cant mnt windows partition, maybe i edited it wrongly. Skyline u said to modify this line to include the device name for the windows partition. So i typed

/dev/hda1 /mnt/windows hpfs/ntfs umask=0222,auto,ro 0 0

If the device name is simply hda1 then i have modified fstab and when i reboot i see 'fail' and 'fs type hpfs/ntfs not supported by kernel' . (I also tried simply with ntfs)

Also will windows be mounted as soon as i get the right commmand in fstab or do i have to keep rebooting.

thanks
 
Old 10-13-2003, 01:30 PM   #13
dandydebonair
LQ Newbie
 
Registered: Sep 2003
Distribution: Red Hat Linux
Posts: 6

Rep: Reputation: 0
Hi there well i am an new bee ,well i know an s/w which mounts linux partitions in windows mode,its " Mount Everything "

About Paragon Mount Everything
Paragon Software GmbH presents the new product Paragon Mount Everything that provides a unique ability of
accessing files on all prevailing file systems of the most popular platforms. Historically, because different operating
systems were supporting different file systems, it was a large discomfort for people who used several platforms on a
single computer.
For example, a document created in a particular operating system may be inaccessible from another one, so that one
should actually duplicate a file to open it. Then one must synchronize the two copies of the document. The seemingly
easy action of copying files to another location becomes a nuisance when source and target locations are available under
different operating systems.
Paragon Mount Everything solves these problems – now you can access almost every file system from the running
operating system as if it were "native" one. The program provides "foreign" partitions with drive letters, so that the
given software can work transparently with these drives– browse contents, open documents, run applications, work with
existing files and create new ones.
1.1 How Paragon Mount Everything works
Modern operating systems are based on the concept of Installable File System (IFS) drivers. You just need to provide an
operating system with a proper file system driver to be able to access its contents in a usual manner.
Paragon Mount Everything includes a set of such installable file system drivers that allow you to access "foreign" file
systems under Linux, Windows and DOS environments. Supplementary disk management utilities provide an ability to
perform basic hard disk partitioning functions – create, delete and format partitions.
After proper components of Paragon Mount Everything have been installed, an operating system is able to assign drive
letters to foreign file systems and work with files placed on them. If an operating system is also able to assign drive
letters to partitions within a working session, you can dynamically mount and dismount foreign partitions, too.
1.2 What you can do with Paragon Mount Everything
Paragon Mount Everything allows the user to:
• Browse disk contents and read files on NTFS and Ext2/Ext3 partitions.
• Create new files and folders and modify existing files on NTFS and Ext2/Ext3 partitions
• Select a partition to be mounted and a drive letter to be assigned (under Windows NT, 2000 and XP and DOS).
• Perform basic disk management functions:
o create partitions
o delete partitions
o format partitions to FAT-16, FAT-32, NTFS, Ext2, Ext3, ReiserFS file systems
o hide/unhide partitions
o select a bootable partition

Primary features
Paragon Mount Everything is released in Personal and Professional versions.
Both Personal and Professional versions include following features:
• Supporting NTFS ver. 1.2-3.1 (Windows NT 4.0, 2000 and XP)
• Supporting compressed NTFS drives.
• Supporting both Ext2 and Ext3 file systems
• Supporting partitions larger than 4GB with all environments (DOS, Windows, Linux)
• Windows-based drivers for Windows 95/98/ME, Windows NT/2000 Workstation & Pro, Windows XP.
• DOS-based drivers for read-only accessing NTFS and Ext2/Ext3 volumes
• Linux-based driver supporting read-only access to NTFS volumes
• A full access to Ext2/3FS and NTFS under all Windows versions
• Scripts for automated batch processing under all environments
• Basic partitioning functionality available under Windows: creating, deleting, formatting partitions
• Selecting and changing drive letter for mounted partitions under Windows NT/2000/XP and DOS environments
• Creating bootable DOS diskettes with including access to NTFS volumes, and supporting removable media like
CD-ROM, ZIP, and JAZZ etc.
• Bootable CD-ROM: one can boot into DOS or Linux environment with this CD.
Both DOS and Linux environments include a read-only access NTFS drives support. With Linux, one is able to
copy files from NTFS volumes onto CD-R(W) discs.
Following features are included in the Professional version only:
• Windows-based drivers for Windows NT Server and Windows 2000 Server.
• A full read-write file access for all cross-platform combinations (see table below).
• Paragon Partition Manager is included: an ultimate tool for on-the-fly partitioning and non-destructive
repartitioning of hard disks.
• A bootable CD included in the Professional version provides a full access to NTFS drives under DOS and Linux
environments. Under Linux you are able to copy files from NTFS volumes onto CD-R(W) discs.

Home Page :www.mount-everything.com/
Download : www.sofotex.com/ Paragon-Mount-Everything-Personal-download_L14453.html
 
Old 10-13-2003, 05:28 PM   #14
Skyline
Senior Member
 
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104

Rep: Reputation: 45
Hi Dave:

You just need ntfs in the 3rd field of fstab not hpfs/ntfs.

The device name of your Windows partition would just be something like

/dev/hda1

or

/dev/hda2


etc

incidentally - whats the output of

fdisk -l

and yes - when the correct line is in fstab Windows will be mounted at boot up each time you boot.
 
Old 10-13-2003, 05:56 PM   #15
wahwah
LQ Newbie
 
Registered: Oct 2003
Location: Leiden, the Netherlands
Distribution: SuSE 8.2
Posts: 19

Rep: Reputation: 0
[QUOTE]Originally posted by dalek
<snip>
> Later guys, and gals. Any gals out there? Never mind
<snip>

Yes, there are
cheers,
WahWah
 
  


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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
accessing windows partition in linux... fatherg Linux - General 3 10-15-2004 02:51 PM
Accessing Linux Partition from Windows podollb Linux - Software 2 04-10-2004 06:31 PM
Accessing the linux partition through windows rolandi Linux - Newbie 3 11-26-2003 05:49 PM
accessing windows ntfs partition from linux rsingh Linux - Newbie 2 06-10-2003 10:24 AM
Accessing c:\ (Windows Partition) from within Linux. linuxRules Linux - General 5 11-06-2002 09:17 PM


All times are GMT -5. The time now is 07:25 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration