LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices



Reply
 
Search this Thread
Old 04-19-2004, 09:12 PM   #1
jdruin
Member
 
Registered: Jul 2003
Location: Louisville aka Derby City
Distribution: WinXP SP2 and SP3, W2K Server, Ubuntu
Posts: 313

Rep: Reputation: 30
Can I mount my windows NTFS partition from Linux?


I am using a duel boot Fedora/XP system. Can I mount the XP half of the drive in Fedora so I can backup files?
 
Old 04-19-2004, 09:21 PM   #2
ToniT
Senior Member
 
Registered: Oct 2003
Location: Zurich, Switzerland
Distribution: Debian/unstable
Posts: 1,357

Rep: Reputation: 47
You can mount ntfs for reading easily. Just
Code:
mount -t ntfs /dev/hdXX /mnt/foo
, where XX is your ntfs drive/partition and /mnt/foo is an existing directory.
 
Old 04-19-2004, 09:25 PM   #3
jdruin
Member
 
Registered: Jul 2003
Location: Louisville aka Derby City
Distribution: WinXP SP2 and SP3, W2K Server, Ubuntu
Posts: 313

Original Poster
Rep: Reputation: 30
Is it easy to list all the /dev/hdXX drives so I can figure out which one is the NTFS partition?
 
Old 04-19-2004, 09:27 PM   #4
ToniT
Senior Member
 
Registered: Oct 2003
Location: Zurich, Switzerland
Distribution: Debian/unstable
Posts: 1,357

Rep: Reputation: 47
Code:
fdisk -l /dev/hda
shows the first hd. If you have many hard disk, do the same for hdb, hdc, etc.
 
Old 04-19-2004, 09:38 PM   #5
jdruin
Member
 
Registered: Jul 2003
Location: Louisville aka Derby City
Distribution: WinXP SP2 and SP3, W2K Server, Ubuntu
Posts: 313

Original Poster
Rep: Reputation: 30
Thanks ToniT.

fdisk producrd this output:

Device Boot Start End Blocks Id System
/dev/hda1 1 3092 24836458+ 17 Hidden HPFS/NTFS
/dev/hda2 * 3093 3105 104422+ 83 Linux
/dev/hda3 3106 4777 13430340 83 Linux
/dev/hda4 4778 5005 1831410 f Win95 Ext'd (LBA)
/dev/hda5 4778 5005 1831378+ 82 Linux swap

Can you tell me why the hda1 is marked as hidden? And what is HPFS? I am trying to learn as much as possible about Linux and how all this works.
 
Old 04-20-2004, 12:38 AM   #6
ToniT
Senior Member
 
Registered: Oct 2003
Location: Zurich, Switzerland
Distribution: Debian/unstable
Posts: 1,357

Rep: Reputation: 47
HPFS is a filesystem (acronym from High Performance Filesystem) used by OS/2. NTFS happens to have same partition type as the HPFS, so fdisk cannot say which one it is by just looking the partition table (it is ntfs if you don't have OS/2 installed .
Why it says it is hidden? No Idea. Are you using (or have you used) some interesting boot managers lately?

Anyways, /dev/hda1 is the partition you are looking for.
 
Old 04-20-2004, 11:59 AM   #7
Peli
LQ Newbie
 
Registered: Apr 2004
Location: Ljubljana, Slovenia
Distribution: Ubuntu 6.06
Posts: 4

Rep: Reputation: 0
Quote:
Originally posted by ToniT
Code:
fdisk -l /dev/hda
shows the first hd. If you have many hard disk, do the same for hdb, hdc, etc.
Where do you type this???

Sorry, I'm a total
 
Old 04-20-2004, 05:36 PM   #8
whtriced
LQ Newbie
 
Registered: Mar 2004
Location: Central New York, USA
Distribution: openSUSE, Ubuntu
Posts: 14

Rep: Reputation: 0
You need to open a terminal, unless you've logged in in run level 3, which is the command line login. You can find a terminal under the start icon/system tools.

I've done all of these things and the message I get is:

[root@DaVinci /]# fdisk -l

Disk /dev/hda: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 1 4 32098+ de Dell Utility
/dev/hda2 * 5 3191 25599577+ 7 HPFS/NTFS
/dev/hda3 3192 3204 104422+ 83 Linux
/dev/hda4 3205 4865 13341982+ f Win95 Ext'd (LBA)
/dev/hda5 3205 4735 12297726 83 Linux
/dev/hda6 4736 4865 1044193+ 82 Linux swap
[root@DaVinci /]# mount -t ntfs /dev/hda2 /XP2
mount: fs type ntfs not supported by kernel
[root@DaVinci /]#

Where would I look to get a kernel module to support NTFS??


 
Old 04-20-2004, 05:38 PM   #9
Ed-MtnBiker
Member
 
Registered: Oct 2003
Location: Reno, NV
Distribution: Fedora Core 3
Posts: 88

Rep: Reputation: 15
>Where would I look to get a kernel module to support NTFS??

http://linux-ntfs.sourceforge.net/

There's lots of great instructions there, and pre-built RPMs for each version of the Fedora kernel that's been released. Find your kernel version, determine your architecture, install the rpm, load the module, mount the partition.
 
Old 04-20-2004, 09:21 PM   #10
ToniT
Senior Member
 
Registered: Oct 2003
Location: Zurich, Switzerland
Distribution: Debian/unstable
Posts: 1,357

Rep: Reputation: 47
Probably the module allready exists in your system, you just have to load it.
Try running
Code:
modprobe ntfs
and see if it works now (or if there were any error messages)
 
Old 04-21-2004, 12:30 AM   #11
robgue
LQ Newbie
 
Registered: Jan 2004
Location: so-cal
Distribution: undecided
Posts: 6

Rep: Reputation: 0
newb here. what about unmounting a ntfs partition?
 
Old 04-21-2004, 01:21 AM   #12
PhilBayfield
LQ Newbie
 
Registered: Oct 2003
Location: England
Distribution: Fedora Core 2
Posts: 16

Rep: Reputation: 0
To unmount: umount /dev/hdxx (xx = letter/number of drive/partition)

You could just add it to ur fstab so it mounts/unmounts on startup/shutdown, not sure if this is a good idea or not tho for ntfs, never actually bother mounting windows partitions in Linux myself.
 
Old 04-21-2004, 07:57 AM   #13
Peli
LQ Newbie
 
Registered: Apr 2004
Location: Ljubljana, Slovenia
Distribution: Ubuntu 6.06
Posts: 4

Rep: Reputation: 0
Quote:
Originally posted by whtriced
You need to open a terminal, unless you've logged in in run level 3, which is the command line login. You can find a terminal under the start icon/system tools.
If I type it, I get ...

[root@localhost TheD]# fdisk -l
bash: fdisk: command not found

It's hard 2 be a noo
 
Old 04-21-2004, 09:42 AM   #14
jduke
LQ Newbie
 
Registered: Apr 2004
Location: Clarkston, MI, USA
Distribution: Ubuntu
Posts: 13

Rep: Reputation: 0
Try:

/sbin/fdisk -l
 
Old 04-21-2004, 12:49 PM   #15
Peli
LQ Newbie
 
Registered: Apr 2004
Location: Ljubljana, Slovenia
Distribution: Ubuntu 6.06
Posts: 4

Rep: Reputation: 0
And now ...

[davorin@localhost TheD]$ /sbin/fdisk -l
Cannot open /dev/hda
Cannot open /dev/hdb

I tried logged on as root and it worked:

Disk /dev/hda: 41.1 GB, 41174138880 bytes
255 heads, 63 sectors/track, 5005 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 3092 24836458+ 7 HPFS/NTFS
/dev/hda2 3093 5005 15366172+ f Win95 Ext'd (LBA)
/dev/hda5 3093 5005 15366141 83 Linux

Disk /dev/hdb: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdb1 * 1 14593 117218241 7 HPFS/NTFS

Good, for now ... I'll try to mount the disk as posted before :-)
 
  


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
How to mount Windows NTFS partition?? crash_override_me Ubuntu 13 12-10-2005 02:40 PM
Mount Corrupted NTFS Partition Under Linux omega71122 Linux - General 3 05-22-2005 09:55 PM
Can I mount an ntfs partition or read one using linux? r_squared Linux - General 8 11-20-2004 01:18 PM
Mount windows xp (ntfs) in linux Mordeth_0 Linux - Newbie 6 07-17-2004 06:26 PM
How do I mount my NTFS WinXP partition on Linux? adam88 Linux - Software 6 04-18-2003 11:11 AM


All times are GMT -5. The time now is 04:49 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration