Не получается примонтировать внешний USB-HDD с файловой системой NTFS в режиме чтение/запись
прошу помощи плиз
мои действия:
insmod /mnt/HD_a2/6/usb-storage.ko
dmesg
insmod /mnt/HD_a2/6/ntfs.ko
dmesg
sleep 15
mount -t auto /dev/sdc1 /mnt/HD_a2/usb_hdd -o rw
проверяю:
mount
dev/sdc1 on /mnt/HD_a2/usb_hdd type ntfs (
ro,noatime,nodiratime,uid=0,gid=0,fmask=0177,dmask=077,nls=iso8859-1,errors=continue,mft_zone_multiplier=1)
только чтение
Тут -> в архиве выложил usb-storage.ko и ntfs.ko
Лог:
insmod /mnt/HD_a2/6/usb-storage.ko
dmesg
Код:
Linux version 2.6.12.6-arm1 (tim@SWTEST2) (gcc version 3.3.3) #32 Wed Jun 24 15:19:48 CST 2009
CPU: ARM926EJ-Sid(wb) [41069260] revision 0 (ARMv5TEJ)
CPU0: D VIVT write-back cache
CPU0: I cache: 32768 bytes, associativity 1, 32 byte lines, 1024 sets
CPU0: D cache: 32768 bytes, associativity 1, 32 byte lines, 1024 sets
Machine: MV-88fxx81
Using UBoot passing parameters structure
Sys Clk = 166000000, Tclk = 166000000
Memory policy: ECC disabled, Data cache writeback
On node 0 totalpages: 16384
DMA zone: 16384 pages, LIFO batch:7
Normal zone: 0 pages, LIFO batch:1
HighMem zone: 0 pages, LIFO batch:1
Built 1 zonelists
Kernel command line: root=/dev/ram console=ttyS0,115200 :::DB88FXX81:egiga0:none
PID hash table entries: 512 (order: 9, 8192 bytes)
Console: colour dummy device 80x30
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 64MB 0MB 0MB 0MB = 64MB total
Memory: 55296KB available (2596K code, 463K data, 112K init)
Calibrating delay loop... 331.77 BogoMIPS (lpj=1658880)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
checking if image is initramfs...it isn't (no cpio magic); looks like an initrd
Freeing initrd memory: 6323K
NET: Registered protocol family 16
Marvell Development Board (LSP Version 1.7.6_NAS)-- RD-88F5182-NAS-2
Detected Tclk 166000000 and SysClk 166000000
Marvell USB EHCI Host controller #0: c0e49a40
Marvell USB EHCI Host controller #1: c0e49bc0
pexBarOverlapDetect: winNum 2 overlap current 0
mvPexInit:Warning :Bar 2 size is illigal
it will be disabled
please check Pex and CPU windows configuration
PCI: bus0: Fast back to back transfers enabled
PCI: bus1: Fast back to back transfers enabled
SCSI subsystem initialized
usbcore: registered new driver usbfs
usbcore: registered new driver hub
cesadev_init(c0012498)
Fast Floating Point Emulator V0.9 (c) Peter Teichmann.
inotify device minor=63
VFS: Disk quotas dquot_6.5.1
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
squashfs: version 3.3 (2007/10/31) Phillip Lougher
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
Initializing Cryptographic API
Serial: 8250/16550 driver $Revision: 1.1.1.1 $ 4 ports, IRQ sharing disabled
ttyS0 at MMIO 0x0 (irq = 3) is a 16550A
io scheduler noop registered
io scheduler deadline registered
RAMDISK driver initialized: 16 RAM disks of 10240K size 1024 blocksize
loop: loaded (max 8 devices)
Marvell Gigabit Ethernet Driver 'egiga':
o Ethernet descriptors in DRAM
o DRAM SW cache-coherency
o Checksum offload enabled
o Loading network interface 'egiga0'
Intergrated Sata device found
scsi0 : Marvell SCSI to SATA adapter
scsi1 : Marvell SCSI to SATA adapter
Vendor: WDC Model: WD15EARS-00Z5B1 Rev: 80.0
Type: Direct-Access ANSI SCSI revision: 03
Vendor: Seagate Model: ST31500341AS Rev: CC1G
Type: Direct-Access ANSI SCSI revision: 03
Attached scsi generic sg0 at scsi0, channel 0, id 0, lun 0, type 0
Attached scsi generic sg1 at scsi1, channel 0, id 0, lun 0, type 0
physmap flash device: 800000 at ff800000
phys_mapped_flash: Found 1 x16 devices at 0x0 in 8-bit bank
Amd/Fujitsu Extended Query Table at 0x0040
number of CFI chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
cmdlinepart partition parsing not available
RedBoot partition parsing not available
Using physmap partition definition
Creating 5 MTD partitions on "phys_mapped_flash":
0x00000000-0x00010000 : "MTD1"
0x00010000-0x00020000 : "MTD2"
0x00020000-0x001a0000 : "Linux Kernel"
0x001a0000-0x007d0000 : "File System"
0x007d0000-0x00800000 : "u-boot"
ehci_platform ehci_platform.20865: EHCI Host Controller
ehci_platform ehci_platform.20865: new USB bus registered, assigned bus number 1
ehci_platform ehci_platform.20865: irq 17, io mem 0x00000000
ehci_platform ehci_platform.20865: park 0
ehci_platform ehci_platform.20865: USB 0.0 initialized, EHCI 1.00, driver 10 Dec 2004
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
ehci_platform ehci_platform.86401: EHCI Host Controller
ehci_platform ehci_platform.86401: new USB bus registered, assigned bus number 2
ehci_platform ehci_platform.86401: irq 12, io mem 0x00000000
ehci_platform ehci_platform.86401: park 0
ehci_platform ehci_platform.86401: USB 0.0 initialized, EHCI 1.00, driver 10 Dec 2004
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 1 port detected
ohci_hcd: 2004 Nov 08 USB 1.1 'Open' Host Controller (OHCI) Driver (PCI)
mice: PS/2 mouse device common for all mice
md: linear personality registered as nr 1
md: raid0 personality registered as nr 2
md: raid1 personality registered as nr 3
md: md driver 0.90.1 MAX_MD_DEVS=256, MD_SB_DISKS=27
device-mapper: 4.4.0-ioctl (2005-01-12) initialised: dm-devel@redhat.com
NET: Registered protocol family 2
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP established hash table entries: 4096 (order: 3, 32768 bytes)
TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
NET: Registered protocol family 1
NET: Registered protocol family 17
md: Autodetecting RAID arrays.
md: autorun ...
md: ... autorun DONE.
RAMDISK: Compressed image found at block 0
usb 1-1: new high speed USB device using ehci_platform and address 2
EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
VFS: Mounted root (ext2 filesystem).
Freeing init memory: 112K
MINIX-fs: mounting unchecked file system, running fsck is recommended.
MINIX-fs: mounting unchecked file system, running fsck is recommended.
MINIX-fs: mounting unchecked file system, running fsck is recommended.
SCSI device sda: 2930277168 512-byte hdwr sectors (1500302 MB)
SCSI device sda: drive cache: write back
SCSI device sda: 2930277168 512-byte hdwr sectors (1500302 MB)
SCSI device sda: drive cache: write back
sda: sda1 sda2 sda4
Attached scsi disk sda at scsi0, channel 0, id 0, lun 0
SCSI device sdb: 2930277168 512-byte hdwr sectors (1500302 MB)
SCSI device sdb: drive cache: write back
SCSI device sdb: 2930277168 512-byte hdwr sectors (1500302 MB)
SCSI device sdb: drive cache: write back
sdb: sdb1 sdb2 sdb4
Attached scsi disk sdb at scsi1, channel 0, id 0, lun 0
usbcore: registered new driver usblp
drivers/usb/class/usblp.c: v0.13: USB Printer Device Class driver
egiga0: mac address changed
egiga0: link down
egiga0: link up<5>, full duplex<5>, speed 100 Mbps<5>
MINIX-fs: mounting unchecked file system, running fsck is recommended.
Adding 530104k swap on /dev/sda1. Priority:-1 extents:1
Adding 530104k swap on /dev/sdb1. Priority:-2 extents:1
MINIX-fs: mounting unchecked file system, running fsck is recommended.
ext3: No journal on filesystem on sda4
EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
ext3: No journal on filesystem on sdb4
EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
ext3: No journal on filesystem on sda2
EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
ext3: No journal on filesystem on sdb2
EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
MINIX-fs: mounting unchecked file system, running fsck is recommended.
MINIX-fs: mounting unchecked file system, running fsck is recommended.
MINIX-fs: mounting unchecked file system, running fsck is recommended.
ext3: No journal on filesystem on sda2
EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
ext3: No journal on filesystem on sdb2
EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
ext3: No journal on filesystem on sda4
EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
ext3: No journal on filesystem on sdb4
EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
MINIX-fs: mounting unchecked file system, running fsck is recommended.
MINIX-fs: mounting unchecked file system, running fsck is recommended.
MINIX-fs: mounting unchecked file system, running fsck is recommended.
[b]Initializing USB Mass Storage driver...
scsi2 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 2
usb-storage: waiting for device to settle before scanning
usbcore: registered new driver usb-storage
USB Mass Storage support registered.[/b]
insmod /mnt/HD_a2/6/ntfs.kodmesgКод:
....
тоже что и в предыдущем dmesg +
NTFS driver 2.1.22 [Flags: R/W MODULE].
sleep 15mount -t auto /dev/sdc1 /mnt/HD_a2/usb_hdd -o rwmountКод:
rootfs on / type rootfs (rw)
/dev/root on / type ext2 (rw)
proc on /proc type proc (rw,nodiratime)
/dev/loop0 on /sys/crfs type squashfs (ro)
/dev/sda2 on /mnt/HD_a2 type ext2 (rw)
/dev/sdb2 on /mnt/HD_b2 type ext2 (rw)
/dev/sda4 on /mnt/HD_a4 type ext2 (rw)
/dev/sdb4 on /mnt/HD_b4 type ext2 (rw)
none on /proc/bus/usb type usbfs (rw)
devpts on /dev/pts type devpts (rw)
/dev/sda2 on /opt type ext2 (rw)
/dev/sdc1 on /mnt/HD_a2/usb_hdd type ntfs (ro,noatime,nodiratime,uid=0,gid=0,fmask=0177,dmask=077,nls=iso8859-1,errors=continue,mft_zone_multiplier=1)
Дополнительно, не знаю нужно ли это:
fdisk -lКод:
Disk /dev/sda: 1500.3 GB, 1500301910016 bytes
255 heads, 63 sectors/track, 182401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 1 66 530113+ 82 Linux swap
/dev/sda2 131 182401 1464091807+ 83 Linux
/dev/sda4 67 130 514080 83 Linux
Partition table entries are not in disk order
Disk /dev/sdb: 1500.3 GB, 1500301910016 bytes
255 heads, 63 sectors/track, 182401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 1 66 530113+ 82 Linux swap
/dev/sdb2 131 182401 1464091807+ 83 Linux
/dev/sdb4 67 130 514080 83 Linux
Partition table entries are not in disk order
Disk /dev/sdc: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdc1 * 1 9729 78148161 7 HPFS/NTFS
lsusbКод:
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 002: ID 1058:0701 Western Digital Technologies, Inc.
Bus 001 Device 001: ID 0000:0000
lsmodКод:
Module Size Used by Not tainted
ntfs 181196 1
usb_storage 29956 1
usblp 10976 0
sd_mod 14484 10
cat /proc/partitionsКод:
major minor #blocks name
7 0 5744 loop0
31 0 64 mtdblock0
31 1 64 mtdblock1
31 2 1536 mtdblock2
31 3 6336 mtdblock3
31 4 192 mtdblock4
8 0 1465138584 sda
8 1 530113 sda1
8 2 1464091807 sda2
8 4 514080 sda4
8 16 1465138584 sdb
8 17 530113 sdb1
8 18 1464091807 sdb2
8 20 514080 sdb4
8 32 78150744 sdc
8 33 78148161 sdc1
df -hКод:
Filesystem Size Used Available Use% Mounted on
rootfs 9.7M 7.5M 1.7M 82% /
/dev/root 9.7M 7.5M 1.7M 82% /
/dev/loop0 5.6M 5.6M 0 100% /sys/crfs
/dev/sda2 1.3T 840.2G 534.2G 61% /mnt/HD_a2
/dev/sdb2 1.3T 1.3T 6.2G 100% /mnt/HD_b2
/dev/sda4 486.2M 23.0M 463.2M 5% /mnt/HD_a4
/dev/sdb4 486.2M 270.0k 485.9M 0% /mnt/HD_b4
/dev/sda2 1.3T 840.2G 534.2G 61% /opt
/dev/sdc1 74.5G 31.8G 42.7G 43% /mnt/HD_a2/usb_hdd
ls -lh /mnt/HD_a2/usb_hddКод:
dr-x------ 1 root root 0 Apr 13 23:20 AudioBooks
-r-------- 1 root root 9.5k Aug 21 11:04 Clear.bat
dr-x------ 1 root root 0 Apr 15 23:36 Downloads
dr-x------ 1 root root 12.0k Dec 10 2008 Games
dr-x------ 1 root root 8.0k Dec 10 2008 Music
dr-x------ 1 root root 16.0k Sep 21 2009 Pictures
dr-x------ 1 root root 8.0k Aug 21 12:26 Program Files
dr-x------ 1 root root 0 Aug 22 10:16 RECYCLER
dr-x------ 1 root root 8.0k Sep 21 2009 Soft
dr-x------ 1 root root 4.0k Aug 21 12:31 Soft_Ready
dr-x------ 1 root root 4.0k Aug 21 10:35 System Volume Information
dr-x------ 1 root root 4.0k Aug 22 10:16 Video
dr-x------ 1 root root 8.0k Aug 21 22:06 _Temp
dr-x------ 1 root root 0 Mar 12 2008 autorun
-r-------- 1 root root 36 Dec 7 2007 autorun.inf
а при использовании
umount /mnt/HD_a2/usb_hdd
девайс вообще перестает отвечать

и даже кнопкой тоже не выключается, остается только выдергивать кабель питания
т.е. чтобы размаунтить делаю reboot
и еще русские имена файлов и папок не видны!
P.S.
USB-Flash с файловой системой FAT монтируются и размонтируются на ура
плиз хелп
СПС!