Re: HOWTO: NTFS with read/write support using ntfs-3g (easy method)
Hi, has this thread dicussed how to automatically mount (with ntfs-3g instead of ntfs) LUKS encrypted USB keys that are NTFS-formatted? I searched the thread for luks and cryptsetup but only found the output of some pmount command. Mounting an NTFS-formatted USB key (without LUKS) works flawless here on my Edgy thanks to ntfs-3g (which is based on this thread). Unfortunately when I use LUKS ntfs is used to mount the key. Any hint on what to change so that ntfs-3g is used?
Re: HOWTO: NTFS with read/write support using ntfs-3g (easy method)
Hum can't really help on that since i know idea how works LUKS encrypted USB keys, but you may try :
Code:
pmount -t ntfs-3g /dev/sda1
to know where is the problem (also adjust sda1 for you need)
Re: HOWTO: NTFS with read/write support using ntfs-3g (easy method)
Quote:
Originally Posted by
shoaibi
If no then tell me how to convert 100GB Compressed NTFS files with no risk of data loss into FAT. [don't ever tell me using Norton Partition Magic]
1) Buy an external 250Gb drive.
2) Format it to have VFAT partitions (I don't remember what the largest VFAT partition size is).
3) Copy your files across.
4) Junk the 100Gb drive. If the files are compressed and filling it, you need a bigger drive.
Re: HOWTO: NTFS with read/write support using ntfs-3g (easy method)
Quote:
Originally Posted by
givré
qpieus, hum check the volume. What is the filesystem of this volume ?
the usb stick and the ipod are vfat (fat32).
Re: HOWTO: NTFS with read/write support using ntfs-3g (easy method)
Quote:
Originally Posted by
qpieus
the usb stick and the ipod are vfat (fat32).
Check it unmounted like that :
Code:
fsck.vfat -va /dev/sda1
Also, look at man fsck.vfat for more option.
Re: HOWTO: NTFS with read/write support using ntfs-3g (easy method)
Quote:
Originally Posted by
givré
Check it unmounted like that :
Code:
fsck.vfat -va /dev/sda1
Also, look at man fsck.vfat for more option.
Quote:
fsck.vfat -va /dev/sdf1
dosfsck 2.11 (12 Mar 2005)
dosfsck 2.11, 12 Mar 2005, FAT32, LFN
Checking we can access the last sector of the filesystem
Boot sector contents:
System ID "MSDOS5.0"
Media byte 0xf8 (hard disk)
512 bytes per logical sector
4096 bytes per cluster
32 reserved sectors
First FAT starts at byte 16384 (sector 32)
2 FATs, 32 bit entries
989184 bytes per FAT (= 1932 sectors)
Root directory start at cluster 2 (arbitrary size)
Data area starts at byte 1994752 (sector 3896)
247189 data clusters (1012486144 bytes)
63 sectors/track, 255 heads
32 hidden sectors
1981408 sectors total
Reclaiming unconnected clusters.
Checking free cluster summary.
/dev/sdf1: 77 files, 3791/247189 clusters
There doesn't seems to be any errors?
Here's dmesg from when I plugged in the usb stick. It's a little different from the dmesg the ipod produced (that i posted a couple days ago).
Code:
[17182835.900000] usb 2-3: new high speed USB device using ehci_hcd and address 5
[17182836.036000] scsi7 : SCSI emulation for USB Mass Storage devices
[17182836.036000] usb-storage: device found at 5
[17182836.036000] usb-storage: waiting for device to settle before scanning
[17182841.036000] Vendor: LEXAR Model: JUMPDRIVE SECURE Rev: 3000
[17182841.036000] Type: Direct-Access ANSI SCSI revision: 00
[17182841.044000] SCSI device sdf: 1981440 512-byte hdwr sectors (1014 MB)
[17182841.044000] sdf: Write Protect is off
[17182841.044000] sdf: Mode Sense: 43 00 00 00
[17182841.044000] sdf: assuming drive cache: write through
[17182841.052000] SCSI device sdf: 1981440 512-byte hdwr sectors (1014 MB)
[17182841.052000] sdf: Write Protect is off
[17182841.052000] sdf: Mode Sense: 43 00 00 00
[17182841.052000] sdf: assuming drive cache: write through
[17182841.052000] sdf: sdf1
[17182841.196000] sd 7:0:0:0: Attached scsi removable disk sdf
[17182841.196000] sd 7:0:0:0: Attached scsi generic sg5 type 0
[17182841.200000] usb-storage: device scan complete
There doesn't seem to be anything wrong there, and yet I get the same error in konqueror when the device tries to suto mount.
Re: HOWTO: NTFS with read/write support using ntfs-3g (easy method)
qpeius and i cant't do that.....
Re: HOWTO: NTFS with read/write support using ntfs-3g (easy method)
shoaibi, did you get it working read only at least ?
qpieus, have a look there :
https://help.ubuntu.com/community/DebuggingUSBStorage
Re: HOWTO: NTFS with read/write support using ntfs-3g (easy method)
Quote:
Originally Posted by
givré
Hum can't really help on that since i know idea how works LUKS encrypted USB keys, but you may try :
Code:
pmount -t ntfs-3g /dev/sda1
to know where is the problem (also adjust sda1 for you need)
Thanks givré. The problem is not with pmount:
Code:
$ pmount -d -t ntfs-3g /dev/sdb1
resolved /dev/sdb1 to device /dev/sdb1
mount point to be used: /media/sdb1
no iocharset given, current locale encoding is UTF-8
locale encoding uses UTF-8, setting iocharset to 'utf8'
Cleaning lock directory /var/lock/pmount_dev_sdb1
device_whitelist: checking /etc/pmount.allow...
device_whitlisted(): nothing matched, returning 0
find_sysfs_device: looking for sysfs directory for device 8:17
find_sysfs_device: checking whether /dev/sdb1 is on /sys/block/dm-0 (254:0)
find_sysfs_device: checking whether /dev/sdb1 is on /sys/block/sdb (8:16)
find_sysfs_device: major device numbers match
find_sysfs_device: minor device numbers do not match, checking partitions...
find_sysfs_device: checking whether device /dev/sdb1 matches partition 8:16
find_sysfs_device: checking whether device /dev/sdb1 matches partition 8:17
find_sysfs_device: -> partition matches, belongs to block device /sys/block/sdb
device_removable: corresponding block device for /dev/sdb1 is /sys/block/sdb
get_blockdev_attr: value of /sys/block/sdb/removable == 1
policy check passed
spawnv(): executing /sbin/cryptsetup '/sbin/cryptsetup' 'isLuks' '/dev/sdb1'
spawn(): /sbin/cryptsetup terminated with status 0
spawnv(): executing /sbin/cryptsetup '/sbin/cryptsetup' 'luksOpen' '/dev/sdb1' '_dev_sdb1'
Enter LUKS passphrase:
spawn(): /sbin/cryptsetup terminated with status 0
locking mount point directory
mount point directory locked
filesystem is ntfs-3g. Setting locale to de_DE.UTF-8
spawnv(): executing /bin/mount '/bin/mount' '-t' 'ntfs-3g' '-o' 'nosuid,nodev,user,nonempty,async,atime,noexec,uid=1000,gid=1000,umask=077,locale=de_DE.UTF-8' '/dev/mapper/_dev_sdb1' '/media/sdb1'
spawn(): /bin/mount terminated with status 0
unlocking mount point directory
mount point directory unlocked
$ mount
[...]
/dev/mapper/_dev_sdb1 on /media/sdb1 type fuse (rw,nosuid,nodev,noexec,noatime,allow_other)
As a reference, here is the output when I don't specify ntfs-3g:
Code:
$ pmount -d /dev/sdb1
resolved /dev/sdb1 to device /dev/sdb1
mount point to be used: /media/sdb1
no iocharset given, current locale encoding is UTF-8
locale encoding uses UTF-8, setting iocharset to 'utf8'
Cleaning lock directory /var/lock/pmount_dev_sdb1
device_whitelist: checking /etc/pmount.allow...
device_whitlisted(): nothing matched, returning 0
find_sysfs_device: looking for sysfs directory for device 8:17
find_sysfs_device: checking whether /dev/sdb1 is on /sys/block/dm-0 (254:0)
find_sysfs_device: checking whether /dev/sdb1 is on /sys/block/sdb (8:16)
find_sysfs_device: major device numbers match
find_sysfs_device: minor device numbers do not match, checking partitions...
find_sysfs_device: checking whether device /dev/sdb1 matches partition 8:16
find_sysfs_device: checking whether device /dev/sdb1 matches partition 8:17
find_sysfs_device: -> partition matches, belongs to block device /sys/block/sdb
device_removable: corresponding block device for /dev/sdb1 is /sys/block/sdb
get_blockdev_attr: value of /sys/block/sdb/removable == 1
policy check passed
spawnv(): executing /sbin/cryptsetup '/sbin/cryptsetup' 'isLuks' '/dev/sdb1'
spawn(): /sbin/cryptsetup terminated with status 0
spawnv(): executing /sbin/cryptsetup '/sbin/cryptsetup' 'luksOpen' '/dev/sdb1' '_dev_sdb1'
Enter LUKS passphrase:
spawn(): /sbin/cryptsetup terminated with status 0
locking mount point directory
mount point directory locked
spawnv(): executing /bin/mount '/bin/mount' '-t' 'udf' '-o' 'nosuid,nodev,user,async,atime,noexec,uid=1000,gid=1000,umask=000,iocharset=utf8' '/dev/mapper/_dev_sdb1' '/media/sdb1'
spawn(): /bin/mount terminated with status 32
spawnv(): executing /bin/mount '/bin/mount' '-t' 'udf' '-o' 'nosuid,nodev,user,async,atime,noexec,uid=1000,gid=1000,umask=000' '/dev/mapper/_dev_sdb1' '/media/sdb1'
spawn(): /bin/mount terminated with status 32
spawnv(): executing /bin/mount '/bin/mount' '-t' 'iso9660' '-o' 'nosuid,nodev,user,async,atime,noexec,uid=1000,gid=1000,iocharset=utf8' '/dev/mapper/_dev_sdb1' '/media/sdb1'
spawn(): /bin/mount terminated with status 32
spawnv(): executing /bin/mount '/bin/mount' '-t' 'iso9660' '-o' 'nosuid,nodev,user,async,atime,noexec,uid=1000,gid=1000' '/dev/mapper/_dev_sdb1' '/media/sdb1'
spawn(): /bin/mount terminated with status 32
spawnv(): executing /bin/mount '/bin/mount' '-t' 'vfat' '-o' 'nosuid,nodev,user,quiet,shortname=mixed,async,atime,noexec,uid=1000,gid=1000,umask=077,iocharset=utf8' '/dev/mapper/_dev_sdb1' '/media/sdb1'
spawn(): /bin/mount terminated with status 32
spawnv(): executing /bin/mount '/bin/mount' '-t' 'vfat' '-o' 'nosuid,nodev,user,quiet,shortname=mixed,async,atime,noexec,uid=1000,gid=1000,umask=077' '/dev/mapper/_dev_sdb1' '/media/sdb1'
spawn(): /bin/mount terminated with status 32
spawnv(): executing /bin/mount '/bin/mount' '-t' 'ntfs' '-o' 'nosuid,nodev,user,async,atime,noexec,uid=1000,gid=1000,umask=077,iocharset=utf8' '/dev/mapper/_dev_sdb1' '/media/sdb1'
spawn(): /bin/mount terminated with status 0
unlocking mount point directory
mount point directory unlocked
$ mount
[...]
/dev/mapper/_dev_sdb1 on /media/sdb1 type ntfs (rw,noexec,nosuid,nodev,uid=1000,gid=1000,umask=077,iocharset=utf8)
So who calls pmount? gnome-volume-manager? Where could I override ntfs with ntfs-3g? Come on, it's linux, there must be a config file ;).
Re: HOWTO: NTFS with read/write support using ntfs-3g (easy method)
gvm call pmount-hal, which will choose the fs according to what suggest hal.
Since my patched package provide an hal rule to choose ntfs-3g for ntfs, pmount-hal would choose ntfs-3g automatically. What give u :
Code:
pmount-hal /dev/sda1
Also, cheek that the hal rule is there :
For dapper : /usr/share/hal/fdi/policy/10osvendor/15-ntfs-policy.fdi
For edgy : /etc/hal/fdi/policy/15-ntfs-policy.fdi