grrrhhh
30-01-2008, 10:31
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
~
~
~
~
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
~
~
~
~