Ubuntu :: Mount Partition Automatically At Start?
Mar 28, 2010
recently i was trying to mount my partition automatically at start up ...so i gone through some tutorials on the net nd made some changes in /etc/fstab file (i made a back up before making any changes). when i was changing permissions of folder in which i tried to mount my all partitions i got my system screwed up.then it was showing following error at start up and GUI was not turning up. "could not update ICEauthority file " also my sudo was not working so first i restored original fstab file through recovery console then i googled out about above errors. I found some solution now my system is working but showing strange behaviour like:
> ubuntu is not detecting any of my hdd partition
> disk utility is not working (showing no error)
>fdisk -l shows nothing
> no new software is getting installed via ubuntu software center (shows no error when clicking on install but nothing turns up)
>i cannot restart or shutdown my system from GNOME it only logs off my session (although through terminal its working)
>no media player showing sound controls enabled
>gnome not showing ethernet or sound volume icon in upper panel (although net is working)
>users and groups from system->administration menu is not working (error:cannot load configuration)
i think most of the administrative tasks are not working.........i googled out but found nothing satisfactory..i dont want to reinstall it, coz i m not very experienced with linux n it took about a whole month to customize my ubuntu 9.10 on my college internet...
View 6 Replies
ADVERTISEMENT
Mar 3, 2011
I have two hard drives in my computer, one for the operating system and the other solely for storage. They both have ext4 filesystems. Is there any way that i can have my storage hard drive to automatically mount on start up?
View 9 Replies
View Related
Jun 2, 2010
I had to re-install Windows XP because the install was running slow.So, I created another partition using GParted for my personal data and moved my files there and re-installed Windows XP.Now, the Windows partition won't mount automatically.NTFS Configuration Tool shows 0.0GB. So, I have to open up a Terminal window, and issue sudo mount /dev/sda1 /media/Windows and everything is fine.
View 2 Replies
View Related
Oct 23, 2010
How to mount vfat partition automatically after boot? After login it it will mount all vfat partition and the icon of those parition will be at desktop. How can it be done. udisks is installed. If i click a vfat partition from pcmanfm it prompts for password to mount.I don't want to click. It will be automatically mounted and i will get the icon of that mounted vfat partition at desktop
View 7 Replies
View Related
May 17, 2010
I found a way some times ago to mount a truecrypt volume when opening the session by insertion of the login password in the mounting script instead of putting it in clear in the script. I don't remember to command to read/transfer the password.
View 2 Replies
View Related
Apr 3, 2010
I'm trying to configure pam_mount to automatically mount an encrypted partition (luks) and formatted to NTFS. I typed the command in the configuration file:
Quote:
<volume user="user" fstype="crypt" path="/dev/sda6" mountpoint="~/dane2" options="defaults,umask=000" />
But the partition is mounted read-only. There is some way to mount the partition rw mode?
View 2 Replies
View Related
Jan 25, 2010
what to do for lock automatically slackware 13 if not used for n minutes ?What can i do to start automatically the ktorrent (a bittorrent program for linux) on system starts on slackware 13 ?
View 2 Replies
View Related
Feb 10, 2010
I am trying to setup fstab to automatically mount my NTFS partitions. I have used various Mount managers to create the entries in fstab. The fstab seems fine, but when mounting at boot or even via Nautilus I get the error message that I do not have permission to mount the disk.
1) Can this permission be set in the fstab file? If so what is the syntax of the fstab entry?
2) If not, is there a tool i.e. GUI to set the mount permissions?
View 14 Replies
View Related
Oct 13, 2010
Im trying to run synergy on startup. This works fine on the client, but it wont start automatically on the server. I put this line in an entry in startup applications:
[code]...
but still no dice.
View 9 Replies
View Related
Jan 26, 2011
I need a guicance related to mounting USB stick of 2GB capacity. Normally when I insert my USB stick it mount automatically and show me.I want that instead the usb mount automatically I manually mount it. Now there are two steps to do it. First How to stop USB to mount automatically ? Second How to mount it manually ?
View 1 Replies
View Related
Sep 22, 2009
I use Opensuse 11 with fvwm. How can I get conky start automatically when I start fvwm?
I setup the conky under fvwm session for my Opensuse 11 but it won't start automatically. I am wondering how to write some kind of scripts to force it to start automatically and with a delay about 10 seconds after fvwm starts.
View 10 Replies
View Related
Jun 24, 2010
what now trying to mount partition get this error this is the partition ubuntu 9.10 is installed on and upon reboot error no device with a long string. mount: can't find /dev/sda6/mnt in /etc/fstab or /etc/mtab
so now that I believe I've successfully mounted the partition how do I direct the bootloader to this partition /dev/sda6 on /media/11076e45-e27d-470b-bb6d-6894f7809a0c type ext4 (rw,nosuid,nodev,uhelper=devkit)
View 1 Replies
View Related
Jan 2, 2010
I've just bought a HP mini compaq laptop. The laptop doesn't have any CD/DVD "reader". So i was forced to download the .iso file to install ubuntu in addition to Windows XP that was present when i bought it. To do so i used UNetbootin, and i used my only hard disk as a live CD. But when i wanted to install ubuntu, they told me to create a partition. The problem is that i can't. I have only one partition sda1(nfst) which covers the whole stockage memory, and an empty space(8Mo). I can't acceed to any of the resizing or modifying options to edit the nfst partition. The only options are manage flags and umount. When i click on this one, they tell me : # umount /cdrom : cdrom is busy.
View 3 Replies
View Related
Jan 7, 2010
I have installed the second drive, I have partition it and now it is OK. How could I make it to mount automatically at boot so it could be accessed easily, please?I understand that I have to use some commands (forgot where I read that) but have no idea how to do it.Is there an application with GUI to do that, so I will not make mistakes in terminal?
View 2 Replies
View Related
Jan 12, 2010
I am setting up a home server and have two hard drives. One is the main HD for system files and the other will be for personal files.
The personal HD is /dev/sdb.
I know I have to edit fstab in order to get it to mount automatically at boot, but I am having trouble with the commands.
I would like for it to mount at boot and have full read-write access from any user.
View 3 Replies
View Related
Jun 17, 2010
I use this command to mount sshfs:sshfs -o idmap=user user@ip:/home/user/public_html ~/FolderThen I enter my password. I do this every time I start my computer
View 3 Replies
View Related
Sep 15, 2010
I have just installed 10.04 and am enjoying the quick clean boot. I have a dual-boot option as I have come over from XP. Most of my data is still on the old 'c:/' drive and I have to manually mount it every boot-up. Is there any way to automate this process?
View 4 Replies
View Related
Sep 23, 2010
I'm following:To automatically mount a folder over ssh..
everything seems ok[I think?!]
It dosent mount on reboot...
if i take 1 line from the file /etc/init.d/sshfs
[code]....
View 1 Replies
View Related
Jan 5, 2010
I want to mount a partition automatically when ubuntu starts.I have read some articles about but i think i make some mistake.I have read about etc/fstab and I wrote a statement below./dev/sda5/home/xyz/Desktop/ABC udf,iso9660 user,auto,exec,utf8.
View 4 Replies
View Related
Apr 30, 2010
I upgraded to 10.04 and my AWN dock won't automatically start even though the 'box' is tic'd and it's showing in the Startup Applications. I did lose all of my configurations as well after upgrading and had to reinstall everything on the dock.
Also, there are little numbers on the launchers like for Trash and Email that tell me how many items are in there. The Trash was easy to remove the numbers by right clicking and choosing the Preferences option. There was a place to disable that but there isn't one for the Email and those little numbers look well.
View 4 Replies
View Related
May 16, 2010
After restart or suspend/resume the Wifi won't start until I click on my home network from the menu. It used to start without me doing anything (once I setup the wireless).
View 1 Replies
View Related
Dec 5, 2010
After installing some updates recently, 10.10 boots into a command line. I have to type sudo gdm to get into Gnome, at which point it works fine. How can I make it start Gnome automatically again?
View 2 Replies
View Related
Jan 24, 2010
Setup clients on a LAN to automatically mount NFS shares whenever the fileserver is up, without using autofs. Instead a simple bash script which checks if the server is up, and if the shares need to be mounted or unmounted is called by a custom upstart job. For a small office or home network populated with Unix-like computers (e.g., a few Ubuntu desktops or laptops and a fileserver), NFS (Network File System) is a good way to share storage space and centralise the backup of important documents. However, having a fileserver running 24/7 is often overkill for such a setup.
One way to have clients mount NFS shares automatically when the fileserver is turned on, is to use a package called autofs. Unfortunately, there are a few unresolved issues with using autofs in combination with NFS. In my case, when autofs tries to mount NFS shares when the fileserver is turned off, the Gnome desktop, and Nautilus in particular, becomes extremely unresponsive, regardless of the options used. Attempting to mount the share manually from the command line when the server is down however, does return a message of failure quite promptly, without hanging the desktop.
To solve this issue, I wrote a simple bash script that is run through the upstart system. The script simply checks if the fileserver is up, if the shares need mounting or unmounting, and then sleeps for a while before checking again. This works out quite well, so I decided to share this information in case someone else runs into these issues. PrerequisitesThis howto assumes that you have an NFS server set up with shares exported, and one or more clients capable of mounting those shares. For more information on setting up NFS shares and mounting them on a client from the command line, see: SettingUpNFSHowTo.
Clients should be able to ping the server to determine if it is running. Naturally, you need administrator access on the clients to install the script and upstart job outlined below. This script assumes that the directory paths of the shares match the location where they are mounted. In my case, the fileserver has two shares: /media/Storage and /media/Backup. On the clients these shares are mounted on the same paths. If your setup deviates from this, the script needs some modification. The script From the desktop of one the clients, paste the following bash script as a new file in your favourite text editor:
Code:
#!/bin/bash
# The hostname or IP-address of the fileserver:
FILESERVER="myfileserver.local"
# Check every X seconds (60 is a good default):
[code]...
Now adjust the FILESERVER variable. In this example, my fileserver is called myfileserver. By default, Ubuntu sets up your networking environment in such a way, that computername.local can be used to reach that computer over the local network, so the network name for myfileserver is myfileserver.local. Of course, you can also use the IP-address of the server. Next, change the MOUNTS variable to match the NFS shares exported by your NFS server. MOUNTS is an array; multiple entries are separated by spaces. So if you have one share exported as /media/MyShare, that line would look like this:
Code:
MOUNTS=( "/media/MyShare" )
An advantage of mounting shares in /media, is that they automatically show up as mounted drives on the user's desktop. Note that this howto assumes that you use the same paths for the share on the server and client side! Save the script to your desktop with an obvious name. In this example we call it mount_my_nfs_shares. Open a terminal and cd to the desktop. Make the script executable by calling:
Code:
chmod +x mount_my_nfs_shares
Next, move it to a place where it can be called by our upstart job, but also from the console to test. A good place to put such custom executables is /usr/local/bin.
Code:
sudo mv mount_my_nfs_shares /usr/local/bin
This script uses the logger command to tell the system's log what it is doing. To test this script, open up two terminals; in one, execute the following so we can monitor the log messages:
Code:
tail -f /var/log/syslog
In the other, simply execute mount_my_nfs_shares. If the script works, your shares should show up on the desktop and the computer:// location in Nautilus. If the fileserver goes down or becomes unreachable, the shares should disappear, and reappear when the fileserver comes back on-line. If this works, move on to the next step. Installing a custom upstart job The next step is to have the clients automatically run the above script when they are booted. We can use upstart for this. Create a new text file, and enter the following:
Code:
# mount_my_nfs_shares - mount NFS shares on fileserver, if present
description"Mount NFS-shares"
start on (filesystem)
respawn
[code]....
How the script works The script enters an eternal loop and keeps checking if it can reach the fileserver once every minute (unless you adjust the INTERVAL variable). If it can reach (ping) the fileserver, it checks if the mounts are already mounted by searching for them (grepping) in the output of mount. If they are not mounted, it tries to mount them. Else, if the server is down, it looks in the output of mount to see if these mounts exist. If they do, it tries to unmount them with the -f flag (useful for unmounting unreachable NFS shares).
View 9 Replies
View Related
May 28, 2010
The other day a power outage affected an SSH server I have running 9.04 (32-bit desktop ed.). I have two external USB hard drives used for cron-scheduled backups (one for rsync, one for an incremental) that are connected at all times. When I reboot, they no longer mount automatically until I login to the gnome desktop. As far as I can remember, they always mounted automatically before as disk-1 and disk-2, but now I have to login to the gnome desktop and then log back out.
I never had them listed in the fstab before since they just worked, & hope to avoid doing it this way since the drives sometimes get their paths (sdd and sde) interchanged. However, is the best way to fix this to use UUIDs in fstab vs. using sde or sdd? (such as in this post: 4highlight=external+hard+drives+don't+mount+boot Or maybeust remembering incorrectly & ubuntu doesn't mount them automatically until login? Sometimes I have to reboot remotely, & this problem would cause the rsync to fill up my system drive.
View 2 Replies
View Related
Oct 10, 2010
Ubuntu is automatically mounting all windows partitions. I wanted to mount only one common partition i,e NTFS storage partition to mount and used for both OSs i,e windows and Ubuntu. I unticked all partitions in NTFS configuration tools but in vain.
View 14 Replies
View Related
Jun 5, 2010
I have two 1TB HDD's formatted in NTFS, one has windows and other stuff i use even on linux and the other is all media. i can mount them easy, but this is a minor annoyance because everytime i log in i must type in my password. is there no way to have them auto mounted on startup?
View 10 Replies
View Related
Jun 5, 2010
I have checked out 'similar threads' to no avail. I am using Mandriva 2010 on /dev/sda6. I have two Pioneer CD/DVD drives. Some data CDs/DVDs automatically mount. Some do not show up in Dolphin's 'Places'. I tested many. Age of disk, brand name and whether pen parked gave no significant correlation. Using PCLinuxOS 2010 (live disk) created the same problem - not altogether surprising. But using Ubuntu 9.04 (live disk) created no problem.
Booting with slightly different kernel versions solved nothing. Using Windows XP or Mandriva 2009.1, both on other partitions, created no problem but when I tried Ubuntu 10.04 (live disk) I had 'no signal'. I have just put in a new Radeon (later than HD 2000) video card (fglrx) so I wondered if Ubuntu does not like it but this issue is unimportant - if Mandriva 2010 can be tamed. What did correlate was that both drives either recognised or both ignored any particular disk. Manual mounting as root works okay but my wife is not comfortable with the CLI.
The fstab file is below:
# Entry for /dev/sda6 :
UUID=14353eb6-82ff-45cc-ae64-8eed13800b46 / ext3 defaults 1 1
/dev/sr0 /media/cdrom auto umask=0,users,iocharset=utf8,noauto,ro,exec 0 0
/dev/sr1 /media/cdrom1 auto umask=0,users,iocharset=utf8,noauto,ro,exec 0 0
none /proc proc defaults 0 0
# Entry for /dev/sda5 :
UUID=07e9f3ee-d92e-4696-b762-03a07ed102d2 swap swap defaults 0 0
I checked but could not positively identify this issue as a known bug in Mandriva 2010.
View 2 Replies
View Related
Feb 3, 2010
I'm using vnc to connect to my ubuntu box from my windows box however I don't like the way it works.1) It doesn't start automatically. I have to be logged into my username before I can connect to my box.2) It takes control of the screen on my ubuntu box which isn't what I really want to happen. I'm used to connecting via rdp in windows where I connect to the other computer and if you looked at the other screen you wouldn't even know I am logged on.This is handy if someone else is using the pc plus I just don't like everything that I am doing to appear on a computer screen that I can't see. I find it kind of freaky.
View 5 Replies
View Related
Mar 4, 2010
When I go to 'Places' on my panel, my windows drives are listed. I can click on one, it then asks me for password, then it puts a hard drive icon on my desktop. This is excellent.They are listed as '200 GB Filesystem' etc.My only problem, is how to make these icons stay after I shut down. I don't want to do this every time I boot up.
View 4 Replies
View Related
Feb 2, 2011
I am trying to use wireshark on my ubuntu 10.10 laptop. However I have found out that wireshark will only detect my network cards when it is started with root permissions. How would I make it automatically start with root permissions?
View 2 Replies
View Related