FAQ SearchLogin
Tuxera Home
View unanswered posts | View active topics It is currently Thu May 13, 2021 21:59



Post new topic Reply to topic  [ 5 posts ] 
cant get disk free space with "df" - no dev with "mount" 
Author Message

Joined: Fri Dec 16, 2011 08:17
Posts: 3
Post cant get disk free space with "df" - no dev with "mount"
first off the driver is working, available to anything that accesses the filesystem, I have full read/write access

when using "df" the ntfs-3g device is not listed

typing "mount" shows only a fuse control point, not the ntfs-3g mounted device

I can not even find where the mount point is generated from. I manually placed a ntfs-3g mount point in /etc/fstab about 12 months ago after a distro update in which the original mount point was no longer being used

I was still able to get disk free space with "df", even after hard coding the mount point in fstab

after a distro upgrade about a month ago, "df" no longer works, "mount" no longer shows the dev

process lists show "mount.ntfs-3g" but i have not been able to figure out where this is being called from.

the dev has not changed between any updates (still /dev/sdb1)
the mount point has not changed between any updates (still /mnt/Xenu)


How can I get /dev/sdb1 to show up under "df" again?
How can I get /dev/sdb1 to show up under "mount" again?
Is there any other way to get "disk free space" from fuse (ntfs-3g) devices that do not show up in regular places?
Where and how is /dev/sdb1 being mounted?
How do I find out what other devices are mounted with fuse (ntfs-3g)?

Any help with this would be appreciated, I am stumped, have tried many times over the past few months to figure this out, with no luck.

This is urgent as I use the 1Tb NTFS drive to mirror web sites, and it sits at around 96-99% full, so I can not automate updates without knowing "free disk space" first..

Cheers

Paul


Fri Dec 16, 2011 08:42
Profile

Joined: Fri Dec 16, 2011 08:17
Posts: 3
Post Re: cant get disk free space with "df" - no dev with "mount"
ntfs-3g 2011.1.15 external FUSE 28


Fri Dec 16, 2011 09:36
Profile
NTFS-3G Lead Developer

Joined: Tue Sep 04, 2007 17:22
Posts: 1286
Post Re: cant get disk free space with "df" - no dev with "mount"
Hi,

Quote:
when using "df" the ntfs-3g device is not listed

But what do you get if you mention the device ?
Code:
df /mnt/Xenu


Quote:
after a distro upgrade about a month ago, "df" no longer works, "mount" no longer shows the dev

process lists show "mount.ntfs-3g" but i have not been able to figure out where this is being called from.

the dev has not changed between any updates (still /dev/sdb1)
the mount point has not changed between any updates (still /mnt/Xenu)

Which kernel ?
Which ntfs-3g ? (ok, mentioned in a later post).
What kind of device (internal, USB, LV ?)
Your fstab entry ?
Is /etc/mtab a symlink ?
What are the "Cmdline options" and "Mount options" lines in your syslog ?

Quote:
Any help with this would be appreciated, I am stumped, have tried many times over the past few months to figure this out, with no luck.

This looks more like a distribution choice for restricting the visibility of a device mounted by a user to other users than a ntfs-3g issue. Did you ask them ?

Regards

Jean-Pierre


Fri Dec 16, 2011 10:29
Profile

Joined: Fri Dec 16, 2011 08:17
Posts: 3
Post Re: cant get disk free space with "df" - no dev with "mount"
Code:
$ df /mnt/Xenu
Filesystem            Size  Used Avail Use% Mounted on
-                     932G  905G   28G  98% /mnt/Xenu


Thanks, thats what I need to keep working, now for the other stuff:
Code:
2.6.33.7-pclos6.pae GNU/Linux (PCLinuxOS) i386 i586 i686
ntfs-3g 2011.1.15 external FUSE 28
internal SATA /dev/sdb


current fstab:
Code:
#Entry for /dev/sdb1 :
UUID=C60067FF0067F4B9 /mnt/Xenu ntfs-3g defaults,exec,rw,auto,locale=en_US.UTF-8 0 0


previous fstab:
Code:
#Entry for /dev/sdb1 :
/dev/sdb1       /mnt/Xenu       ntfs    UMASK=000,exec,rw,auto  0 0


Code:
$ ls -l /etc/mtab
-rw-r--r-- 1 root burner 426 Dec 12 05:21 /etc/mtab
$ cat /etc/mtab
/dev/sda5 / ext3 rw 0 0
none /proc proc rw 0 0
none /dev/pts devpts rw,mode=0620 0 0
fusectl /sys/fs/fuse/connections fusectl rw 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw 0 0


What are the "Cmdline options" and "Mount options" lines in your syslog ?
I can see nothing in /var/log/syslog, but:
Code:
# ps -ef | grep -v grep | grep mount
root       808     1  0 Dec12 ?        00:18:10 /sbin/mount.ntfs-3g /dev/sdb1 /mnt/Xenu -o rw,locale=en_US.UTF-8


If I read the fstab correctly, /dev/sdb1 does not show up in mount/df because the /dev/sdb1 is not explicitly specified? But how does "mount.ntfs-3g" know to use /dev/sdb1

why does "mount.ntfs-3g" dev not show up in mount? Because its not in /etc/mtab (which is not a link btw)?

Paul


Fri Dec 16, 2011 11:06
Profile
NTFS-3G Lead Developer

Joined: Tue Sep 04, 2007 17:22
Posts: 1286
Post Re: cant get disk free space with "df" - no dev with "mount"
Hi again,

Code:
$ df /mnt/Xenu
Filesystem            Size  Used Avail Use% Mounted on
-                     932G  905G   28G  98% /mnt/Xenu

So the device (Filesystem) is not shown... what is shown by :
Code:
ls -l /dev/disk/by-uuid

Also is the device shown after unmounting and mounting manually ?
Code:
umount /mnt/Xenu
mount -o ro /dev/sdb1 /mnt/Xenu
df /mnt/Xenu

Note : as the device does not show in /etc/mtab, there is nothing preventing you from mounting the same device twice, but this is dangerous, this is why I suggest mounting read-only.
Quote:
If I read the fstab correctly, /dev/sdb1 does not show up in mount/df because the /dev/sdb1 is not explicitly specified?

Maybe.
Quote:
But how does "mount.ntfs-3g" know to use /dev/sdb1

Each partition has some form of a signature, for ntfs-3g it is an 8-byte random number. When a device is plugged in, a symlink is inserted in /dev/disk/by-uuid and the signature is searched in /etc/fstab for mount parameters. This is very useful for external devices whose devids depend on the order in which they are plugged in.

If you have set a label on your partition, you may try using the label in /etc/fstab,
replacing "UUID=C60067FF0067F4B9" by "LABEL=your-label", also check whether the label is symlinked in /dev/disk/by-label

Otherwise you may have to revert to /dev/sdb1 in your /etc/fstab entry. The devid of an internal disk is unlikely to change... until the next kernel upgrade.

Regards

Jean-Pierre


Fri Dec 16, 2011 12:07
Profile
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 


Who is online

Users browsing this forum: Google [Bot] and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Original forum style by Vjacheslav Trushkin.