You are not logged in.

#1 2012-03-26 08:47:35

4on6
Member
Registered: 2011-10-05
Posts: 172

[SOLVED] Mounting my usb-harddrive with ntfs-3g stopped working

Unfortunately, mounting my usb-harddrive with ntfs-3g stopped working:

[tj@arch ~]$ LC_ALL=C sudo fdisk -l

Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders, total 488397168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00010243

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *          63      208844      104391   83  Linux
/dev/sda2          208845      738989      265072+  82  Linux swap / Solaris
/dev/sda3          738990    16113194     7687102+  83  Linux
/dev/sda4        16113195   488392064   236139435   83  Linux

Disk /dev/sdb: 1000.2 GB, 1000204884992 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525166 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xb82585a9

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1              63  1953520064   976760001    7  HPFS/NTFS/exFAT
[tj@arch ~]$ sudo ntfs-3g /dev/sdb1 /media/seagate
fuse: device not found, try 'modprobe fuse' first
[tj@arch ~]$ sudo modprobe fuse

modprobe fuse gives no output, not with -v flag either. fuse is installed:

extra/fuse 2.8.7-1 [Installed]
    A library that makes it possible to implement a filesystem in a userspace program.

It worked all the time before. Do I miss something obvious?
TIA

Last edited by 4on6 (2012-04-15 11:53:11)

Offline

#2 2012-03-26 10:03:40

Gcool
Member
Registered: 2011-08-16
Posts: 1,456

Re: [SOLVED] Mounting my usb-harddrive with ntfs-3g stopped working

You haven't upgraded the kernel without rebooting yet by any chance?


Burninate!

Offline

#3 2012-03-26 10:37:05

4on6
Member
Registered: 2011-10-05
Posts: 172

Re: [SOLVED] Mounting my usb-harddrive with ntfs-3g stopped working

Gcool wrote:

You haven't upgraded the kernel without rebooting yet by any chance?

That was it - thanks!

One more related question. When I mount my USB stick with Arch, I get

mount: warning: /media/usb/ seems to be mounted read-only.

fdisk -l shows this:

Disk /dev/sdb: 8086 MB, 8086618112 bytes
64 heads, 32 sectors/track, 7712 cylinders, total 15794176 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x3946b2c9

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           0      772095      386048   17  Hidden HPFS/NTFS

Disk /dev/sdb1: 395 MB, 395313152 bytes
64 heads, 32 sectors/track, 377 cylinders, total 772096 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x3946b2c9

     Device Boot      Start         End      Blocks   Id  System
/dev/sdb1p1   *           0      772095      386048   17  Hidden HPFS/NTFS

I had that problem before and tried to use ntfs-3g instead of mount, but that did not work eihter. After unmounting, a try with ntfs-3g gives:

[tj@arch ~]$ LC_ALL=C sudo ntfs-3g /dev/sdb1 /media/usb/
NTFS signature is missing.
Failed to mount '/dev/sdb1': Invalid argument
The device '/dev/sdb1' doesn't seem to have a valid NTFS.
Maybe the wrong device is used? Or the whole disk instead of a
partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?

[tj@arch ~]$ LC_ALL=C sudo ntfs-3g /dev/sdb1p1 /media/usb/
ntfs-3g: Failed to access volume '/dev/sdb1p1': No such file or directory

One new problem after this try is, that on Win7 the USB stick is not recognized any more, Windows tells  me I have to reformat the usb-stick.

How can I achieve these two things:
1. Mount the usb-stick read/write on Arch
2. Make it accessible on Win7 again
?

Thanks for any hints.

Offline

#4 2012-03-26 11:36:08

Gcool
Member
Registered: 2011-08-16
Posts: 1,456

Re: [SOLVED] Mounting my usb-harddrive with ntfs-3g stopped working

Try mounting it as follows:

# mount -t ntfs-3g /dev/sdb -o gid=users,fmask=113,dmask=002

Burninate!

Offline

#5 2012-03-26 22:42:59

4on6
Member
Registered: 2011-10-05
Posts: 172

Re: [SOLVED] Mounting my usb-harddrive with ntfs-3g stopped working

Gcool wrote:

Try mounting it as follows:

# mount -t ntfs-3g /dev/sdb -o gid=users,fmask=113,dmask=002

With fdisk showing:

Disk /dev/sdc: 8086 MB, 8086618112 bytes
64 heads, 32 sectors/track, 7712 cylinders, total 15794176 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x3946b2c9

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1   *           0      772095      386048   17  Hidden HPFS/NTFS

Disk /dev/sdc1: 395 MB, 395313152 bytes
64 heads, 32 sectors/track, 377 cylinders, total 772096 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x3946b2c9

the following 2 versions of your command did not work - unfortunately.

sudo mount -t ntfs-3g -o gid=users,fmask=113,dmask=002 /dev/sdc1 /media/usb/
NTFS signature is missing.
Failed to mount '/dev/sdc1': Das Argument ist ungültig
The device '/dev/sdc1' doesn't seem to have a valid NTFS.
Maybe the wrong device is used? Or the whole disk instead of a
partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?

[tj@arch ~]$ sudo mount -t ntfs-3g -o gid=users,fmask=113,dmask=002 /dev/sdc /media/usb/
NTFS signature is missing.
Failed to mount '/dev/sdc': Das Argument ist ungültig
The device '/dev/sdc' doesn't seem to have a valid NTFS.
Maybe the wrong device is used? Or the whole disk instead of a
partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?

Do usb sticks have NTFS? Is the filesystem broken and has to be reformated?

Offline

#6 2012-03-27 05:35:22

Gcool
Member
Registered: 2011-08-16
Posts: 1,456

Re: [SOLVED] Mounting my usb-harddrive with ntfs-3g stopped working

The command I provided is to mount your usb stick with read/write support (assuming that mounting it is working).

As for the issue at hand (the "NTFS signature is missing" error); perhaps try running a chkdsk on the drive from within windows.


Burninate!

Offline

#7 2012-03-27 12:30:24

Wilco
Member
Registered: 2008-11-09
Posts: 440

Re: [SOLVED] Mounting my usb-harddrive with ntfs-3g stopped working

ntfs-3g does not have proper write support with the stock arch package. If you install the aur package, you can read/write as a normal user. This is caused because the ntfs-3g package is compiled with external fuse support instead of internal in the official library. After installing the aur package setguid the binary as ntfs-3g will tell you.

https://aur.archlinux.org/packages.php?ID=49961

Offline

#8 2012-03-29 22:47:20

4on6
Member
Registered: 2011-10-05
Posts: 172

Re: [SOLVED] Mounting my usb-harddrive with ntfs-3g stopped working

Wilco wrote:

ntfs-3g does not have proper write support with the stock arch package. If you install the aur package, you can read/write as a normal user. This is caused because the ntfs-3g package is compiled with external fuse support instead of internal in the official library. After installing the aur package setguid the binary as ntfs-3g will tell you.

https://aur.archlinux.org/packages.php?ID=49961

The AUR package maintainer writes:
"I personally don't use this package anymore (I'm now using lxpolkit-git and the standard ntfs-3g to avoid using Set-UID), but it compiles and seems to run fine.
If someone who uses this package normally wants to maintain it, just let me know and I'll disown it"

so maybe I should rather go that way?

But - do USB sticks have ntfs filesystems? Or did I mess up the stick when trying to mount it with ntfs-3g, since WIN7 tells me I have to reformat the stick.

Offline

#9 2012-03-30 00:40:53

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,059

Re: [SOLVED] Mounting my usb-harddrive with ntfs-3g stopped working

USB drives can be formatted as NTFS but since you say Win7 doesn't like it, I would reformat it.

Offline

Board footer

Powered by FluxBB