PDA

Bekijk de volledige versie : Problem mounting second harddisk



dadoupy
18-06-2009, 15:24
I can't mount second harddisk on my WL-500gP with oleg -10 firmware.
Is this a limitation of this kernel?

I get:
[admin@NAS /]$ mount /dev/discs/disc1/part2 /tmp/harddisk
mount: Mounting /dev/discs/disc1/part2 on /tmp/harddisk failed: Invalid argument

The folder /tmp/harddisk exists and is empty.

Before mounting i have set up the disk with fdisk:

Disk /dev/discs/disc1/disc: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/discs/disc1/part1 1 32 257008+ 82 Linux swap
/dev/discs/disc1/part2 33 163 1052257+ 83 Linux
/dev/discs/disc1/part3 164 14593 115908975 83 Linux

There is no error with the partitions:

[admin@NAS /]$ e2fsck -p /dev/discs/disc1/part2
ext2fs_check_if_mount: No such file or directory while determining whether /dev/discs/disc1/part2 is mounted.
/dev/discs/disc1/part2: clean, 21608/140832 files, 105175/263064 blocks
[admin@NAS /]$ e2fsck -p /dev/discs/disc1/part3
ext2fs_check_if_mount: No such file or directory while determining whether /dev/discs/disc1/part3 is mounted.
/dev/discs/disc1/part3: clean, 11/14499840 files, 455012/28977243 blocks

dadoupy
18-06-2009, 15:34
Syslog: (partial)

Jun 18 13:03:07 kernel: hub.c: new USB device 01:03.2-2, assigned address 3
Jun 18 13:03:07 kernel: scsi1 : SCSI emulation for USB Mass Storage devices
Jun 18 13:03:07 kernel: Vendor: FUJITSU Model: MHW2120BJ G2 Rev:
Jun 18 13:03:07 kernel: Type: Direct-Access ANSI SCSI revision: 02
Jun 18 13:03:07 kernel: Attached scsi disk sdb at scsi1, channel 0, id 0, lun 0
Jun 18 13:03:07 kernel: SCSI device sdb: 234441648 512-byte hdwr sectors (120034 MB)
Jun 18 13:03:07 kernel: kjournald starting. Commit interval 5 seconds
Jun 18 13:03:07 kernel: EXT3-fs warning: maximal mount count reached, running e2fsck is recommended
Jun 18 13:03:07 kernel: EXT3 FS 2.4-0.9.19, 19 August 2002 on sd(8,2), internal journal
Jun 18 13:03:07 kernel: EXT3-fs: recovery complete.
Jun 18 13:03:07 kernel: EXT3-fs: mounted filesystem with ordered data mode.
Jun 18 13:03:07 kernel: Adding Swap: 250856k swap-space (priority -1)
Jun 18 13:03:07 kernel: p1 p2 p3
Jun 18 13:03:07 kernel: kjournald starting. Commit interval 5 seconds
Jun 18 13:03:07 kernel: EXT3-fs warning: mounting fs with errors, running e2fsck is recommended
Jun 18 13:03:07 kernel: EXT3 FS 2.4-0.9.19, 19 August 2002 on sd(8,3), internal journal
Jun 18 13:03:07 kernel: EXT3-fs: mounted filesystem with ordered data mode.

avberk
18-06-2009, 16:22
It's not a limitation of the kernel. I have 2 disks connected.

it might help to use a powered hub or disk (in case the disk is not recognized)

also have a look at 'fstab'

post the output of 'fdisk -l'

dadoupy
19-06-2009, 13:31
[admin@NAS root]$ fdisk -l

Disk /dev/scsi/host0/bus0/target0/lun0/disc: 40.0 GB, 40020664320 bytes
64 heads, 32 sectors/track, 38166 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes

Device Boot Start End Blocks Id System
/dev/scsi/host0/bus0/target0/lun0/part1 1 245 250864 82 Linux swap
/dev/scsi/host0/bus0/target0/lun0/part2 246 978 750592 83 Linux
/dev/scsi/host0/bus0/target0/lun0/part3 979 38166 38080512 83 Linux

Disk /dev/scsi/host1/bus0/target0/lun0/disc: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/scsi/host1/bus0/target0/lun0/part1 1 32 257008+ 82 Linux swap
/dev/scsi/host1/bus0/target0/lun0/part2 33 163 1052257+ 83 Linux
/dev/scsi/host1/bus0/target0/lun0/part3 164 14593 115908975 83 Linux

dadoupy
19-06-2009, 15:26
OPGELOST!:)

Ik was bij mke2fs de optie -j vergeten.
Ext2 wordt niet ondersteund, alleen ext3.

[admin@NAS root]$ df
Filesystem 1K-blocks Used Available Use% Mounted on
rootfs 3072 3072 0 100% /
/dev/root 3072 3072 0 100% /
/dev/discs/disc0/part2
738776 420836 280412 61% /opt
/dev/discs/disc0/part3
37482024 2263584 33314416 7% /mnt
/dev/discs/disc1/part2
1035692 32828 950252 4% /opt/opt2
/dev/discs/disc1/part3
114088932 131228 108162256 1% /mnt/mnt2