Log in

Bekijk de volledige versie : internal hd not mounting?!



hullahulla
19-06-2006, 08:22
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 it
[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


someone told me to install ext3 support to the firmware but i guess its in olegs firmware...maybe someone knows?!

best regards,
hullahulla

vladut
20-06-2006, 15:49
It seems that you are trying to mount the swap partition.
TRY:
[admin@banana /]$ mount /dev/ide/host0/bus0/target0/lun0/part2 /opt

hullahulla
20-06-2006, 16:01
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....

but thanks for the reply,
hullahulla

Oleg
20-06-2006, 16:56
looks like you've ext2 partitions, add a journal to make them ext3...

vladut
21-06-2006, 05:14
It may work if you use "-t ext3" switch:
mount -t ext3 /dev/scsi/host0/bus0/target0/lun0/part2 /opt

hullahulla
21-06-2006, 07:13
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"...

my syslog says something like this:


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)


how do i add journaling to linux disk - or is it something else?

thanks a lot,
hullahulla

vladut
21-06-2006, 10:24
Use -j switch when formating:
mke2fs -j /dev/ide/host0/bus0/target0/lun0/part2

smartphone
21-06-2006, 16:33
What command u used to format the partitions, any reason to place the swap in part 1 ?

vladut
21-06-2006, 20:35
mke2fs is the command for formating (mkswap the for swapfile)

hullahulla
28-06-2006, 19:23
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

hullahulla
28-06-2006, 19:25
What command u used to format the partitions, any reason to place the swap in part 1 ?

well, i was just following the i believe macsat.com ipkg howto :-)

kopec
23-07-2006, 16:38
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

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.

when I try "mount -t ext3 /dev/ide/host0/bus0/target0/lun0/part1 /opt" i get
Jul 23 17:31:59 kernel: VFS: Can't find ext3 filesystem on dev ide0(3,1).


[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

Please, what am I doing wrong? This is on WL-HDD with the newest Oleg's firmware.

500gx
23-07-2006, 18:36
Did you format your disk?

Try:

mke2fs -j /dev/ide/host0/bus0/target0/lun0/part1
Warning this will format your harddisk and removes all data on the disk, but this should be no problem as you just fdisked it!

kopec
23-07-2006, 22:56
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)

7erl
24-08-2006, 09:01
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?