Bekijk de volledige versie : Can't mount into the /opt directory

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
#Wait for /opt to mount
mount /dev/discs/disc0/part1 /opt
while [ $i -le 30 ]
if [ -d /opt/etc ]
sleep 1
i=`expr $i + 1`

# Activate swap
swapon /dev/discs/disc0/part2

# Run all active services - active means starts with S


30-01-2008, 11:23
Not sure if it makes any difference but try:
mount /dev/scsi/host0/bus0/target0/lun0/part1 /opt

30-01-2008, 15:02

insmod scsi_mod && insmod sd_mod && insmod usb-storage
#Wait for /opt to mount

30-01-2008, 23:14
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?

30-01-2008, 23:48
Does you formated the part1?

mke2fs -j /dev/scsi/host0/bus0/target0/lun0/part1

31-01-2008, 00:41
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....

31-01-2008, 19:03
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)