WL-500GPv2 - mount isn't working for me

Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Broadcom SoC based Hardware
Author Message
doubleyouaretee
DD-WRT Novice


Joined: 31 Aug 2009
Posts: 2

PostPosted: Mon Aug 31, 2009 22:36    Post subject: WL-500GPv2 - mount isn't working for me Reply with quote
I'm trying to mount:
Partition 1 as Optware
2 as swap space
3 as jffs2
4 as storage

part4 has been auto-mounted by the GUI it seems, but I can't seem to get the others mounted.
EDIT:
I tried to follow the GUI page's source to trace the commands the GUI issues to get this partition mounted, but I can't figure it out... Anyone know how to?

I've tried different mount ideas from the wiki, also bind, but none of them seem to work...

Anyone have any ideas what could be wrong?

EDIT:
The USB key's LED flashes when I issue the mount command, so something is happening



---------------------------------------------------------------------

Router Model Asus WL-500G Premium V2
Firmware Version DD-WRT v24-sp2 (08/19/09) mini-usb-ftp - build 12672

Using 16GB Flash USB drive...

---------------------------------------------------------------------

Pasted from USB section in GUI:

--- /dev/discs/disc0/disc
Block device, size 14.94 GiB (16039018496 bytes)
DOS/MBR partition map

Partition 1: 1.999 GiB (2146765824 bytes, 4192902 sectors from 63)
Type 0x83 (Linux)
Ext2 file system
UUID E24E3E73-E6BB-46B3-A724-1D3FFEBF2822 (DCE, v4)
Volume size 1.999 GiB (2146762752 bytes, 524112 blocks of 4 KiB)

Partition 2: 258.9 MiB (271434240 bytes, 530145 sectors from 4192965)
Type 0x82 (Linux swap / Solaris)
Linux swap, version 2, subversion 1, 4 KiB pages, little-endian
Swap size 258.9 MiB (271425536 bytes, 66266 pages of 4 KiB)

Partition 3: 1.999 GiB (2146798080 bytes, 4192965 sectors from 4723110)
Type 0x83 (Linux)
Ext2 file system
UUID F23C065C-B555-49DC-9B82-9F3618B7A5FC (DCE, v4)
Volume size 1.999 GiB (2146795520 bytes, 524120 blocks of 4 KiB)

Partition 4: 10.68 GiB (11466040320 bytes, 22394610 sectors from 8916075)
Type 0x0B (Win95 FAT32)
FAT32 file system (hints score 5 of 5)
Volume size 10.67 GiB (11454832640 bytes, 1398295 clusters of 8 KiB)
Volume name ""
Status: Mounted on /mnt

---------------------------------------------------------------------

root@DD-WRT:/# 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
brw------- 1 root root 8, 2 Jan 1 1970 part2
brw------- 1 root root 8, 3 Jan 1 1970 part3
brw------- 1 root root 8, 4 Jan 1 1970 part4


root@DD-WRT:/# mount
rootfs on / type rootfs (rw)
/dev/root on / type squashfs (ro)
none on /dev type devfs (rw)
proc on /proc type proc (rw)
ramfs on /tmp type ramfs (rw)
/dev/discs/disc0/part4 on /mnt type vfat (rw)
/dev/mtdblock/4 on /jffs type jffs2 (rw)


root@DD-WRT:/# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/root 2432 2432 0 100% /
/dev/discs/disc0/part4
11186360 16 11186344 0% /mnt
/dev/mtdblock/4 4736 388 4348 8% /jffs


-------------------------------------------------------------------
(note: I removed auto-mount from the gui before this output...)

root@DD-WRT:~# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/root 2432 2432 0 100% /
/dev/mtdblock/4 4736 388 4348 8% /jffs

root@DD-WRT:~# mount /dev/scsi/host0/bus0/target0/lun0/part1 /opt

root@DD-WRT:~# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/root 2432 2432 0 100% /
/dev/mtdblock/4 4736 388 4348 8% /jffs
root@DD-WRT:~#

(EDIT: no, 'mount /dev/discs/disc0/part1 /opt' does not work either)
--------------------------------------------------------------------


Last edited by doubleyouaretee on Tue Sep 01, 2009 19:29; edited 1 time in total
Sponsor
gruenesAlien
DD-WRT Guru


Joined: 27 Nov 2008
Posts: 717

PostPosted: Tue Sep 01, 2009 14:20    Post subject: Reply with quote
post output of "lsmod" and "dmesg"

Somewhere in my mind I found the notice that the mini-usb-... builds don't have file system drivers build in. I might be wrong, but we'll see.

Anyway try ekos big build.
doubleyouaretee
DD-WRT Novice


Joined: 31 Aug 2009
Posts: 2

PostPosted: Tue Sep 01, 2009 16:27    Post subject: Reply with quote
gruenesAlien wrote:
post output of "lsmod" and "dmesg"

Somewhere in my mind I found the notice that the mini-usb-... builds don't have file system drivers build in. I might be wrong, but we'll see.

Anyway try ekos big build.



EDIT: I have upgraded to:

http://www.dd-wrt.com/dd-wrtv2/downloads/others/eko/V24_TNG/svn12774/dd-wrt.v24-12774_NEWD_big.bin

and now mount seems to be working fine.

root@DD-WRT:/# cd /dev/discs/disc0
root@DD-WRT:/dev/scsi/host0/bus0/target0/lun0# ls
disc part1 part2 part3 part4
root@DD-WRT:/dev/scsi/host0/bus0/target0/lun0# mount /dev/scsi/host0/bus0/target0/lun0/part1 /opt
root@DD-WRT:/dev/scsi/host0/bus0/target0/lun0# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/root 5120 5120 0 100% /
/dev/scsi/host0/bus0/target0/lun0/part1
2063504 3076 1955608 0% /opt

Thanks gruenesAlien, and techie1


Hey gruenesAlien,

root@DD-WRT:~# lsmod
Module Size Used by
etherip 5104 0 (unused)
ip_nat_pptp 2560 0 (unused)
ip_conntrack_pptp 3036 1
ip_nat_proto_gre 1664 0 (unused)
ip_conntrack_proto_gre 2584 0 [ip_nat_pptp ip_conntrack_pptp]
jffs2 97848 1
vfat 12544 1
fat 38880 0 [vfat]
ext3 76932 0
jbd 58280 0 [ext3]
usb-storage 40344 1
sd_mod 13092 2
scsi_mod 101488 2 [usb-storage sd_mod]
ehci-hcd 22060 0 (unused)
usb-ohci 20352 0 (unused)
usbcore 84576 0 [usb-storage ehci-hcd usb-ohci]
switch-robo 5356 0 (unused)
switch-core 6352 0 [switch-robo]



CPU ProcId is: 0x00029029, options: 0x0000004d
CPU ProcId is: 0x00029029, options: 0x0000004d
Linux version 2.4.37 (root@dd-wrt) (gcc version 3.4.6 (OpenWrt-2.0)) #6633 Wed Aug 19 04:15:41 CEST 2009
Setting the PFC to its default value
Determined physical RAM map:
memory: 02000000 @ 00000000 (usable)
On node 0 totalpages: 8192
zone(0): 8192 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Kernel command line: root=/dev/mtdblock2 rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200
CPU: BCM5354 rev 2 at 240 MHz
Using 120.000 MHz high precision timer.
Calibrating delay loop... 239.20 BogoMIPS
Dentry cache hash table entries: 4096 (order: 3, 32768 bytes)
Inode cache hash table entries: 2048 (order: 2, 16384 bytes)
Mount cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer cache hash table entries: 1024 (order: 0, 4096 bytes)
Page-cache hash table entries: 8192 (order: 3, 32768 bytes)
Checking for 'wait' instruction... unavailable.
POSIX conformance testing by UNIFIX
PCI: no core
PCI: Fixing up bus 0
Initializing RT netlink socket
Starting kswapd
devfs: v1.12c (20020818) Richard Gooch (rgooch@atnf.csiro.au)
devfs: boot_options: 0x1
squashfs: version 3.0 (2006/03/15) Phillip Lougher
pty: 256 Unix98 ptys configured
Serial driver version 5.05c (2001-07-0Cool with MANY_PORTS SHARE_IRQ SERIAL_PCI enabled
ttyS00 at 0xb8000300 (irq = 3) is a 16550A
ttyS01 at 0xb8000400 (irq = 3) is a 16550A
PCI: Setting latency timer of device 00:01.0 to 64
PCI: Setting latency timer of device 00:05.0 to 64
sb_doattach: incoming bus is PCI but it's a lie, switching to SB devid:0x4318
Universal TUN/TAP device driver 1.5 (C)1999-2002 Maxim Krasnyansky
Physically mapped flash: Found an alias at 0x800000 for the chip at 0x0
Physically mapped flash: Found an alias at 0x1000000 for the chip at 0x0
Physically mapped flash: Found an alias at 0x1800000 for the chip at 0x0
Amd/Fujitsu Extended Query Table v1.1 at 0x0040
number of CFI chips: 1
cfi_cmdset_0002: Disabling fast programming due to code brokenness.
Flash device: 0x800000 at 0x1c000000
bootloader size: 131072
Physically mapped flash: Filesystem type: squashfs, size=0x240522
partition size = 2411520
Creating 5 MTD partitions on "Physically mapped flash":
0x00000000-0x00020000 : "cfe"
0x00020000-0x007f0000 : "linux"
0x00103400-0x00350000 : "rootfs"
mtd: partition "rootfs" doesn't start on an erase block boundary -- force read-only
0x007f0000-0x00800000 : "nvram"
0x00350000-0x007f0000 : "ddwrt"
sflash not supported on this router
Initializing Cryptographic API
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 2048 bind 4096)
ip_conntrack version 2.1 (512 buckets, 4096 max) - 336 bytes per conntrack
ip_tables: (C) 2000-2002 Netfilter core team
ipt_random match loaded
netfilter PSD loaded - (c) astaro AG
ipt_osf: Startng OS fingerprint matching module.
ipt_IPV4OPTSSTRIP loaded
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
VFS: Mounted root (squashfs filesystem) readonly.
Mounted devfs on /dev
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
usb-uhci.c: $Revision: 1.275 $ time 04:19:18 Aug 19 2009
usb-uhci.c: High bandwidth mode enabled
usb-uhci.c: v1.275:USB Universal Host Controller Interface driver
USB20H fcr: 0x64
USB20H shim cr: 0x8f7
USB20H syn01 register : 0xfe00fe
USB20H syn03 register : 0x1
PCI: Setting latency timer of device 00:03.0 to 64
usb-ohci.c: USB OHCI at membase 0xb8003000, IRQ 6
usb-ohci.c: usb-00:03.0, PCI device 14e4:471a
usb.c: new USB bus registered, assigned bus number 1
hub.c: USB hub found
hub.c: 2 ports detected
USB20H fcr: 0x64
USB20H shim cr: 0x8f7
USB20H syn01 register : 0xfe00fe
USB20H syn03 register : 0x1
PCI: Setting latency timer of device 00:03.1 to 64
ehci_hcd 00:03.1: PCI device 14e4:471a
ehci_hcd 00:03.1: irq 6, pci mem b8003800
usb.c: new USB bus registered, assigned bus number 2
ehci_hcd 00:03.1: illegal capability!
ehci_hcd 00:03.1: USB 0.0 enabled, EHCI 1.00, driver 2003-Dec-29/2.4
hub.c: USB hub found
hub.c: 2 ports detected
SCSI subsystem driver Revision: 1.00
Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
USB Mass Storage support registered.
Journalled Block Device driver loaded
hub.c: new USB device 00:03.1-1, assigned address 2
hub.c: USB hub found
hub.c: 2 ports detected
hub.c: new USB device 00:03.1-1.21, assigned address 3
scsi0 : SCSI emulation for USB Mass Storage devices
Vendor: OCZ Model: RALLY2 Rev: 1100
Type: Direct-Access ANSI SCSI revision: 02
Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0
SCSI device sda: 31326208 512-byte hdwr sectors (16039 MB)
sda: Write Protect is off
Partition check:
/dev/scsi/host0/bus0/target0/lun0: p1 p2 p3 p4
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 3
SQUASHFS error: Can't find a SQUASHFS superblock on sd(8,1)
FAT: bogus logical sector size 0
SQUASHFS error: Can't find a SQUASHFS superblock on sd(8,2)
FAT: bogus logical sector size 9636
SQUASHFS error: Can't find a SQUASHFS superblock on sd(8,3)
FAT: bogus logical sector size 0
SQUASHFS error: Can't find a SQUASHFS superblock on sd(8,4)
vlan1: add 01:00:5e:00:00:01 mcast address to master interface
vlan0: add 01:00:5e:00:00:01 mcast address to master interface
vlan0: del 01:00:5e:00:00:01 mcast address from vlan interface
vlan0: del 01:00:5e:00:00:01 mcast address from master interface
vlan0: add 01:00:5e:00:00:01 mcast address to master interface
vlan0: del 01:00:5e:00:00:01 mcast address from vlan interface
vlan0: del 01:00:5e:00:00:01 mcast address from master interface
vlan0: add 01:00:5e:00:00:01 mcast address to master interface
vlan0: dev_set_promiscuity(master, 1)
device eth0 entered promiscuous mode
device vlan0 entered promiscuous mode
vlan1: dev_set_allmulti(master, 1)
vlan1: dev_set_promiscuity(master, 1)
device vlan1 entered promiscuous mode
ip_conntrack_pptp version 1.9 loaded
ip_nat_pptp version 1.5 loaded
ip_nat_pptp version 1.5 unloaded
ip_conntrack_pptp version 1.9 unloaded
ip_conntrack_pptp version 1.9 loaded
ip_nat_pptp version 1.5 loaded
ip_nat_pptp version 1.5 unloaded
ip_conntrack_pptp version 1.9 unloaded
ip_conntrack_pptp version 1.9 loaded
ip_nat_pptp version 1.5 loaded
ip_nat_pptp version 1.5 unloaded
ip_conntrack_pptp version 1.9 unloaded
ip_conntrack_pptp version 1.9 loaded
ip_nat_pptp version 1.5 loaded
etherip: Ethernet over IPv4 tunneling driver


usb.c: USB disconnect on device 00:03.1-1.1 address 3
Unable to disconnect USB device from the SCSI subsystem
Device 08:04 not ready.
I/O error: dev 08:04, sector 21882
Device 08:04 not ready.
I/O error: dev 08:04, sector 21978
Device 08:04 not ready.
I/O error: dev 08:04, sector 1
Device 08:04 not ready.
I/O error: dev 08:04, sector 32
Device 08:04 not ready.
I/O error: dev 08:04, sector 10957
VFS: Disk change detected on device 08:00
Device busy for revalidation (usage=1)
Device 08:04 not ready.
I/O error: dev 08:04, sector 21882

Directory sread (sector 0x557a) failed
Device 08:04 not ready.
...
VFS: Disk change detected on device 08:00
Device busy for revalidation (usage=1)
...
I/O error: dev 08:04, sector 21882
Directory sread (sector 0x557a) failed
VFS: Disk change detected on device 08:00
...
Device 08:04 not ready.
I/O error: dev 08:04, sector 21882
Directory sread (sector 0x557a) failed
H.323_NAT: partial packet 0/6 in 0/0
H.323_NAT: partial packet 0/6 in 0/0
H.323_NAT: partial packet 0/6 in 0/0
H.323_NAT: partial packet 0/6 in 0/0
H.323_NAT: partial packet 0/6 in 0/0
H.323_NAT: partial packet 0/6 in 0/0


---------------------------------------------------------
The italicized block at the end is before rebooting the router, the regular text is a fresh boot with dmesg. The '...' are repeated lines removed. I have no clue what all this stuff means!

Judging by some of of the output, like:

WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 3
SQUASHFS error: Can't find a SQUASHFS superblock on sd(8,1)


I'm guessing that there's something wrong with the usb drive? Though the fourth partition (fat 32) seems to mount fine still (though isn't recognized as formatted on my windows machine). I paritioned with gparted, if it matters at all.

EDIT: All the partitions minus the swap automatically get mounted fine using the Slax Live CD, and I can read/write on all of them.
gruenesAlien
DD-WRT Guru


Joined: 27 Nov 2008
Posts: 717

PostPosted: Wed Sep 02, 2009 12:43    Post subject: Reply with quote
that is a known issue when using a new linux to format the drive. DD-wrt seems to have problems recognising the journal. You have to remove the journal and recreate it. How do to that I have posted in the HDsamba v3 Thread.
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum