Not sure if it makes any difference but try:
mount /dev/scsi/host0/bus0/target0/lun0/part1 /opt
So I followed the tutorials, to set up my router. And it was fine untill I try mount my two partitions: one of swap (this is correct and working) and one for the system but is not working.
mount /dev/discs/disc0/part1 /opt
And it's failed to mount. My parameters:
[admin@(none) root]$ free
total used free shared buffers
Mem: 30084 14308 15776 0 1700
Swap: 522104 0 522104
Total: 552188 14308 537880
[admin@(none) root]$ fdisk -l
Disk /dev/scsi/host0/bus0/target0/lun0/disc: 2021 MB, 2021654016 bytes
255 heads, 63 sectors/track, 245 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/scsi/host0/bus0/target0/lun0/part1 1 180 1445818+ 83 Linux
/dev/scsi/host0/bus0/target0/lun0/part2 181 245 522112+ 82 Linux swap
[admin@(none) root]$ df
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/root 3008 3008 0 100% /
[admin@(none) root]$ vi /usr/local/sbin/post-boot
#!/bin/sh
dropbear
#Wait for /opt to mount
mount /dev/discs/disc0/part1 /opt
i=0
while [ $i -le 30 ]
do
if [ -d /opt/etc ]
then
break
fi
sleep 1
i=`expr $i + 1`
done
# Activate swap
swapon /dev/discs/disc0/part2
# Run all active services - active means starts with S
/opt/etc/init.d/rc.unslung
~
~
~
~
Not sure if it makes any difference but try:
mount /dev/scsi/host0/bus0/target0/lun0/part1 /opt
post-bootCode:#!/bin/sh dropbear insmod scsi_mod && insmod sd_mod && insmod usb-storage #Wait for /opt to mount
It isn't working :-(
[admin@(none) etc]$ df
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/root 3008 3008 0 100% /
And is not strange, I can't see my swap partition, becouse it is working?
Does you formated the part1?
Code:mke2fs -j /dev/scsi/host0/bus0/target0/lun0/part1
Guys please try to be clear what u post.
mods get ins'ed upon reboot after install.
Can you please try to just mount it with console ?
Then post the error message?
mount /dev/scsi.... /opt
then swapon /dev....
At least, I formated my partition 4 or 5 times (once I unmounted and formated my PC to ext3), and now when I formated once again, as soon as possible I tryed mount it, and it is good :-)
Thanks guys to help me, I don't know what is the problem, but now is working. ( modify my pre boot file, with these line:
insmod scsi_mod && insmod sd_mod && insmod usb-storage)
And now it's working :-)
[admin@(none) root]$ mount
/dev/root on / type squashfs (ro)
none on /dev type devfs (rw)
proc on /proc type proc (rw)
ramfs on /tmp type ramfs (rw)
usbfs on /proc/bus/usb type usbfs (rw)
/dev/discs/disc0/part1 on /opt type ext3 (rw)