Results 1 to 7 of 7

Thread: mounting to /opt

  1. #1

    Question mounting to /opt

    Hi all

    I am a Unix-newby and try to setup my WL-HDD using the guidance from
    http://www.sprayfly.com/wiki/Filesystem

    I fail mounting the partition to /opt
    [admin@WL-HDD /]$ mount /dev/discs/disc0/part1 /opt
    mount: Mounting /dev/discs/disc0/part1 on /opt failed: Invalid argument
    [admin@WL-HDD /]$

    In the guide is written:
    now we will mount partition one to /opt . You may need to make this directory?

    So I guess I need to make this directory first. But where and how?
    I tried mkdir and got a directory but mounting did not work. Probably I need this directory on another place? Or do I have to set rights?

    Thanks for a feedback, KaBuBu

  2. #2
    Hi

    What do you get if you do a 'df' command?

    I'm sure the /opt directory is created automatically. It should be owned by your administrator user and group.
    It might be that the disc partition is already mounted else where and this is causing the failure.

    Ade

  3. #3
    Hi Ade

    Thanks for the reply. I followed the instructions and checked if the disk is mounted or unmounted... and can confirm it was not mounted. Actualy when rebooting the disk is not mounted automatically.

    What should be the path for /opt?

    You write /opt needs to be owned by admin user and group. Does that mean that all need rw access? Is chmod working also for folders or only for files?

    Thanks for any help, KaBuBu

  4. #4
    The directory opt should be found in the / directory (which is root for all linux/unix filesystems). When I do a 'ls -l /' I get

    $ ls -l /
    drwxr-xr-x 1 admin root 330 Jun 28 2005 bin
    drwxr-xr-x 1 admin root 0 Jan 1 1970 dev
    lrwxrwxrwx 1 admin root 7 Jun 28 2005 etc -> tmp/etc
    drwxr-xr-x 1 admin root 0 Jun 28 2005 home
    drwxr-xr-x 1 admin root 148 Jun 28 2005 lib
    -rwxr-xr-x 1 admin root 1931 Jun 28 2005 linuxrc
    drwxr-xr-x 1 admin root 0 Jun 28 2005 mnt
    drwxr-xr-x 10 admin root 4096 Nov 17 16:55 opt
    dr-xr-xr-x 36 admin root 0 Jan 1 2000 proc
    drwxr-xr-x 1 admin root 454 Jun 28 2005 sbin
    drwxr-xr-x 1 admin root 0 Jan 1 2000 tmp
    drwxr-xr-x 1 admin root 67 Jun 28 2005 usr
    lrwxrwxrwx 1 admin root 7 Jun 28 2005 var -> tmp/var
    drwxr-xr-x 1 admin root 3201 Jun 28 2005 www

    Can you post your root directory ls results if they don't look like those above?
    chmod does work for directories as well as files as long as you're logged is as admin.

    Cheers

    Ade

  5. #5
    Quote Originally Posted by kabubu View Post
    I fail mounting the partition to /opt
    [admin@WL-HDD /]$ mount /dev/discs/disc0/part1 /opt
    mount: Mounting /dev/discs/disc0/part1 on /opt failed: Invalid argument
    [admin@WL-HDD /]$
    Hi guys, I have the same problem.... can you help me? what can I do??

  6. #6
    Have you formatted the partition correctly? Does the mke2fs command finish without errors? I had to set up the swap file first so that this command would work.

    Post any findings from my earlier comments and your /tmp/syslog.log file and I'll see how they compare to my set up.

    Cheers

    Ade

  7. #7
    Join Date
    Jan 2005
    Location
    konstanz, germany
    Posts
    90

    NOSWAP ... no formating big ext2/3 fs

    Hi ...

    I think your swap is not created or activ ... without swap your are not able to format (big) fs with ext2/3.

    Martin

Similar Threads

  1. Mounting of NAS drives with Oleg's 1.9.2.7
    By upcuser:-( in forum WL-500gP Firmware Discussion
    Replies: 4
    Last Post: 16-10-2006, 22:45
  2. internal hd not mounting?!
    By hullahulla in forum WL-HDD Q&A
    Replies: 14
    Last Post: 24-08-2006, 09:01
  3. IPKG without mounting on /opt
    By MHz in forum WL-500g Q&A
    Replies: 4
    Last Post: 20-06-2006, 09:30
  4. USB-HD not mounting correctly
    By Control in forum WL-500g Q&A
    Replies: 1
    Last Post: 27-05-2006, 10:26
  5. hdd: /opt or /tmp/harddisk
    By JB_Walton in forum WL-500g Q&A
    Replies: 4
    Last Post: 05-01-2006, 21:13

Posting Permissions

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