[SOLVED] How to unmount ntfs file system, (or usb)

I'm still trying (or trying again) to commit the heinous act of removing my data from my computer via the usb-port. Either to usb, or to an external hard-drive. Posting this as a separate question because I'm fine with doing it as root. Maybe it should still be part of my previous question..

here are the drives attached to the computer:

Code:
root@ozzie:~ # gpart show
=>       63  250069617  ada0  MBR  (119G)
         63          1        - free -  (512B)
         64  249561088     1  freebsd  [active]  (119G)
  249561152     508528        - free -  (248M)

=>        0  249561088  ada0s1  BSD  (119G)
          0  241172480       1  freebsd-ufs  (115G)
  241172480    8388608       2  freebsd-swap  (4.0G)

=>        63  1953525104  da0  MBR  (932G)
          63        1985       - free -  (993K)
        2048  1953519616    1  ntfs  (932G)
  1953521664        3503       - free -  (1.7M)

=>      63  30322625  da1  MBR  (14G)
        63      8001       - free -  (3.9M)
      8064  30314624    1  fat32lba  (14G)
I've looked at the information here and here and here, (these last two are somewhat redundant), and I still can't unmount via gui. it doesn't say anything about rebooting, rather, it goes into length about how I have to do something else if I don't want to have to do all that all over again when I re-boot. Strictly speaking though, most of that is for mounting, not unmounting. I'm not actually sure if these drives are mounted or not, so I'm trying to be systematic.. I know that if I unplug my drive without unmounting/ejecting it, when I plug it into another computer, the data I tried to write to it isn't there. I've tried some of the proposed solutions here, but there is no claim even there that they should work (they work for one person..)
 
Last edited by a moderator:
Well I don't have time to read endless threads in search of the question, so I will ask it:

What is your problem and what have you tried so far?
 
Well I don't have time to read endless threads in search of the question, so I will ask it:

What is your problem and what have you tried so far?
At the shallowest level, this is my problem:
eject_error.png

There was a popup previously tracking the progress of the save, which went away, so I assumed all the data was written.

To make sure I have permission to eject/unmount, I went into /etc/devfs.conf, as per this link, and added:

own /dev/da0 root: operator
perm /dev/da00 0666

to it, then typing:

# pw groupmod operator -m yourusername

..I'll add more things I've done in another reply..
 
Is there anything in /var/log/messages about this?

Ensure when you modify your username's account you log out and log back in again.

Is the seagate device you're trying to unmount actually mounted as a file system? Does df show you it mounted?

(Apologies, I don't use a GUI so I don't know what the file manager is or what it's doing when displaying it as it does. )
 
I can "formally" recognize the attached device: (instructions here)
root@ozzie:/etc # ls -l /dev/da0*
crw-r----- 1 root operator 0x82 Jul 2 19:29 /dev/da0
crw-r----- 1 root operator 0x83 Jul 2 19:29 /dev/da0s1
and mount it (apparently) with:
root@ozzie:/etc # ntfs-3g /dev/da0s1 /mnt
root@ozzie:/etc #
I then went on to research as to how to unmount it, and you could say that's where I am now. I found things, but documentation will take longer..
 
Is there anything in /var/log/messages about this?

Ensure when you modify your username's account you log out and log back in again.

Is the seagate device you're trying to unmount actually mounted as a file system? Does df show you it mounted?

(Apologies, I don't use a GUI so I don't know what the file manager is or what it's doing when displaying it as it does. )
/var/log/messages ... perhaps you can spot easier than I can anything important in there.. I'll answer your other questions, then get back to that..
Jul 2 19:30:50 ozzie ntfs-3g[1143]: Cmdline options:
Jul 2 19:30:50 ozzie ntfs-3g[1143]: Mount options: allow_other,nonempty,relatime,fsname=/dev/da0s1
Jul 2 19:30:50 ozzie ntfs-3g[1143]: Ownership and permissions disabled, configuration type 1
Jul 2 19:31:16 ozzie ntfs-3g[1143]: ntfs_mst_post_read_fixup_warn: magic: 0x00000000 size: 4096 usa_ofs: 0 usa_count: 0: Invalid
argument
Jul 2 19:31:16 ozzie ntfs-3g[1143]: Index buffer (VCN 0x0) of directory inode 6906 has a size (24) differing from the directory speci
fied size (4096).
Jul 2 19:31:21 ozzie ntfs-3g[1143]: ntfs_mst_post_read_fixup_warn: magic: 0x00000000 size: 4096 usa_ofs: 0 usa_count: 0: Invalid
argument
Jul 2 19:31:21 ozzie ntfs-3g[1143]: Index buffer (VCN 0x0) of directory inode 6428 has a size (24) differing from the directory speci
fied size (4096).
Jul 2 19:31:58 ozzie ntfs-3g[1143]: ntfs_mst_post_read_fixup_warn: magic: 0x00000000 size: 4096 usa_ofs: 0 usa_count: 0: Invalid
argument
Jul 2 19:31:58 ozzie ntfs-3g[1143]: Index buffer (VCN 0x0) of directory inode 6906 has a size (24) differing from the directory speci
fied size (4096).
Jul 2 19:32:04 ozzie ntfs-3g[1143]: ntfs_mst_post_read_fixup_warn: magic: 0x00000000 size: 4096 usa_ofs: 0 usa_count: 0: Invalid
argument
Jul 2 19:32:04 ozzie ntfs-3g[1143]: Index buffer (VCN 0x0) of directory inode 6428 has a size (24) differing from the directory speci
fied size (4096).
Jul 2 19:49:21 ozzie su[1180]: BAD SU eriadar to root on /dev/pts/0
Jul 2 19:49:29 ozzie su[1182]: eriadar to root on /dev/pts/0
Jul 2 20:17:24 ozzie ntfs-3g[1239]: Version 2017.3.23 external FUSE 29
Jul 2 20:17:24 ozzie ntfs-3g[1239]: Mounted /dev/da0s1 (Read-Write, label "Seagate Expansion Drive", NTFS 3.1)
Jul 2 20:17:24 ozzie ntfs-3g[1239]: Cmdline options:
Jul 2 20:17:24 ozzie ntfs-3g[1239]: Mount options: allow_other,nonempty,relatime,fsname=/dev/da0s1
Jul 2 20:17:24 ozzie ntfs-3g[1239]: Ownership and permissions disabled, configuration type 1

Jul 2 19:30:11 ozzie kernel: hdac0: Unexpected unsolicited response from address 0: 00000000
Jul 2 19:30:11 ozzie syslogd: last message repeated 173 times
Jul 2 19:30:11 ozzie kernel: hdac0: Command 0x0063b000 timeout on address 0
Jul 2 19:30:11 ozzie kernel: hdac0: Command 0x0073b000 timeout on address 0
Jul 2 19:30:34 ozzie bsdisks[1090]: QDBusObjectPath: invalid path "/org/freedesktop/UDisks2/block_devices/diskid/DISK-NAATTNKZs1"
Jul 2 19:30:34 ozzie bsdisks[1090]: QDBusObjectPath: invalid path "/org/freedesktop/UDisks2/block_devices/diskid/DISK-07009A8E81ECF018
s1"
Jul 2 19:30:50 ozzie ntfs-3g[1143]: Version 2017.3.23 external FUSE 29
Jul 2 19:30:50 ozzie ntfs-3g[1143]: Mounted /dev/da0s1 (Read-Write, label "Seagate Expansion Drive", NTFS 3.1)
Jul 2 19:30:50 ozzie ntfs-3g[1143]: Cmdline options:
Jul 2 19:30:50 ozzie ntfs-3g[1143]: Mount options: allow_other,nonempty,relatime,fsname=/dev/da0s1
Jul 2 19:30:50 ozzie ntfs-3g[1143]: Ownership and permissions disabled, configuration type 1
Jul 2 19:31:16 ozzie ntfs-3g[1143]: ntfs_mst_post_read_fixup_warn: magic: 0x00000000 size: 4096 usa_ofs: 0 usa_count: 0: Invalid a
rgument
Jul 2 19:31:16 ozzie ntfs-3g[1143]: Index buffer (VCN 0x0) of directory inode 6906 has a size (24) differing from the directory specif
ied size (4096).
Jul 2 19:31:21 ozzie ntfs-3g[1143]: ntfs_mst_post_read_fixup_warn: magic: 0x00000000 size: 4096 usa_ofs: 0 usa_count: 0: Invalid a
rgument
Jul 2 19:31:21 ozzie ntfs-3g[1143]: Index buffer (VCN 0x0) of directory inode 6428 has a size (24) differing from the directory specif
ied size (4096).
Jul 2 19:31:58 ozzie ntfs-3g[1143]: ntfs_mst_post_read_fixup_warn: magic: 0x00000000 size: 4096 usa_ofs: 0 usa_count: 0: Invalid a
rgument
Jul 2 19:31:58 ozzie ntfs-3g[1143]: Index buffer (VCN 0x0) of directory inode 6906 has a size (24) differing from the directory specif
ied size (4096).
Jul 2 19:32:04 ozzie ntfs-3g[1143]: ntfs_mst_post_read_fixup_warn: magic: 0x00000000 size: 4096 usa_ofs: 0 usa_count: 0: Invalid a
rgument
Jul 2 19:32:04 ozzie ntfs-3g[1143]: Index buffer (VCN 0x0) of directory inode 6428 has a size (24) differing from the directory specif
ied size (4096).
Jul 2 19:49:21 ozzie su[1180]: BAD SU eriadar to root on /dev/pts/0
Jul 2 19:49:29 ozzie su[1182]: eriadar to root on /dev/pts/0
Jul 2 20:17:24 ozzie ntfs-3g[1239]: Version 2017.3.23 external FUSE 29
Jul 2 20:17:24 ozzie ntfs-3g[1239]: Mounted /dev/da0s1 (Read-Write, label "Seagate Expansion Drive", NTFS 3.1)
Jul 2 20:17:24 ozzie ntfs-3g[1239]: Cmdline options:
Jul 2 20:17:24 ozzie ntfs-3g[1239]: Mount options: allow_other,nonempty,relatime,fsname=/dev/da0s1
Jul 2 20:17:24 ozzie ntfs-3g[1239]: Ownership and permissions disabled, configuration type 1
:q!
root@ozzie:/var/log # vi messages

Jul 2 19:30:11 ozzie kernel: hdac0: Unexpected unsolicited response from address 0: 00000000
Jul 2 19:30:11 ozzie syslogd: last message repeated 173 times
Jul 2 19:30:11 ozzie kernel: hdac0: Command 0x0063b000 timeout on address 0
Jul 2 19:30:11 ozzie kernel: hdac0: Command 0x0073b000 timeout on address 0
Jul 2 19:30:34 ozzie bsdisks[1090]: QDBusObjectPath: invalid path "/org/freedesktop/UDisks2/block_devices/diskid/DISK-NAATTNKZs1"
Jul 2 19:30:34 ozzie bsdisks[1090]: QDBusObjectPath: invalid path "/org/freedesktop/UDisks2/block_devices/diskid/DISK-07009A8E81ECF018
s1"
Jul 2 19:30:50 ozzie ntfs-3g[1143]: Version 2017.3.23 external FUSE 29
Jul 2 19:30:50 ozzie ntfs-3g[1143]: Mounted /dev/da0s1 (Read-Write, label "Seagate Expansion Drive", NTFS 3.1)
Jul 2 19:30:50 ozzie ntfs-3g[1143]: Cmdline options:
Jul 2 19:30:50 ozzie ntfs-3g[1143]: Mount options: allow_other,nonempty,relatime,fsname=/dev/da0s1
Jul 2 19:30:50 ozzie ntfs-3g[1143]: Ownership and permissions disabled, configuration type 1
Jul 2 19:31:16 ozzie ntfs-3g[1143]: ntfs_mst_post_read_fixup_warn: magic: 0x00000000 size: 4096 usa_ofs: 0 usa_count: 0: Invalid a
rgument
Jul 2 19:31:16 ozzie ntfs-3g[1143]: Index buffer (VCN 0x0) of directory inode 6906 has a size (24) differing from the directory specif
ied size (4096).
Jul 2 19:31:21 ozzie ntfs-3g[1143]: ntfs_mst_post_read_fixup_warn: magic: 0x00000000 size: 4096 usa_ofs: 0 usa_count: 0: Invalid a
rgument
Jul 2 19:31:21 ozzie ntfs-3g[1143]: Index buffer (VCN 0x0) of directory inode 6428 has a size (24) differing from the directory specif
ied size (4096).
Jul 2 19:31:58 ozzie ntfs-3g[1143]: ntfs_mst_post_read_fixup_warn: magic: 0x00000000 size: 4096 usa_ofs: 0 usa_count: 0: Invalid a
rgument
Jul 2 19:31:58 ozzie ntfs-3g[1143]: Index buffer (VCN 0x0) of directory inode 6906 has a size (24) differing from the directory specif
ied size (4096).
Jul 2 19:32:04 ozzie ntfs-3g[1143]: ntfs_mst_post_read_fixup_warn: magic: 0x00000000 size: 4096 usa_ofs: 0 usa_count: 0: Invalid a
rgument
Jul 2 19:32:04 ozzie ntfs-3g[1143]: Index buffer (VCN 0x0) of directory inode 6428 has a size (24) differing from the directory specif
ied size (4096).
Jul 2 19:49:21 ozzie su[1180]: BAD SU eriadar to root on /dev/pts/0
Jul 2 19:49:29 ozzie su[1182]: eriadar to root on /dev/pts/0
Jul 2 20:17:24 ozzie ntfs-3g[1239]: Version 2017.3.23 external FUSE 29
Jul 2 20:17:24 ozzie ntfs-3g[1239]: Mounted /dev/da0s1 (Read-Write, label "Seagate Expansion Drive", NTFS 3.1)
Jul 2 20:17:24 ozzie ntfs-3g[1239]: Cmdline options:
Jul 2 20:17:24 ozzie ntfs-3g[1239]: Mount options: allow_other,nonempty,relatime,fsname=/dev/da0s1
Jul 2 20:17:24 ozzie ntfs-3g[1239]: Ownership and permissions disabled, configuration type 1
:q!
root@ozzie:/var/log # echo messages
messages
root@ozzie:/var/log # messages
messages: Command not found.
root@ozzie:/var/log # vi messages

Jul 2 19:30:11 ozzie kernel: hdac0: Unexpected unsolicited response from address 0: 00000000
Jul 2 19:30:11 ozzie syslogd: last message repeated 173 times
Jul 2 19:30:11 ozzie kernel: hdac0: Command 0x0063b000 timeout on address 0
Jul 2 19:30:11 ozzie kernel: hdac0: Command 0x0073b000 timeout on address 0
Jul 2 19:30:34 ozzie bsdisks[1090]: QDBusObjectPath: invalid path "/org/freedesktop/UDisks2/block_devices/diskid/DISK-NAATTNKZs1"
Jul 2 19:30:34 ozzie bsdisks[1090]: QDBusObjectPath: invalid path "/org/freedesktop/UDisks2/block_devices/diskid/DISK-07009A8E81ECF018
s1"
Jul 2 19:30:50 ozzie ntfs-3g[1143]: Version 2017.3.23 external FUSE 29
Jul 2 19:30:50 ozzie ntfs-3g[1143]: Mounted /dev/da0s1 (Read-Write, label "Seagate Expansion Drive", NTFS 3.1)
Jul 2 19:30:50 ozzie ntfs-3g[1143]: Cmdline options:
Jul 2 19:30:50 ozzie ntfs-3g[1143]: Mount options: allow_other,nonempty,relatime,fsname=/dev/da0s1
Jul 2 19:30:50 ozzie ntfs-3g[1143]: Ownership and permissions disabled, configuration type 1
Jul 2 19:31:16 ozzie ntfs-3g[1143]: ntfs_mst_post_read_fixup_warn: magic: 0x00000000 size: 4096 usa_ofs: 0 usa_count: 0: Invalid a
rgument
Jul 2 19:31:16 ozzie ntfs-3g[1143]: Index buffer (VCN 0x0) of directory inode 6906 has a size (24) differing from the directory specif
ied size (4096).
Jul 2 19:31:21 ozzie ntfs-3g[1143]: ntfs_mst_post_read_fixup_warn: magic: 0x00000000 size: 4096 usa_ofs: 0 usa_count: 0: Invalid a
rgument
Jul 2 19:31:21 ozzie ntfs-3g[1143]: Index buffer (VCN 0x0) of directory inode 6428 has a size (24) differing from the directory specif
ied size (4096).
Jul 2 19:31:58 ozzie ntfs-3g[1143]: ntfs_mst_post_read_fixup_warn: magic: 0x00000000 size: 4096 usa_ofs: 0 usa_count: 0: Invalid a
rgument
Jul 2 19:31:58 ozzie ntfs-3g[1143]: Index buffer (VCN 0x0) of directory inode 6906 has a size (24) differing from the directory specif
ied size (4096).
Jul 2 19:32:04 ozzie ntfs-3g[1143]: ntfs_mst_post_read_fixup_warn: magic: 0x00000000 size: 4096 usa_ofs: 0 usa_count: 0: Invalid a
rgument
Jul 2 19:32:04 ozzie ntfs-3g[1143]: Index buffer (VCN 0x0) of directory inode 6428 has a size (24) differing from the directory specif
ied size (4096).
Jul 2 19:49:21 ozzie su[1180]: BAD SU eriadar to root on /dev/pts/0
Jul 2 19:49:29 ozzie su[1182]: eriadar to root on /dev/pts/0
Jul 2 20:17:24 ozzie ntfs-3g[1239]: Version 2017.3.23 external FUSE 29
Jul 2 20:17:24 ozzie ntfs-3g[1239]: Mounted /dev/da0s1 (Read-Write, label "Seagate Expansion Drive", NTFS 3.1)
Jul 2 20:17:24 ozzie ntfs-3g[1239]: Cmdline options:
Jul 2 20:17:24 ozzie ntfs-3g[1239]: Mount options: allow_other,nonempty,relatime,fsname=/dev/da0s1
Jul 2 20:17:24 ozzie ntfs-3g[1239]: Ownership and permissions disabled, configuration type 1
and, yes, apparently it -is- mounted:
root@ozzie:/var/log # df
Filesystem 1K-blocks Used Avail Capacity Mounted on
/dev/ada0s1a 116781948 74459556 32979840 69% /
devfs 1 1 0 100% /dev
/dev/fuse 976759804 154144060 822615744 16% /media/Seagate_Expansion_NAATTNKZ_s1
/dev/fuse 976759804 154144060 822615744 16% /mnt
 
I can "formally" recognize the attached device: (instructions here)

root@ozzie:/etc # ls -l /dev/da0*
crw-r----- 1 root operator 0x82 Jul 2 19:29 /dev/da0
crw-r----- 1 root operator 0x83 Jul 2 19:29 /dev/da0s1
and mount it (apparently) with:

root@ozzie:/etc # ntfs-3g /dev/da0s1 /mnt
root@ozzie:/etc #
I then went on to research as to how to unmount it, and you could say that's where I am now. I found things, but documentation will take longer..

Have you simply tried umount /mnt ?
 
The mount option of allow_other implies (according to the manual page) that it only accepts this if you mount as root. You can override by, to quote the man page, "but this restriction can be overridden by the 'user_allow_other' option in the /etc/fuse.conf file."
1. Are you mounting as root or as a non-root user?
2. In the entry in the log there is:
Jul 2 20:17:24 ozzie ntfs-3g[1239]: Mount options: allow_other,nonempty,relatime,fsname=/dev/da0s1
Is that process still around, if so, can you show it? eg ps -ux 1239

3. Can you umount it while root?
 
The mount option of allow_other implies (according to the manual page) that it only accepts this if you mount as root. You can override by, to quote the man page, "but this restriction can be overridden by the 'user_allow_other' option in the /etc/fuse.conf file."
1. Are you mounting as root or as a non-root user?
2. In the entry in the log there is:

Is that process still around, if so, can you show it? eg ps -ux 1239

3. Can you umount it while root?
from what I understand, from these lines of my previous post:
root@ozzie:/etc # ntfs-3g /dev/da0s1 /mnt
root@ozzie:/etc #
the "#" symbols imply that the associated command is performed as root.. I'll check the log soon, and get back to you with the results of your other questions.. :)
 
You cannot unmount while the filesystem is still in use.

Looks like you are using xfce and thunar, so best thing is to close all instances of thunar or any other file manager. Better still get out of the DE and back to a command prompt.

Then you can use umount.
 
Have you simply tried umount /mnt ?
root@ozzie:/var/log # umount /media/Seagate_Expansion_NAATTNKZ_s1
root@ozzie:/var/log # df
Filesystem 1K-blocks Used Avail Capacity Mounted on
/dev/ada0s1a 116781948 74496516 32942880 69% /
devfs 1 1 0 100% /dev
success! (The key was figurring out -what- to unmount!)
thanks!! I've now checked that all my data got written, and my program works on the other computer!
 
You cannot unmount while the filesystem is still in use.

Looks like you are using xfce and thunar, so best thing is to close all instances of thunar or any other file manager. Better still get out of the DE and back to a command prompt.

Then you can use umount.
..may the command-prompt and the gui never meet.. hehe.. for now, solution found!
 
I do it one way and one way only. You just have to make sure any files opened on the USB drive are closed, no need to close the FM. I don't use NTFS but the second set is for larger drives using FAT32. Only root can mount or unmount, the usr can read but not write

Code:
mount -v -t msdosfs /dev/da0s1 /media/da0s1

umount -v -t msdosfs /dev/da0s1 /media/da0s1


mount -v -t msdosfs -F32 -o large /dev/da0s1 /media/da0s1

umount -v -t msdosfs -F32 /dev/da0s1 /media/da0s1
 
Back
Top