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

    • I still use speccy on windows systems as a quick sysinfo thing. I know there's better but really it was the first one I used of its type
    • Google Chrome 149.0.7827.201 (offline installer) by Razvan Serea The web browser is arguably the most important piece of software on your computer. You spend much of your time online inside a browser: when you search, chat, email, shop, bank, read the news, and watch videos online, you often do all this using a browser. Google Chrome is a browser that combines a minimal design with sophisticated technology to make the web faster, safer, and easier. Use one box for everything--type in the address bar and get suggestions for both search and Web pages. Thumbnails of your top sites let you access your favorite pages instantly with lightning speed from any new tab. Desktop shortcuts allow you to launch your favorite Web apps straight from your desktop. Chrome has many useful features built in, including automatic full-page translation and access to thousands of apps, extensions, and themes from the Chrome Web Store. Google Chrome is one of the best solutions for Internet browsing giving you high level of security, speed and great features. Google Chrome 149.0.7827.201 security fixes: [N/A][513138301] High CVE-2026-13281: Integer overflow in Mojo. Reported by Google on 2026-05-14 [N/A][517522620] High CVE-2026-13282: Use after free in Payments. Reported by Google on 2026-05-28 [N/A][522561151] High CVE-2026-13283: Use after free in AdFilter. Reported by Google on 2026-06-11 Important to know! The offline installer links do not include the automatic update feature. Download web installer: Google Chrome Web 32-bit | Google Chrome 64-bit | Freeware Download: Google Chrome Offline Installer 64-bit | Direct Link | 131.0 MB Download: Google Chrome Offline Installer 32-bit | Direct Link | 119.0 MB Download page: Google Chrome Portable Download: Chrome ARM64 | Direct Link View: Chrome Website | Release Notes Get alerted to all of our Software updates on Twitter at @NeowinSoftware
    • Fire and rehire. Doubt the work contracts are as favourable. Smart tactic using AI to do it legally.
    • > And, of course, it includes in-game purchases. Sigh.. of course it does. I just don't understand why anyone would want to play this on PC, when the far superior AoE 2/DE exists. Just kill this with fire already. Or a trebuchet.
    • Normally you'd just want to use Ventoy, but Rufus is handy when: - Ventoy doesn't work (some BIOSes can be weird) - You're mainly interested in creating a single Windows live USB and not interested in a multi-boot / Linux USBs - You want to automate your Windows installations (Rufus supports creating/injecting an autounattend.xml file which fully automates a Windows install). You can do this with Ventoy as well, but it requires a bit more of an effort. Also worth nothing is that both automatically bypass Windows 11's artificially imposed restrictions (TPM, CPU etc).
  • Recent Achievements

    • Week One Done
      xvvxcvv earned a badge
      Week One Done
    • One Month Later
      xvvxcvv earned a badge
      One Month Later
    • Enthusiast
      Xonos went up a rank
      Enthusiast
    • Conversation Starter
      Admir earned a badge
      Conversation Starter
    • First Post
      The_Focal_Point earned a badge
      First Post
  • Popular Contributors

    1. 1
      +primortal
      409
    2. 2
      +Edouard
      171
    3. 3
      PsYcHoKiLLa
      129
    4. 4
      neufuse
      69
    5. 5
      Xenon
      68
  • Tell a friend

    Love Neowin? Tell a friend!