LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices

Reply
 
Search this Thread
Old 01-07-2009, 12:39 AM   #1
Dixioldie
LQ Newbie
 
Registered: Jan 2009
Location: Stuttgart, Germany
Posts: 3

Rep: Reputation: 0
Finding NTFS partitons for ntfs-3g ?


Hello,

My harddisk has several partitons: 3xNTFS for WindowsXP and 2 for Linux Centos5.2

With ntfs-3g I can only find and mount the first WinXP partition (which is the DISK-C for Windows)
What is needed to also mount the other NTFS partitions with ntfs-3g?

Has anybody had this problem an solved it?

(Sorry, if this question is silly for somebody. I'm not yet experienced with all issues of Linux)

Last edited by Dixioldie; 01-07-2009 at 12:42 AM. Reason: TAGS forgotten
 
Old 01-07-2009, 01:42 AM   #2
rylan76
Senior Member
 
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,475

Rep: Reputation: 87
What commandline are you using to mount the C drive?

I. e. on my system, to moun the C drive to /mnt/win, I do

mount -t ntfs-3g /dev/hdb1 /mnt/win

i. e. with my IDE drive setup as it is here, drive c is mapped to /dev/hdb1

As far as I know, if I had a drive D, it would have been /dev/hdb2

I. e. if you know your device name for your C drive, the D drive (if it is a partition on the same physical drive) should be

hd*2

where the * will be some alphabetical character.

If the D drive is a different physical drive of course, it won't be hdb2 or hdc2 or somesuch, but hdc1 or hdd1.

Hope this helps...
 
Old 01-07-2009, 01:48 AM   #3
colucix
Moderator
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,498

Rep: Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956
You can check the partition scheme of your disk using (as root)
Code:
fdisk -l
 
Old 01-07-2009, 09:40 AM   #4
Dixioldie
LQ Newbie
 
Registered: Jan 2009
Location: Stuttgart, Germany
Posts: 3

Original Poster
Rep: Reputation: 0
manual mount for ntfs-3g works. fstab not

OK. manual mounting works now.
the second drive is for CD-ROM. That was the reason for not mounting sda2.

Ican now successfully mount with the commans:

mount -t /dev/sda1 /mnt/DISK-C
mount -t /dev/sda3 /mnt/DISK-E

I put the following lines to fstab:

/dev/sda1 /mnt/DISK-C ntfs-3g defaults 0 0
/dev/sda3 /mnt/DISK-E ntfs-3g defaults 0 0

but this did'nt work.

Any idea, why this is not working?

Last edited by Dixioldie; 01-07-2009 at 09:41 AM. Reason: mistyping
 
Old 01-07-2009, 10:06 AM   #5
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,150

Rep: Reputation: 330Reputation: 330Reputation: 330Reputation: 330
Those fstab entries took correct, although I put a rw before the defaults. Here's what I do on this laptop with Vista installed:

First, because using UUID still works if drives are moved, I get the UUID to partition map:
Code:
$ ls -l /dev/disk/by-uuid/
total 0
lrwxrwxrwx 1 root root 10 2009-01-07 07:44 17841f9e-fa3a-4850-aa52-0e6d0ba242e3 ->../../sda5
lrwxrwxrwx 1 root root 10 2009-01-07 07:44 22b2553f-6199-4b82-b20c-6ad7c7b6688f ->../../sda6
lrwxrwxrwx 1 root root 10 2009-01-07 07:44 2C88743C8874071C -> ../../sda2
lrwxrwxrwx 1 root root 10 2009-01-07 07:44 342D7D7923AC4107 -> ../../sda1
lrwxrwxrwx 1 root root 10 2009-01-07 07:44 92ff1a1e-9e16-4828-953e-fbdfde536452 ->../../sdb1
Then create the entries in the fstab:
Code:
$ cat /etc/fstab | grep -i ntfs
UUID=342D7D7923AC4107   /Vista                  ntfs-3g rw,defaults     0 0
UUID=2C88743C8874071C   /Vista/Recovery         ntfs-3g rw,defaults     0 0
<edit>
By the way, I prefer mounting devices "owned" by other operating system directly under / rather than in sub-directories of /mnt. Obviously you can mount any device anywhere you want it in your file system, so it's of no particular significance. Since all "standard" Linux systems use lower case directory names, I create my mount points with initial upper case names:
Code:
$ ls -d /[KUV]*
/Kingston  /Ubuntu  /USB_Fedora  /Vista
</edit>

Last edited by PTrenholme; 01-07-2009 at 10:18 AM.
 
Old 01-08-2009, 12:45 AM   #6
Dixioldie
LQ Newbie
 
Registered: Jan 2009
Location: Stuttgart, Germany
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks!

Thanks for the very good help!
I'm happy now (and know a bit more about Linux)
 
  


Reply

Tags
centos5, mount, ntfs3g


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
finding ntfs part ogdemster Linux - Newbie 8 07-28-2008 11:34 AM
NTFS Partitons waqaskool Linux - Software 5 02-22-2007 09:47 AM
ntfs-3g write to ntfs partitons H2O-linux Debian 0 11-11-2006 01:20 PM
recover deleted files on fat32/ntfs partitons? niteshadw Linux - Software 1 04-21-2005 10:23 AM
NTLDR/NTFS Partitons Loading Linux Boot Sectors Blade44 Mandriva 2 01-27-2005 05:51 PM


All times are GMT -5. The time now is 02:45 AM.

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