Posts: 7
seby1689
Joined: 15 Sep 2011
#1
Hi everyone,

I am enjoying AntiX but I have a serious problem with it. My Windows NTFS partition won' t mount and I can' t access any files on it from within Linux. I would appreciate any advice you could offer on how to go about fixing this issue.

This is the error message that I get when I try to mount the partition from ROX-Filer:

Code: Select all

Mounting /mnt/sda2
mount: unknown filesystem type 'ntfs-3g'
Mount failed

Done
There was one error.
These are the contents of my fstab file:

Code: Select all

# Pluggable devices are handled by uDev, they are not in fstab
/dev/sda6 / ext3 defaults,noatime 1 1
/dev/sda5 swap swap sw,pri=1 0 0
proc /proc proc defaults 0 0
devpts /dev/pts devpts mode=0622 0 0
# Dynamic entries below
/dev/sda1 /mnt/sda1 vfat noauto,users,gid=users,dmask=002,fmask=113,relatime 0 0
/dev/sda2 /mnt/sda2 ntfs-3g noauto,users,noexec,uid=1000,gid=users,dmask=002,fmask=113,relatime 0 0
/dev/sda3 /mnt/sda3 vfat noauto,users,gid=users,dmask=002,fmask=113,relatime 0 0
/dev/sda7 /mnt/sda7 vfat noauto,users,gid=users,dmask=002,fmask=113,relatime 0 0
/dev/sdb1 /mnt/sdb1 vfat noauto,users,gid=users,dmask=002,fmask=113,relatime 0 0
/dev/sdc /mnt/sdc vfat noauto,users,gid=users,dmask=002,fmask=113,relatime 0 0
/dev/sdd /mnt/sdd vfat noauto,users,gid=users,dmask=002,fmask=113,relatime 0 0
/dev/cdrom /media/cdrom udf,iso9660 noauto,users,exec,ro 0 0
/dev/sr0 /media/cdrom udf,iso9660 noauto,users,exec,ro 0 0
Posts: 4,164
rokytnji
Joined: 20 Feb 2009
#2
Open a terminal and check if ntfs-3g is installed first

Code: Select all

apt-cache policy ntfs-3g
Also post out put of

Code: Select all

inxi -F


so we know what version of AntiX installation you are running.
Posts: 7
seby1689
Joined: 15 Sep 2011
#3
After running apt-cache policy ntfs-3g in the terminal, this is the response that I get:

Code: Select all

ntfs-3g:
  Installed: (none)
  Candidate: 1:2011.4.12AR.6-1
  Version table:
     1:2011.4.12AR.6-1 0
        500 http://ftp.us.debian.org/debian/ testing/main i386 Packages
        100 /var/lib/dpkg/s
tatus

The output of inxi -F is the following:

Code: Select all

System:    Host new-host Kernel 2.6.36-1-mepis-smp i686 (32 bit) Distro antiX-M11-base-686 Jayaben Desai 01 May 2011
( I included just the system information since that' s what you' ve asked for. There was other information about my computer hardware as well as the processes running.)
Posts: 4,164
rokytnji
Joined: 20 Feb 2009
#4

Code: Select all

apt-get update && apt-get install ntfs-3g
is what you need to run as root user in terminal. Use the sux command to login as root in terminal. Then do the above command.

Base iso did not come with ntfs-3g installed by default. Same for Core Iso.

On my Desktop in M/C shop running AntiX 11 Base.

Image

I used this thread

mounting-usb-devices-in-rox-t3048.html

for automounting usb drives in rox file manager also.

After installing ntfs-3g. If me I would change some of the lines in your fstab to

(make a backup of your /etc/fstab first. I do this by making a new folder in /home/harry I name Backups and anything I edit. I put a copy of the original in there first. I rename it fstabbk)

/dev/sda1 /mnt/sda1 vfat auto,users,gid=users,dmask=002,fmask=113,relatime 0 0
/dev/sda2 /mnt/sda2ntfs 3g auto users,noexec,uid=1000,gid=users,dmask=002,fmask=113,relatime 0 0
/dev/sda3 /mnt/sda3 vfat auto,users,gid=users,dmask=002,fmask=113,relatime 0 0
/dev/sda7 /mnt/sda7 vfat auto,users,gid=users,dmask=002,fmask=113,relatime 0 0


After making sure folders sda1,sda2,sda3,sda7,sdb1,sdc,and sdd were present in /mnt (if not make new folders with their names).

Edit: unless sdb,sdc,and sdd are external usb drives. Then ignore making folders I posted for those lines. Those are mounted in /media by udev.
Posts: 7
seby1689
Joined: 15 Sep 2011
#5
I followed all of the included instructions including changing the fstab file and while the sda2 NTFS partition is shown as mounted after startup, no files are displayed within the partition. This could be related to the error message that I got upon executing the command in the terminal. The error message is below:

update-initramfs: /boot/initrd.img-2.6.36-1-mepis-smp has been altered.
update-initramfs: Cannot update. Override with -t option
Posts: 4,164
rokytnji
Joined: 20 Feb 2009
#6
try in terminal

Code: Select all

sux
password. Then hit enter.

Code: Select all

rox
enter. This opens rox file manager as root user. Look inside /mnt/sda2 . You should see your files then.

It's friday night. I've had a few drinks. __{{emoticon}}__ So not all here.
Posts: 7
seby1689
Joined: 15 Sep 2011
#7
Actually the problem with seeing the NTFS partition as empty upon clicking on the drive sda2 in the /mnt directory persists even when I am using ROX-Filer as root. This is turning out to be real tricky. I am sure I should be able to get it to work though. After all, antiX is based on Debian and Debian-based distros should be able to get NTFS working.
Posts: 516
oldhoghead
Site Admin
Joined: 01 Oct 2007
#8
seby1689,

When you got this info:

[quoteupdate-initramfs: Cannot update. Override with -t option][/quote]

You need to run as root in terminal:

Code: Select all

update-initramfs -t -k all -c
this will update your kernel, then try to mount your windows partition, if no, then reboot and try again.

cheers,
ohh
Posts: 7
seby1689
Joined: 15 Sep 2011
#9
oldhoghead, I followed your instructions, but I was only able to get things working after disabling automount for sda2. The NTFS partition on sda2 will not only mount if I am using ROX-Filer as root. If I try to mount it as a regular user, I get the following error message:

Code: Select all

Mounting /mnt/sda2
Unprivileged user can not mount NTFS block devices using the external FUSE
library. Either mount the volume as root, or rebuild NTFS-3G with integrated
FUSE support and make it setuid root. Please see more information at
http://tuxera.com/community/ntfs-3g-faq/#unprivileged
Mount failed.
Is there any way I can get sda2 to mount as a regular user? Of course, I can always open up ROX-Filer as root and mount sda2 that way.

By the way, rokytnji, thank you also for your help. Thanks to you, at least now I can mount sda2 as root, that' s already pretty good.
Posts: 4,164
rokytnji
Joined: 20 Feb 2009
#10
You are Lucky that I use Windows to tune Motorcycles. It is the only reason I have it on this laptop. I can mount Windows as user in rox. This is AntiX 8.5 with a 2.6.34 Stevo kernel. So my /etc/fstab entry for Windows will say /mnt/hda1 instead of /mnt/sda1 because of the kernel I am using. Substitute sda for my hda entries in the line. Yours will be /mnt/sda2 and /dev/sda2 if I remember correctly.





My /etc/fstab entry for Windows partition is as follows in AntiX 8.5 (don't let the version number fool you. I keep this baby upgraded)

Code: Select all

/dev/hda1 /mnt/hda1 ntfs-3g auto,user,users,gid=users,dmask=002,fmask=113,relatime 0 0
Reboot after trying my entry. Comment out (#) the other entry to save old entry. Example of what I am talking about. Here is my whole /etc/fstab Which shows old entry for Windows in fstab and is commented out.

Code: Select all

# Pluggable devices are handled by uDev, they are not in fstab
/dev/hda6 / ext3 defaults,noatime 1 1
proc /proc proc defaults 0 0
devpts /dev/pts devpts mode=0622 0 0
/dev/hda5 /home auto defaults,noatime 1 2
#/dev/hda1 /mnt/hda1 ntfs-3g defaults,user,users,owner,rw,noatime 0 0
#/dev/hda8 /mnt/fat32 vfat auto,users,rw,owner,umask=000 0 0
/dev/hda4 /mnt/hda4 ext4 auto,users,rw,noatime 0 0
# Dynamic entries below
/dev/hda1 /mnt/hda1 ntfs-3g auto,user,users,gid=users,dmask=002,fmask=113,relatime 0 0
/dev/hda3 swap swap sw,pri=1 0 0
/dev/hda7 /mnt/hda7 ext3 auto,users,rw,relatime 0 0
/dev/cdrom /media/cdrom udf,iso9660 noauto,users,exec,ro 0 0
/dev/hdc /media/cdrom udf,iso9660 noauto,users,exec,ro 0 0

I aint no script kiddie or coder. __{{emoticon}}__ Just working late in my bike shop sipping beer and responding to this post.Anti can tell you. I have played around and broke and fixed fstab more than once. __{{emoticon}}__

The desktop for this laptop is at bottom of this thread

fluxbox-icewm-and-xfce-t2129.html