Jump to content

Mounting NTFS


TitanKing
 Share

Recommended Posts

Hi guys, I recently had this bit of bad luck, everything was fine could see all my mounted ntfs partitions, but then for some odd reason, the one ntfs (Windows) drive, when I enter I see no files ? Why would this be, I tried to remount it but it tells me I need to format the drive to mount it. Is there anyway of mounting the drive without formatting ? The Windows drive boots up just fiune...

 

Thanks in advance...

Link to comment
Share on other sites

You could also have changed the permissions on the mount point somehow...

 

before doing much else try from a console, logged as root

 

umount /mnt/<yourdrive>

 

if it won't unmount its probably open somewhere.

you can find it and kill it with fuser

e.g.

fuser -km /mnt/ntfs1

will kill all process accessing that filesystem

 

you should then be able to unmount

You can then try and explicitly check the permissions with

ls -l /mnt/ntfs1

 

if its readable only by root then files mounted on it will be too.

you can

chmod 555 /mnt/ntfs1

and then it will be readable and executable by everyone

then remount explicitly

 

mount /dev/hda(x) /mnt/ntfs1 -t ntfs -o ro

 

(this assures readonly)

Link to comment
Share on other sites

This is my fstab:

 

[ian@europa ~]$ cat /etc/fstab
# This file is edited by fstab-sync - see 'man fstab-sync' for details
/dev/hda2 / reiserfs notail,noatime 1 1
/dev/hdc /mnt/cdrom auto umask=0,user,iocharset=iso8859-15,codepage=850,noauto,ro,exec,users 0 0
/dev/hda1 /mnt/windows ntfs umask=0,nls=iso8859-15,ro 0 0
none /proc proc defaults 0 0
/dev/hda3 swap swap defaults 0 0

 

the line you need to make sure matches yours are the parameters on this line:

 

/dev/hda1 /mnt/windows ntfs umask=0,nls=iso8859-15,ro 0 0

 

of course /dev/hda1 might read something else, so don't change this in your fstab, just make sure the other parameters are the same. If you're using Mandriva, then /mnt/windows should exist, but check this first to make sure it does, since this is your mount point. Then set the rest exactly like mine.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...