LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 02-01-2012, 04:22 AM   #1
cent_uries@yahoo.co.id
LQ Newbie
 
Registered: Dec 2011
Location: indonesia
Distribution: centOS5
Posts: 13

Rep: Reputation: Disabled
Smile Mounting ntfs partition in centos


Dear All,
i'm newbie on linux,just now i've solved out my lost windows grub setting helped by brother johnfine, again thanks brother..
now i mount the ntfs to /dev/hda2 /media/winxp, after "nano" the /etc/fstab. it's run well, but i didn't see my documents folder and others which is placed on "c:\" in windows version..
Again i'd like to inform you, that i'm not so good in english, then please forgive any unwise and maybe not polite words.
please see below partition:
df -l
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
17870152 4402712 12545024 26% /
/dev/hda6 101086 24550 71317 26% /boot
tmpfs 512716 0 512716 0% /dev/shm
/dev/hda2 8393960 1842956 6551004 22% /media/winxp

and this is 'fstab' configuration:
/dev/VolGroup00/LogVol00 / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
/dev/VolGroup00/LogVol01 swap swap defaults 0 0
/dev/hda2 /media/winxp ntfs-3g rw,umask-0000,defaults 0 0

now what should i do..thank you in advance.
 
Old 02-01-2012, 04:50 AM   #2
ukiuki
Senior Member
 
Registered: May 2010
Location: Planet Earth
Distribution: Debian
Posts: 1,030

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Hi there, please when posting data output please use the BB codes in this case [ CODE ] and [ / CODE ] without the spaces.

Now about the fstab try this:
Code:
/dev/hda2 /media/winxp ntfs-3g defaults 0 0
or simply
Code:
/dev/hda2 /media/winxp ntfs defaults 0 0
or
Code:
/dev/hda2 /media/winxp ntfs-3g rw 0 0
Code:
/dev/hda2 /media/winxp ntfs rw 0 0
Recommended reading:
http://linux.die.net/man/5/fstab


Regards
 
Old 02-01-2012, 05:22 AM   #3
cent_uries@yahoo.co.id
LQ Newbie
 
Registered: Dec 2011
Location: indonesia
Distribution: centOS5
Posts: 13

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ukiuki;
Now about the fstab try this:
[CODE
/dev/hda2 /media/winxp ntfs-3g defaults 0 0[/CODE]
hi ukiuki thanks before,
the result just same with my last.if i "ls" just like below:
Code:
ls -l
total 845
-rwxrwxrwx 1 root root    210 Oct 11 21:30 boot.ini
-rwxrwxrwx 1 root root    102 Jul  2  2005 Desktop.ini
-rwxrwxrwx 1 root root   8130 Nov 23  2004 Folder.htt
-rwxrwxrwx 2 root root      0 Nov  3  2005 HP_RECOVERY
drwxrwxrwx 1 root root      0 Apr 28  2007 I386
-rwxrwxrwx 1 root root      0 Jan  9  2008 import.xls
drwxrwxrwx 1 root root   4096 Apr 28  2007 ISOS
-rwxrwxrwx 1 root root   1202 Apr 28  2007 MASTER.LOG
drwxrwxrwx 1 root root   4096 Apr 28  2007 minint
-rwxrwxrwx 1 root root  47564 Aug  4  2004 NTDETECT.COM
-rwxrwxrwx 1 root root      0 May 13  2006 NTFS
-rwxrwxrwx 1 root root 250048 Oct 13 16:26 ntldr
drwxrwxrwx 1 root root      0 Apr 28  2007 PRELOAD
-rwxrwxrwx 1 root root 181651 Sep 11  2002 protect.ed
drwxrwxrwx 1 root root      0 Apr 28  2007 RECOVERY
drwxrwxrwx 1 root root   4096 Apr  4  2011 RECYCLER
-rwxrwxrwx 1 root root 245920 Aug 29  2002 STLDR
drwxrwxrwx 1 root root   4096 Apr 28  2007 System Volume Information
-rwxrwxrwx 1 root root  88038 Feb  9  2002 Warning.bmp
-rwxrwxrwx 1 root root     10 Mar 26  2005 WIN51
-rwxrwxrwx 1 root root     11 Jan 23  2001 WIN51.B2
-rwxrwxrwx 1 root root     10 Mar 26  2005 WIN51IA
-rwxrwxrwx 1 root root     10 Mar 26  2005 WIN51IA.SP1
-rwxrwxrwx 1 root root     10 Aug 19  2001 WIN51IC
-rwxrwxrwx 1 root root     11 Mar 21  2001 WIN51IC.B2
-rwxrwxrwx 1 root root     11 Jul 26  2001 WIN51IC.RC1
-rwxrwxrwx 1 root root     11 Jul 26  2001 WIN51IC.RC2
-rwxrwxrwx 1 root root     10 Aug 18  2001 WIN51IP
-rwxrwxrwx 1 root root     10 Aug 18  2001 WIN51IP2
-rwxrwxrwx 1 root root     11 Jan 23  2001 WIN51IP.B2
-rwxrwxrwx 1 root root     11 Jul 26  2001 WIN51IP.RC2
-rwxrwxrwx 1 root root     10 Aug 18  2001 WIN51IP.SP1
-rwxrwxrwx 1 root root     11 Jul 26  2001 WIN51.RC1
-rwxrwxrwx 1 root root     11 Jul 26  2001 WIN51.RC2
-rwxrwxrwx 1 root root    167 Mar 26  2005 WINBOM.INI
-rwxrwxrwx 1 root root      0 May 13  2006 XGA
as you see i couldn't fine my doc of windows..
 
Old 02-01-2012, 05:47 AM   #4
fukawi1
Member
 
Registered: Apr 2009
Location: Melbourne
Distribution: Fedora & CentOS
Posts: 854

Rep: Reputation: 190Reputation: 190
Is it possible that the Documents and Settings (or whatever its called these days) directory is located on a separate partition?
 
Old 02-01-2012, 10:25 AM   #5
ukiuki
Senior Member
 
Registered: May 2010
Location: Planet Earth
Distribution: Debian
Posts: 1,030

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Quote:
Originally Posted by fukawi1 View Post
Is it possible that the Documents and Settings (or whatever its called these days) directory is located on a separate partition?
Looks like you have the "recovery" partition mounted !!

Regards
 
Old 02-01-2012, 09:31 PM   #6
cent_uries@yahoo.co.id
LQ Newbie
 
Registered: Dec 2011
Location: indonesia
Distribution: centOS5
Posts: 13

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by fukawi1 View Post
Is it possible that the Documents and Settings (or whatever its called these days) directory is located on a separate partition?
maybe, but base on this, could you tell me where it probably located..
Code:
[fernando@localhost ~]$ df -l
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
                      17870152   4400196  12547540  26% /
/dev/hda6               101086     24550     71317  26% /boot
tmpfs                   512716         0    512716   0% /dev/shm
/dev/hda2              8393960   1842960   6551000  22% /media/winxp
[fernando@localhost ~]$
really i'm newbie, please guide step by step..
 
Old 02-01-2012, 09:39 PM   #7
cent_uries@yahoo.co.id
LQ Newbie
 
Registered: Dec 2011
Location: indonesia
Distribution: centOS5
Posts: 13

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ukiuki View Post
Looks like you have the "recovery" partition mounted
tq,i'm not sure, the partition still running well as i still could login to my windows OS. This is dual OS.any other idea..
 
Old 02-02-2012, 01:06 AM   #8
fukawi1
Member
 
Registered: Apr 2009
Location: Melbourne
Distribution: Fedora & CentOS
Posts: 854

Rep: Reputation: 190Reputation: 190
Quote:
Originally Posted by cent_uries@yahoo.co.id View Post
maybe, but base on this, could you tell me where it probably located..
Code:
[fernando@localhost ~]$ df -l
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
                      17870152   4400196  12547540  26% /
/dev/hda6               101086     24550     71317  26% /boot
tmpfs                   512716         0    512716   0% /dev/shm
/dev/hda2              8393960   1842960   6551000  22% /media/winxp
[fernando@localhost ~]$
really i'm newbie, please guide step by step..
df will only show you mounted filesystems.
Code:
fdisk -l
will show you all partitions.

Quote:
Looks like you have the "recovery" partition mounted !!
Many OEM's will create a separate partition for "recovery" files, in order to restore your computer to its original software/OS. I am assuming this is what ukiuki is referring to.

I would suggest you use the "-h" option with df, which will show you human readable (MB, GB etc) filesystem sizes.

Unless I am mistaken, (its been a long time since ive done anything with Windows), i would imagine that the normal C:\ windows partition, would be /dev/hda1, but checking "fdisk -l" should confirm this.
 
Old 02-02-2012, 01:31 AM   #9
ukiuki
Senior Member
 
Registered: May 2010
Location: Planet Earth
Distribution: Debian
Posts: 1,030

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
If you have gparted installed its a good program to visualize and manage partitions.

Regards
 
Old 02-03-2012, 01:03 AM   #10
cent_uries@yahoo.co.id
LQ Newbie
 
Registered: Dec 2011
Location: indonesia
Distribution: centOS5
Posts: 13

Original Poster
Rep: Reputation: Disabled
cannot do these command

Quote:
Originally Posted by fukawi1 View Post
df will only show you mounted filesystems.
Code:
fdisk -l
will show you all partitions.
Tq fukawi,
but i got this,
Code:
[root@localhost /]# fdisk -l
bash: fdisk: command not found
[root@localhost /]#
what should i do..
 
Old 02-03-2012, 01:27 AM   #11
fukawi1
Member
 
Registered: Apr 2009
Location: Melbourne
Distribution: Fedora & CentOS
Posts: 854

Rep: Reputation: 190Reputation: 190
I am guessing your $PATH is incorrectly set, that is why fdisk wont run.
It should look something like this.
Code:
fukawi1 ~ # echo $PATH
/opt/e17/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:~/bin/:/usr/local/bin:/usr/local/sbin:/usr/local/usr/bin/
fdisk is typically located in /sbin, so ensure that is in your path, or specify the full path.
Code:
/sbin/fdisk -f
 
1 members found this post helpful.
Old 02-03-2012, 02:04 AM   #12
cent_uries@yahoo.co.id
LQ Newbie
 
Registered: Dec 2011
Location: indonesia
Distribution: centOS5
Posts: 13

Original Poster
Rep: Reputation: Disabled
yess it's work..:D

Quote:
Originally Posted by fukawi1;
fdisk is typically located in /sbin, so ensure that is in your path, or specify the full path.
[code
/sbin/fdisk -f[/code]
dear fukawi, it's done..hehehehe
Code:
Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1               2        8683    69738165    f  W95 Ext'd (LBA)
/dev/hda2   *        8684        9728     8393962+   7  HPFS/NTFS
/dev/hda5               2        6120    49150836    7  HPFS/NTFS
/dev/hda6            6121        6133      104391   83  Linux
/dev/hda7            6134        8683    20482843+  8e  Linux LVM
what should i do now

Last edited by cent_uries@yahoo.co.id; 02-03-2012 at 02:10 AM. Reason: wrong pasted
 
Old 02-03-2012, 02:15 AM   #13
fukawi1
Member
 
Registered: Apr 2009
Location: Melbourne
Distribution: Fedora & CentOS
Posts: 854

Rep: Reputation: 190Reputation: 190
Well there are three MS partitions there. Chances are they have filesystems on them.
Try mounting them and looking through them for the "Documents and settings" or "Users" directories.
 
1 members found this post helpful.
Old 02-03-2012, 02:54 AM   #14
cent_uries@yahoo.co.id
LQ Newbie
 
Registered: Dec 2011
Location: indonesia
Distribution: centOS5
Posts: 13

Original Poster
Rep: Reputation: Disabled
finally solved

thank you all linuxer's
i've solved this problem by "nano" the 'etc/fstab'. set fstab to the right drive,
Code:
/dev/VolGroup00/LogVol00 /                       ext3    defaults        1 1
LABEL=/boot             /boot                   ext3    defaults        1 2
tmpfs                   /dev/shm                tmpfs   defaults        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0
/dev/VolGroup00/LogVol01 swap                    swap    defaults        0 0
/dev/hda5       /media/winxp    ntfs-3g defaults 0 0
the wrong in the last was
Code:
"/dev/hda2       /media/winxp    ntfs-3g defaults 0 0
once more: thank you for every body, for your kindness.
 
  


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
[SOLVED] Help with mounting NTFS Drive on CentOS 5.6 x64 coolsg5636 Linux - Newbie 6 09-29-2011 03:22 AM
problem mounting NTFS partition on CentOS. avee137 Linux - Newbie 1 05-15-2010 04:37 PM
problem mounting ntfs partition on centos mia_tech Linux - General 4 08-05-2009 07:01 PM
Bug: mounting ntfs in CentOS 5 using ntfs-3g brianmcgee Linux - Enterprise 4 12-27-2007 10:55 AM
NTFS-3g isn't mounting my NTFS partition... Necronomicom Slackware 4 03-02-2007 04:04 PM


All times are GMT -5. The time now is 05:11 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