mtchang / rt-n56u

Automatically exported from code.google.com/p/rt-n56u
0 stars 0 forks source link

NTFS harddrive is not working properly for Entware #962

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Enable Entware in the web UI.
2.Plugin freshly formatted NTFS external hard drive with 1 NTFS partition 
(maybe USB flash is ok, but didn't try) with empty /opt directory freshly 
created.
3.Go to console and install just 'less' (opkg install less)
4.Execute less from command line(it's working ok)
5.Do either a
  I) Router reboot
  II) Usb drive re-connect
  III) Remount drive from command line. I use the following commands:
umount /opt
umount /media/<HARD_DRIVE_LABEL>

mount -t ufsd /dev/sda1 /media/<HARD_DRIVE_LABEL>-o sparse,force,noatime
mount -o bind /media/<HARD_DRIVE_LABEL/opt/ /opt

6.Execute less. 

Expected results - less is working as before.

Actual result: -sh: less: Input/output error

Extract from logs:

Aug 28 16:17:26 kernel: usb 1-2: USB disconnect, device number 2
Aug 28 16:23:38 kernel: usb 1-1: new high-speed USB device number 3 using 
rt3xxx-ehci
Aug 28 16:23:38 kernel: usb 1-1: New USB device found, idVendor=1058, 
idProduct=1042
Aug 28 16:23:38 kernel: usb 1-1: Product: Elements 1042
Aug 28 16:23:38 kernel: usb 1-1: Manufacturer: Western Digital
Aug 28 16:23:38 kernel: usb 1-1: SerialNumber: 575832314139323130353039
Aug 28 16:23:38 kernel: scsi1 : usb-storage 1-1:1.0
Aug 28 16:23:41 kernel: scsi 1:0:0:0: Direct-Access     WD       Elements 1042  
  1019 PQ: 0 ANSI: 6
Aug 28 16:23:41 kernel: sd 1:0:0:0: [sda] Spinning up disk...
Aug 28 16:23:41 kernel: sd 1:0:0:0: Attached scsi generic sg0 type 0
Aug 28 16:23:41 usb_modeswitch: no rule for device 1058:1042
Aug 28 16:23:44 kernel: ...ready
Aug 28 16:23:44 kernel: sd 1:0:0:0: [sda] 1465143296 512-byte logical blocks: 
(750 GB/698 GiB)
Aug 28 16:23:44 kernel: sd 1:0:0:0: [sda] Write Protect is off
Aug 28 16:23:44 kernel: sd 1:0:0:0: [sda] Mode Sense: 47 00 10 08
Aug 28 16:23:45 kernel: sd 1:0:0:0: [sda] No Caching mode page present
Aug 28 16:23:45 kernel: sd 1:0:0:0: [sda] Assuming drive cache: write through
Aug 28 16:23:45 kernel: sd 1:0:0:0: [sda] No Caching mode page present
Aug 28 16:23:45 kernel: sd 1:0:0:0: [sda] Assuming drive cache: write through
Aug 28 16:23:45 kernel:  sda: sda1
Aug 28 16:23:45 kernel: sd 1:0:0:0: [sda] No Caching mode page present
Aug 28 16:23:45 kernel: sd 1:0:0:0: [sda] Assuming drive cache: write through
Aug 28 16:23:45 kernel: sd 1:0:0:0: [sda] Attached SCSI disk
Aug 28 16:23:45 kernel: ufsd: use builtin utf8
Aug 28 16:23:47 kernel: ufsd: sda1 without journal
Aug 28 16:23:47 opt-mount.sh: started [/dev/sda1 /media/Elements]
Aug 28 16:23:47 Entware: Installing entware opkg....
Aug 28 16:23:47 Entware: Checking for prerequisites and creating folders...
Aug 28 16:23:48 Entware: Opkg package manager deployment...
Aug 28 16:23:48 Entware: Downloading opkg...
Aug 28 16:23:49 Entware: SUCCESS!
Aug 28 16:23:49 Entware: Downloading opkg.conf...
Aug 28 16:23:49 Entware: SUCCESS!
Aug 28 16:23:49 Entware: Basic packages installation...
Aug 28 16:23:49 Entware: Updating opkg packages list...
Aug 28 16:23:50 Entware: SUCCESS!
Aug 28 16:23:50 Entware: Installing uclibc-opt...
Aug 28 16:23:57 Entware: SUCCESS!
Aug 28 16:23:57 Entware: Congratulations!
Aug 28 16:23:57 Entware: If there are no errors above then Entware successfully 
initialized.
Aug 28 16:23:57 Entware: Found a Bug? Please report at 
wl500g-repo.googlecode.com
Aug 28 16:25:56 kernel: ufsd: use builtin utf8
Aug 28 16:25:58 kernel: ufsd: sda1 without journal

Original issue reported on code.google.com by DanilaGa...@gmail.com on 28 Aug 2013 at 12:44

GoogleCodeExporter commented 9 years ago
It seems that ntfs is working only from the first installation. 
Every subsequent remount causes this problem :-(

Original comment by DanilaGa...@gmail.com on 28 Aug 2013 at 12:46

GoogleCodeExporter commented 9 years ago
Paragon NTFS driver not supported symlinks. Entware not worked w/o symlinks. 

Use Ext2/3/4 or XFS.

Original comment by andy.pad...@gmail.com on 28 Aug 2013 at 7:28

GoogleCodeExporter commented 9 years ago
I see :-( Is it possible to have 2 partitions: 1 with Ext4 and 2nd with NTFS, 
and place all of the Entware thereon Ext4 partition?

Original comment by DanilaGa...@gmail.com on 28 Aug 2013 at 8:09

GoogleCodeExporter commented 9 years ago
Maybe it would be possible to use ntfs-3g? It seems that advanced version 
supports symlinks: http://www.tuxera.com/community/ntfs-3g-advanced/

Original comment by DanilaGa...@gmail.com on 28 Aug 2013 at 8:12

GoogleCodeExporter commented 9 years ago
NTFS-3G is very slow (down to 3x) and high CPU usage (bacause userspace mode).

Original comment by andy.pad...@gmail.com on 29 Aug 2013 at 7:29

GoogleCodeExporter commented 9 years ago
Yes, you can use 2 or more partitions with any supported FS

Original comment by Dr.Sydorenko.O on 29 Aug 2013 at 7:35

GoogleCodeExporter commented 9 years ago
Great! What is a recommended size for the Entware partition?

Original comment by DanilaGa...@gmail.com on 29 Aug 2013 at 8:38

GoogleCodeExporter commented 9 years ago
I use Flash Drive 8Gb (you may see it on images in WiKi).
The directory /opt has a size of about 80 MB in my router.

Original comment by Dr.Sydorenko.O on 29 Aug 2013 at 3:18

GoogleCodeExporter commented 9 years ago
Also, if you plan to use Transmission with NTFS, you can download files to EXT4 
partition and after move its to NTFS drive (transmission muse .incomplete 
directory).

Original comment by Dr.Sydorenko.O on 29 Aug 2013 at 3:20

GoogleCodeExporter commented 9 years ago
Thank you :-)

But I assume i can place the even incomplete files directly on NTFS volume? In 
worst case i can create symlink from .incomplete directory to NTFS folder.

Original comment by DanilaGa...@gmail.com on 29 Aug 2013 at 7:31

GoogleCodeExporter commented 9 years ago
If you can read russian: http://forum.ixbt.com/topic.cgi?id=14:58751:1677#1677

If you don't read russian text I can translate it for you

Original comment by Dr.Sydorenko.O on 30 Aug 2013 at 1:10

GoogleCodeExporter commented 9 years ago
Да нее, все понятно, спасибо :-)

Original comment by DanilaGa...@gmail.com on 30 Aug 2013 at 2:03

GoogleCodeExporter commented 9 years ago
https://code.google.com/p/rt-n56u/issues/detail?id=962#c2

Original comment by Dr.Sydorenko.O on 1 Sep 2013 at 6:03