數位天堂

Nokia:科技始終來自於人性; 拜耳:如果文明不能使我們更相愛,那科技便失去意義!
歡迎您的加入,讓我們一起討論科技與環保的整合應用...

您尚未登入。

#1 2010-03-27 00:29:17

kukat
新生
註冊日期: 2010-03-03
文章數: 10
目前積分 :   

奇怪的問題,為什麼 DD-WRT 只識別到一個 partition?

按照官方wiki裡的方法把我的80G USB-HD分成了4個 partition http://www.dd-wrt.com/wiki/index.php/Ho … age_Device

http://aiyaya.info/screenshot_001.png

在我的 linux 裡可以看到4個 partition,但在 DD-WRT 就只有這樣

root@RT-N16:~# ls -l /dev/scsi/host0/bus0/target0/lun0/ brw------- 1 root root 8, 0 Jan 1 1970 disc brw------- 1 root root 8, 1 Jan 1 1970 part1


/dev/scsi/host0/bus0/target0/lun0/part2
/dev/scsi/host0/bus0/target0/lun0/part3
/dev/scsi/host0/bus0/target0/lun0/part4

哪裡去了?

貼上dmesg

root@RT-N16:~# dmesg Linux version 2.6.24.111 (eko@dd-wrt) (gcc version 4.1.2) #352 Sat Jan 2 13:28:35 CET 2010 CPU revision is: 00019740 Determined physical RAM map: memory: 07fff000 @ 00000000 (usable) On node 0 totalpages: 32767 Normal zone: 255 pages used for memmap Normal zone: 0 pages reserved Normal zone: 32512 pages, LIFO batch:7 Movable zone: 0 pages used for memmap Built 1 zonelists in Zone order. Total pages: 32512 Kernel command line: console=ttyS0,115200 root=1f02 rootfstype=squashfs noinitrd Primary instruction cache 32kB, physically tagged, 4-way, linesize 32 bytes. Primary data cache 32kB, 4-way, linesize 32 bytes. Synthesized TLB refill handler (20 instructions). Synthesized TLB load handler fastpath (32 instructions). Synthesized TLB store handler fastpath (32 instructions). Synthesized TLB modify handler fastpath (31 instructions). PID hash table entries: 512 (order: 9, 2048 bytes) CPU: BCM4716 rev 1 at 480 MHz Using 240.000 MHz high precision timer. console [ttyS0] enabled Dentry cache hash table entries: 16384 (order: 4, 65536 bytes) Inode-cache hash table entries: 8192 (order: 3, 32768 bytes) Memory: 124700k/131068k available (3112k kernel code, 6228k reserved, 1479k data, 144k init, 0k highmem) Calibrating delay loop... 239.20 BogoMIPS (lpj=1196032) Mount-cache hash table entries: 512 NET: Registered protocol family 16 Generic PHY: Registered new driver PCI: Using membase 8000000 PCI: Initializing host PCI: Reset RC PCI: Fixing up bus 0 PCI: Fixing up bridge PCI: Setting latency timer of device 0000:01:00.0 to 64 PCI: Fixing up bridge PCI: Setting latency timer of device 0000:01:00.1 to 64 PCI: Enabling device 0000:01:00.1 (0004 -> 0006) PCI: Fixing up bus 1 NET: Registered protocol family 2 Time: MIPS clocksource has been installed. IP route cache hash table entries: 1024 (order: 0, 4096 bytes) 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) TCP reno registered RT-N16 GPIO Init devfs: 2004-01-31 Richard Gooch (rgooch@atnf.csiro.au) devfs: boot_options: 0x1 squashfs: version 3.0 (2006/03/15) Phillip Lougher io scheduler noop registered io scheduler deadline registered (default) HDLC line discipline: version $Revision: 4.8 $, maxframe=4096 N_HDLC line discipline registered. Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled serial8250: ttyS0 at MMIO 0x0 (irq = 8) is a 16550A PPP generic driver version 2.4.2 PPP Deflate Compression module registered PPP BSD Compression module registered MPPE/MPPC encryption/compression module registered NET: Registered protocol family 24 PPPoL2TP kernel driver, V1.0 tun: Universal TUN/TAP device driver, 1.6 tun: (C) 1999-2004 Max Krasnyansky PCI: Setting latency timer of device 0000:00:02.0 to 64 bcm_robo_attach: Using external reset in gpio pin 11 bcm_robo_attach: devid read succesfully via mii: 0x3115 bcm_robo_attach: mii access to switch works bcm_robo_attach: devid: 0x3115 VID 0 is set in nvram, Ignoring eth0: Broadcom BCM47XX 10/100/1000 Mbps Ethernet Controller 5.10.56.27 PCI: Setting latency timer of device 0000:00:01.0 to 64 Physically mapped flash: Found 1 x16 devices at 0x0 in 8-bit bank Amd/Fujitsu Extended Query Table at 0x0040 Physically mapped flash: CFI does not contain boot bank location. Assuming top. number of CFI chips: 1 cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness. Flash device: 0x2000000 at 0x1c000000 bootloader size: 262144 Physically mapped flash: Filesystem type: squashfs, size=0x59d0f2 partition size = 5991424 Creating 5 MTD partitions on "Physically mapped flash": 0x00000000-0x00040000 : "cfe" 0x00040000-0x01fe0000 : "linux" 0x00189400-0x00740000 : "rootfs" mtd: partition "rootfs" doesn't start on an erase block boundary -- force read-only 0x01fe0000-0x02000000 : "nvram" 0x00740000-0x01fe0000 : "ddwrt" Found a 0MB serial flash sflash: found no supported devices Broadcom Watchdog Timer: 0.07 initialized. u32 classifier Actions configured Netfilter messages via NETLINK v0.30. nf_conntrack version 0.5.0 (2048 buckets, 8192 max) ctnetlink v0.93: registering with nfnetlink. IPv4 over IPv4 tunneling driver GRE over IPv4 tunneling driver ip_tables: (C) 2000-2006 Netfilter Core Team ClusterIP Version 0.8 loaded successfully TCP bic registered TCP cubic registered TCP westwood registered TCP highspeed registered TCP hybla registered TCP htcp registered TCP vegas registered TCP scalable registered NET: Registered protocol family 1 NET: Registered protocol family 17 Welcome to PF_RING 3.2.1 (C) 2004-06 L.Deri NET: Registered protocol family 27 PF_RING: bucket length 128 bytes PF_RING: ring slots 4096 PF_RING: sample rate 1 [1=no sampling] PF_RING: capture TX No [RX only] PF_RING: transparent mode Yes PF_RING initialized correctly. PF_RING: registered /proc/net/pf_ring/ 802.1Q VLAN Support v1.8 Ben Greear All bugs added by David S. Miller decode 1f02 VFS: Mounted root (squashfs filesystem) readonly. Mounted devfs on /dev Freeing unused kernel memory: 144k freed usbcore: registered new interface driver usbfs usbcore: registered new interface driver hub usbcore: registered new device driver usb USB20H mdio control register : 0x8000000c PCI: Setting latency timer of device 0000:00:04.1 to 64 ehci_hcd 0000:00:04.1: EHCI Host Controller ehci_hcd 0000:00:04.1: new USB bus registered, assigned bus number 1 ehci_hcd 0000:00:04.1: irq 5, io mem 0x18004000 ehci_hcd 0000:00:04.1: USB 0.0 started, EHCI 1.00, driver 10 Dec 2004 usb usb1: configuration #1 chosen from 1 choice hub 1-0:1.0: USB hub found hub 1-0:1.0: 2 ports detected SCSI subsystem initialized Initializing USB Mass Storage driver... usb 1-2: new high speed USB device using ehci_hcd and address 2 usb 1-2: configuration #1 chosen from 1 choice scsi0 : SCSI emulation for USB Mass Storage devices usbcore: registered new interface driver usb-storage USB Mass Storage support registered. usb-storage: device found at 2 usb-storage: waiting for device to settle before scanning br0: Dropping NETIF_F_UFO since no NETIF_F_HW_CSUM feature. Algorithmics/MIPS FPU Emulator v1.5 device vlan1 entered promiscuous mode device eth0 entered promiscuous mode device eth1 entered promiscuous mode br0: port 2(eth1) entering learning state br0: port 1(vlan1) entering learning state scsi 0:0:0:0: Direct-Access Generic USB Disk 9.02 PQ: 0 ANSI: 2 sd 0:0:0:0: [sda] 156301488 512-byte hardware sectors (80026 MB) sd 0:0:0:0: [sda] Write Protect is off sd 0:0:0:0: [sda] Mode Sense: 03 00 00 00 sd 0:0:0:0: [sda] Assuming drive cache: write through sd 0:0:0:0: [sda] 156301488 512-byte hardware sectors (80026 MB) sd 0:0:0:0: [sda] Write Protect is off sd 0:0:0:0: [sda] Mode Sense: 03 00 00 00 sd 0:0:0:0: [sda] Assuming drive cache: write through /dev/scsi/host0/bus0/target0/lun0: p1 sd 0:0:0:0: [sda] Attached SCSI disk usb-storage: device scan complete br0: topology change detected, propagating br0: port 2(eth1) entering forwarding state br0: topology change detected, propagating br0: port 1(vlan1) entering forwarding state device vlan2 entered promiscuous mode device vlan2 left promiscuous mode etherip: Ethernet over IPv4 tunneling driver IMQ starting with 2 devices... IMQ driver loaded successfully. Hooking IMQ before NAT on PREROUTING. Hooking IMQ after NAT on POSTROUTING. IMQ driver unloaded successfully. IMQ starting with 2 devices... IMQ driver loaded successfully. Hooking IMQ before NAT on PREROUTING. Hooking IMQ after NAT on POSTROUTING. root@RT-N16:~#




最後修改: kukat (2010-03-27 00:48:57)


離線

 

#2 2010-03-27 00:51:26

Aven
天使
來自: 數位天堂
註冊日期: 2007-07-15
文章數: 2266
網站

Re: 奇怪的問題,為什麼 DD-WRT 只識別到一個 partition?

在 DD-WRT 下您用什麼指令看partition?
試試用 fdisk -l




技術問題請於論壇上集眾人之力公開討論,感恩 thankgod

離線

 

#3 2010-03-27 13:29:36

kukat
新生
註冊日期: 2010-03-03
文章數: 10
目前積分 :   

Re: 奇怪的問題,為什麼 DD-WRT 只識別到一個 partition?

因為DD-WRT沒有fdisk指令, 我只能 ls -l /dev/scsi/host0/bus0/target0/lun0/ 查看 device


離線

 

#4 2010-03-27 14:38:07

kukat
新生
註冊日期: 2010-03-03
文章數: 10
目前積分 :   

Re: 奇怪的問題,為什麼 DD-WRT 只識別到一個 partition?

換了另外一個硬盤,同樣的分區,只是把 swap 分區給了 256MB。 這次就能識別到4個 partition了,不知道是硬盤的問題還是硬盤盒的問題,或者是swap分區的問題?。。。不懂。。。
reboot router,用自動掛載腳本也掛載成功。
當然還要等optware安裝後才能mount swap

最後修改: kukat (2010-03-27 14:41:48)


離線

 

友情連結

論壇頁尾

Powered by PunBB
© Copyright 2018 Rickard Andersson
RSS Feed