Sunday, December 13, 2009
Thursday, August 13, 2009
mount Window share using Samba
To mount a Samba (Windows) file share to a folder in Ubuntu Linux, you need to have Samba Filesystem Support installed. The easiest way to do this is through apt-get on the command line:
sudo apt-get install smbfs
After the installation has finished, create a directory that the Samba share will be mounted to (e.g. ‘windows_share‘ in the ‘/media‘ directory):
sudo mkdir /media/windows_share
Finally, use the mount command to mount the remote shared folder to your newly created directory (change the IP address, paths, username and password in the example below as needed):
sudo mount -t smbfs //10.0.0.100/shared_folder/
/media/windows_share -o username=Guest,password=
To unmount the Samba share, use the umount command (change the path in the example below as needed):
sudo umount /media/windows_share
To automatically mount the Samba share when you boot up your computer, you’ll need to edit your /etc/fstab file as detailed on this page on the Ubuntu Forums.
Sunday, June 28, 2009
Install Grub
2. Open a Terminal. Open a root terminal (that is, type "su" in a non-Ubuntu distro, or "sudo -i" in Ubuntu). Enter root passwords as necessary.
3. Type "grub" which makes a GRUB prompt appear.
4. Type "find /boot/grub/stage1". You'll get a response like "(hd0)" or in my case "(hd0,3)". Use whatever your computer spits out for the following lines. Note that you should have mounted the partition which has your Linux system before typing this command. (e.g. In Knoppix Live CD partitions are shown on the desktop but they're not mounted until you double-click on them or mount them manually)
5. Type "root (hd0,3)" note the space between root and (hd0,3).
6. Type "setup (hd0,3)". This is key. Other instructions say to use "(hd0)", and that's fine if you want to write GRUB to the MBR. If you want to write it to your linux root partition, then you want the number after the comma, such as "(hd0,3)".
7. Type "quit".