|
|
发表于 2010-6-12 11:52:26
|
显示全部楼层
samba显示不出来可能是workgroup不一样导致的,dlink默认设置的workgroup是mshome。使用按键控制无线网 ...2 N2 V( A1 l" O$ \( i1 u
11210 发表于 2010-6-11 22:52  ( Q; c% Q- d( Z7 m1 t; n
+ p; d$ s# q) r l% S! r
! W. M! @! S, m/ [* R5 D samba不会自动显示的问题改成mshome后好像解决了。然后就看到楼下你解释的无法挂在USB的原因。这才注意到果然每次开机后只能挂载两次USB,一次是sda1,一次是sdb1,再挂载就不识别了。这个问题在RU1.16这些版本中好像也不存在的。我特意又刷回了RU1.16(更早之前刷的是RU2.04,与1.16基本相同),插拔了五六次USB都没问题。期间一直在SecureCRT中观察,发现操作过程如下:
( ]4 q, C# ?& L% y R1 v7 _) ^ a# r5 A
usb 1-1: new high speed USB device using address 3
( Y, Q2 F* Z) ~; @ q( V* [6 H, yscsi1 : SCSI emulation for USB Mass Storage devices/ P( Z7 r* M; n/ R/ P$ u9 X7 l1 y9 z
Vendor: aigo Model: USB DISK Rev: 1100
/ d, R; p+ h, L5 y' }* q Type: Direct-Access ANSI SCSI revision: 02
4 Z. q. u$ M+ p6 D( [0 ]# KSCSI device sda: 506880 512-byte hdwr sectors (260 MB)2 U" J* F+ O6 @$ U
sda: assuming Write Enabled& W1 H# @- }! ]; ~7 O: u2 \
sda: assuming drive cache: write through6 }6 Y; l( c! C4 S6 s' L
sda: sda1* O$ o' X3 F4 ]" u. J
Attached scsi removable disk sda at scsi1, channel 0, id 0, lun 0' y/ u8 j+ i, g2 C- c
USB Mass Storage device found at 3
; v& z; p* A. Z7 G3 M/ c- F( Nhotplug: mkdir -p /mnt/usb/usb1_1_1
! ^/ @% U: p+ @6 Ihotplug: mount -t vfat /dev/sda1 /mnt/usb/usb1_1_1
% b/ @* s& x- N2 e1 zFAT: utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive!( v* O" h9 K; F5 ?$ D
hotplug: rm -rf /var/mountpoint&$ E+ X l3 z9 l1 x# ~) y1 z
usb 1-1: USB disconnect, address 3$ p: u5 O7 _ S( ^0 V7 Z6 k0 E
scsi1 (0:0): rejecting I/O to device being removed2 B8 D+ p4 q z# o
Buffer I/O error on device sda1, logical block 8192
) s6 E5 k3 l: N* l7 Zlost page write due to I/O error on sda1
* p. o: h* A6 R5 }5 _) j: VBuffer I/O error on device sda1, logical block 81932 r4 [& F! R" A, X( R8 Z9 l8 `# N
lost page write due to I/O error on sda1- f6 U$ a6 F' P
Buffer I/O error on device sda1, logical block 8194# ~ @& M7 ]) X! n: P
lost page write due to I/O error on sda1
6 ~) L9 Z2 u6 x$ j: n. ^1 AFail to open /var/3g/wanup6 E ^" l, o# D- C! f: U% u6 b7 p6 F4 C, R
Fail to open /var/3g/wanup
9 o- D- j; Q/ E% N. `hotplug: cd /var; `7 t' {2 t3 i
hotplug: umount /mnt/usb/usb1_1_1
8 w$ {7 A- Z$ I0 v- @) z+ {7 x5 U# @scsi1 (0:0): rejecting I/O to dead device
' U2 Q& V* O; M, a, eFAT bread failed in fat_clusters_flush
4 X6 x/ D7 U e& n1 I9 \8 h- U ghotplug: rm -rf /mnt/usb/usb1_1_14 u; i+ r$ d6 _" n7 C- b
hotplug: cd /var
0 G5 h) v' ?( M, C( Mhotplug: umount /mnt/usb/usb1_1_14 [% c6 B$ U: u7 ]2 k4 p Y
hotplug: rm -rf /mnt/usb/usb1_1_1
$ j) P n3 m- x/ K1 Z! qhotplug: rm -rf /var/mountpoint&/ q8 ], m# e1 F$ P' |: ^% ?
, y+ Q) r7 L9 u- Y! [
; J' c X& E3 }% K1 d! Q+ `其中变化的只有usb 1-1: new high speed USB device using address 3,这个address 3是从2开始的,每次依次递加1.后面的USB Mass Storage device found at 3,这个3即address,还有usb 1-1: USB disconnect, address 3。这是一处。
+ ?3 j% G. F. A" Y( g# y另一处就是scsi1 : SCSI emulation for USB Mass Storage devices。scsi从0开始每次递加1.
3 ^- Q, J0 R% u- c, x但U盘每次都挂载成sda1,并最后挂载在usb1_1_1文件夹。你的好像是第一次挂载成sda1,第二次挂载成sdb1吧,且直接就以此放到了samba中,又由于无法释放,导致第二次插u盘samba里就会出现sda1和sdb1两个文件夹,且sda1为空。之前用你的固件的时候忘了在secureCRT里看看过程了。我对linux只知皮毛,给你参考一下吧。 |
|