Results 1 to 7 of 7

Thread: Can't mount into the /opt directory

  1. #1

    Can't mount into the /opt directory

    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

    ~
    ~
    ~
    ~

  2. #2
    Not sure if it makes any difference but try:
    mount /dev/scsi/host0/bus0/target0/lun0/part1 /opt

  3. #3
    Join Date
    Feb 2007
    Location
    Moscow RF
    Posts
    355
    post-boot
    Code:
    #!/bin/sh
    dropbear
    insmod scsi_mod && insmod sd_mod && insmod usb-storage
    #Wait for /opt to mount

  4. #4

    It isn't working

    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?

  5. #5
    Join Date
    Feb 2007
    Location
    Moscow RF
    Posts
    355
    Does you formated the part1?
    Code:
    mke2fs -j /dev/scsi/host0/bus0/target0/lun0/part1

  6. #6
    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....

  7. #7
    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)

Similar Threads

  1. Firmware v1.9.2.7 CR7 now 7g [Oleg]
    By Oleg in forum WL-500g Firmware Releases
    Replies: 270
    Last Post: 23-10-2007, 22:00
  2. mounting to /opt
    By kabubu in forum WL-HDD Q&A
    Replies: 6
    Last Post: 28-03-2007, 09:48
  3. Error installing IPKG
    By Cyb in forum WL-500g Q&A
    Replies: 2
    Last Post: 09-02-2007, 10:18
  4. Mount problem (strenge)
    By qczek in forum WL-500g Custom Development
    Replies: 1
    Last Post: 01-02-2006, 14:05

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •