It seems that you are trying to mount the swap partition.
TRY:
[admin@banana /]$ mount /dev/ide/host0/bus0/target0/lun0/part2 /opt
hey all,
i have a wl-hdd running olegs fw 1.9.2.7-7e. inside is a 100gb internal hd. i managed to partition and format it, but i am definitely not able to mount itsomeone told me to install ext3 support to the firmware but i guess its in olegs firmware...maybe someone knows?![admin@banana /]$ fdisk -l
Disk /dev/ide/host0/bus0/target0/lun0/disc: 100.0 GB, 100030242816 bytes
255 heads, 63 sectors/track, 12161 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/ide/host0/bus0/target0/lun0/part1 1 28 224878+ 82 Linux swap
/dev/ide/host0/bus0/target0/lun0/part2 29 2461 19543072+ 83 Linux
/dev/ide/host0/bus0/target0/lun0/part3 2462 7325 39070080 83 Linux
/dev/ide/host0/bus0/target0/lun0/part4 7326 12161 38845170 83 Linux
[admin@banana /]$ mount /dev/ide/host0/bus0/target0/lun0/part1 /opt
mount: Mounting /dev/ide/host0/bus0/target0/lun0/part1 on /opt failed: Invalid argument
[admin@banana /]$ mount /dev/discs/disc0/part2 /opt
mount: Mounting /dev/discs/disc0/part2 on /opt failed: Invalid argument
best regards,
hullahulla
It seems that you are trying to mount the swap partition.
TRY:
[admin@banana /]$ mount /dev/ide/host0/bus0/target0/lun0/part2 /opt
:-) yeah, this was a typo. i tried almost all possible combinations (part1+4 etc), i just wanted to show, that i tried the /dev/ide/host0/bus0/t.... and the /dev/discs/disc0... way. i dont get why theres a invalid argument....Originally Posted by vladut
but thanks for the reply,
hullahulla
looks like you've ext2 partitions, add a journal to make them ext3...
It may work if you use "-t ext3" switch:
mount -t ext3 /dev/scsi/host0/bus0/target0/lun0/part2 /opt
which results in the same "invalid argument"...Originally Posted by vladut
my syslog says something like this:
how do i add journaling to linux disk - or is it something else?Code:Jan 1 01:00:02 kernel: -DMA at 0x0140-0x0147, BIOS settings: hda:pio, hdb:pio Jan 1 01:00:02 kernel: ide1: BM-DMA at 0x0148-0x014f, BIOS settings: hdc:pio, hdd:pio Jan 1 01:00:02 kernel: hda: SAMSUNG HM100JC, ATA DISK drive Jan 1 01:00:02 kernel: ide2: ports already in use, skipping probe Jan 1 01:00:02 kernel: ide3: ports already in use, skipping probe Jan 1 01:00:02 kernel: ide4: ports already in use, skipping probe Jan 1 01:00:02 kernel: ide5: ports already in use, skipping probe Jan 1 01:00:02 kernel: ide0 at 0x100-0x107,0x10a on irq 6 Jan 1 01:00:02 kernel: blk: queue c00222e8, I/O limit 4095Mb (mask 0xffffffff) Jan 1 01:00:02 kernel: hda: 195371568 sectors (100030 MB) w/8192KiB Cache, CHS=12161/255/63, UDMA(33) Jan 1 01:00:02 kernel: Partition check: Jan 1 01:00:02 kernel: /dev/ide/host0/bus0/target0/lun0: p1 p2 p3 p4 ..... Jan 1 01:00:17 kernel: FAT: bogus logical sector size 0 Jan 1 01:00:17 kernel: VFS: Can't find a valid FAT filesystem on dev 03:03. Jan 1 01:00:17 kernel: FAT: freeing iocharset=cp950 Jan 1 01:00:17 kernel: FAT: bogus logical sector size 0 Jan 1 01:00:17 kernel: VFS: Can't find a valid FAT filesystem on dev 03:03. Jan 1 01:00:17 kernel: ext3: No journal on filesystem on ide0(3,4) ..... Jan 1 01:01:28 kernel: /dev/scsi/host0/bus0/target0/lun3: I/O error: dev 08:30, sector 0 Jan 1 01:01:28 kernel: I/O error: dev 08:30, sector 0 Jan 1 01:01:28 kernel: unable to read partition table Jan 1 01:02:08 kernel: ext3: No journal on filesystem on ide0(3,2)
thanks a lot,
hullahulla
Use -j switch when formating:
mke2fs -j /dev/ide/host0/bus0/target0/lun0/part2
Last edited by vladut; 21-06-2006 at 10:27.
What command u used to format the partitions, any reason to place the swap in part 1 ?
mke2fs is the command for formating (mkswap the for swapfile)
thanxs for all the info mke2fs -j works fine! apologies for late reply but i´m out to work w/o email connection etc.
best regards,
hulla
well, i was just following the i believe macsat.com ipkg howto :-)Originally Posted by smartphone
Hi, I've got the same problem, but this procedure haven't solved it. i have the same startup syslog lines, except i end up with
when I try "mount -t ext3 /dev/ide/host0/bus0/target0/lun0/part1 /opt" i getCode:Jan 1 01:00:18 kernel: FAT: bogus logical sector size 0 Jan 1 01:00:18 kernel: VFS: Can't find a valid FAT filesystem on dev 03:01. Jan 1 01:00:18 kernel: FAT: freeing iocharset=cp950 Jan 1 01:00:18 kernel: FAT: bogus logical sector size 0 Jan 1 01:00:18 kernel: VFS: Can't find a valid FAT filesystem on dev 03:01.Code:Jul 23 17:31:59 kernel: VFS: Can't find ext3 filesystem on dev ide0(3,1).Please, what am I doing wrong? This is on WL-HDD with the newest Oleg's firmware.Code:[admin@Asus root]$ fdisk -l Disk /dev/ide/host0/bus0/target0/lun0/disc: 40.0 GB, 40007761920 bytes 255 heads, 63 sectors/track, 4864 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/ide/host0/bus0/target0/lun0/part1 1 4864 39070048+ 83 Linux
Did you format your disk?
Try:
Warning this will format your harddisk and removes all data on the disk, but this should be no problem as you just fdisked it!Code:mke2fs -j /dev/ide/host0/bus0/target0/lun0/part1
ASUS wl500g Deluxe: OpenWRT RC5 White Russian
ASUS wl500g Premium: OpenWRT RC6 Kamikazee / White Russian?
Yeah I "fdisked" it and I've formatted it using mke2fs -j, first time my wlhdd ran out of memory and killed the mke2fs process, but second time everything went right. Yesterday I was able to access the drive via Samba (which somehow refuses to startup during boot with the new firmware) and copy there and back a 50MB file, but since the new firmware (and since I fdisked it, dunno what is the problem) I'am unable to even mount it. And I need that firmware because I need to use the eth port as WAN. and others (WiFi) as LAN. (internet connection)
Hi guys!
I recently had the same problem.
Figured out that the FW (which is intended for a device without an internal hd) uses .../part1 as swap and .../part2 as filesystem partitions for an EXTERNAL disk connected to a WL500g!
So for me ../part5 was used for the internal hd. Mounted this one to /opt and installed everything there accordingly to the Wiki on Sprayfly.
When you connect an additional hd to the usb port of the wlhdd, then you can use .../part2.
Maybe this points you to the right direction.
BTW: I have another thread in this forum, looking for help on samba'ing both (internal and external) harddisks. Maybe someone could have a look and help?