Mount network folders on boot-up (Ubuntu 6.06)


Recommended Posts

I'm trying to mount network folders on boot-up, and allow all users to read/write but nothing happens, when I go to the directory where I mounted it, nothing is there. By the way, I'm trying to mount folders from a XP PRO SP2 machine that doesn't have a password. When I mount the network folders manually using

sudo mount //192.168.1.102/Videos /media/Justin/Videos -o dmask=777,fmask=777

it works fine. Can anyone help?

Here is my fstab.

# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>	   <dump>  <pass>
proc			/proc		   proc	defaults		0	   0
/dev/hda6	   /			   ext3	defaults,errors=remount-ro 0	   1
/dev/hda1	   /media/hda1	 ntfs	nls=utf8,umask=0222 0	   0
/dev/hda5	   /media/hda5	 ntfs	nls=utf8,umask=0222 0	   0
/dev/hda8	   /media/hda8	 vfat	iocharset=utf8,umask=000 0	   0
/dev/hdb1	   /media/hdb1	 ntfs	nls=utf8,umask=0222 0	   0
/dev/hda7	   none			swap	sw			  0	   0
/dev/hdd		/media/cdrom0   udf,iso9660 user,noauto	 0	   0
/dev/fd0		/media/floppy0  auto	rw,user,noauto  0	   0
//192.168.1.102/Downloads	/media/Justin/Downloads smbfs  dmask=777,fmask=777  0	0
//192.168.1.102/SharedDocs	/media/Justin/SharedDocs smbfs  dmask=777,fmask=777  0	0
//192.168.1.102/Videos	/media/Justin/Videos smbfs  dmask=777,fmask=777  0	0

I'm not sure about SMB. If i was doing it, I would add the following commands into Ubuntu's equivalent of /etc/rc.local, whatever it might be called.

mount //192.168.1.102/Videos /media/Justin/Videos -o dmask=777,fmask=777
mount //192.168.1.102/SharedDocs /media/Justin/SharedDocs -o dmask=777,fmask=777
mount //192.168.1.102/Downloads /media/Justin/Downloads -o dmask=777,fmask=777

Automounting filesystems is usually one of the first things that happens at boot time, networking support and other network related things usually come later. Maybe you can change the order your services start at boot time.

this is how my /etc/rc.local looks like. I removed the exit 0 at the end and put in the mounts.

#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

mount //192.168.1.102/Videos /media/Justin/Videos -o dmask=777,fmask=777
mount //192.168.1.102/SharedDocs /media/Justin/SharedDocs -o dmask=777,fmask=777
mount //192.168.1.102/Downloads /media/Justin/Downloads -o dmask=777,fmask=777

ok, its still doesn't mounting when I boot up, but when I type sudo /etc/rc.local in the terminal it asks from my password then again 3 more times. When I finish typing in the passwords the shared folders finally mounts and I'm able to access them. I guessing the only reason it doesn't work when I boot up is because it doesn't have my password or whatever, is there anyone to put that in?

That script would be run with root privileges at boot, so you shouldn't need to worry about a password.

I just read ubuntuforums.org, and this apparently works in fstab:

//192.168.1.102/Videos /media/Justin/Videos smbfs guest,uid=<username>,iocharset=utf8,codepage=unicode,unicode,auto 0 0
//192.168.1.102/SharedDocs /media/Justin/SharedDocs smbfs guest,uid=<username>,iocharset=utf8,codepage=unicode,unicode,auto 0 0
//192.168.1.102/Downloads /media/Justin/Downloads smbfs guest,uid=<username>,iocharset=utf8,codepage=unicode,unicode,auto 0 0

Obviously replace <username> with an actual name, and ignore the line wrapping.

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • TeraCopy 4.0 Build 27 is out.
    • My ice blue precision 3550 laptop
    • A coalition of publishers sued OpenAI and Microsoft over scraping content without consent by Hamid Ganji Image via Depositphotos.com AI companies often rely on readily available internet content to train their chatbots and provide users with instant answers. This method of AI training is fast and relatively inexpensive, but using a website’s content without permission or compensation is not something publishers like to see, and this is exactly why Microsoft and OpenAI are now being sued. As reported by Bloomberg, a group of publishers that collectively own nearly 400 newspapers has filed a lawsuit against OpenAI and Microsoft. The coalition argues that the two companies scraped their content to build AI chatbots like ChatGPT and Copilot without paying any compensation. The complaint, filed in the U.S. District Court for the Southern District of New York, argues that while AI products have generated billions of dollars in market value using publishers’ work, none of that value has been shared with the publishers. The plaintiffs are seeking statutory damages and injunctive relief for alleged copyright infringement and violations of the Digital Millennium Copyright Act. “Defendants systematically and secretly crawled the Publishers’ websites—including content behind paywalls and other access restrictions—and copied the Publishers’ articles, stories, and other original works onto their own servers without authorization,” the complaint states. The publishers also described the AI boom as a “death knell for local journalism” if AI companies that scrape content for free are not held accountable. Former New Jersey Attorney General Matthew Platkin and his law firm, Platkin LLP, are representing the publishers. “Our models empower innovation, are trained on publicly available data, and are grounded in fair use,” OpenAI spokesperson Drew Pusateri told Bloomberg. This is not the first lawsuit involving the unauthorized use of publishers’ content by AI firms, but it is one of the largest coalitions ever formed against the free use of content by AI chatbots. In 2024, OpenAI and Microsoft also faced a similar lawsuit from eight newspapers that claimed AI products were benefiting from their content without permission.
  • Recent Achievements

    • First Post
      kinowa earned a badge
      First Post
    • Rookie
      krychek57 went up a rank
      Rookie
    • Grand Master
      Jaybonaut went up a rank
      Grand Master
    • One Year In
      Philsl earned a badge
      One Year In
    • Dedicated
      Scoobystu earned a badge
      Dedicated
  • Popular Contributors

    1. 1
      +primortal
      444
    2. 2
      +Edouard
      172
    3. 3
      PsYcHoKiLLa
      134
    4. 4
      Michael Scrip
      78
    5. 5
      Xenon
      77
  • Tell a friend

    Love Neowin? Tell a friend!