Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

enter image description here

I think it will be awesome if after login the folder that locate not at the same localhost / can open it self like and application as skype and others. do we can make it because if this one works for it , it will help others people too that save musics and other file under the /home folder or the like me , i do need to click other partitions to listen songs and movie and other what i want is just single click when i do login. the partitions / folder / inode was open so i can simply click the Play button at the rhythmbox and click next just to watch the next edition of serial movies ^^ here the photos, i need this partition / hard disk to open during start-up "almacén hard disk. thx

enter image description here

for daniel request .

santos@santos:~$ lsblk
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda      8:0    0 298.1G  0 disk 
├─sda1   8:1    0     1K  0 part 
├─sda2   8:2    0   100M  0 part 
├─sda3   8:3    0  68.6G  0 part 
├─sda4   8:4    0 130.9G  0 part /media/almacén
├─sda5   8:5    0  46.6G  0 part 
├─sda6   8:6    0   2.3G  0 part [SWAP]
├─sda7   8:7    0  46.6G  0 part /
└─sda8   8:8    0   3.1G  0 part [SWAP]
sr0     11:0    1  1024M  0 rom  
share|improve this question
    
It is preferred if you can post separate questions instead of combining your questions into one. That way, it helps the people answering your question and also others hunting for at least one of your questions. Thanks! –  Aditya Jan 26 '13 at 15:55
1  
to clarify your question do you just want to mount all your hard disks on start-up so you can use them immediately like you would use your normal / filesystem (this can be done in the background without anything popping up on your screen). Or do you want to mount the filesystem and show it's content in a file manager window right on start-up? –  Daniel Jan 26 '13 at 18:03
    
@Daniel only one harddisk partition .. where there is music and video and other file .. so i dont need to mount it to play musics . –  santosamaru Jan 30 '13 at 11:23
1  
please mount your hard drive and post the output the lsblk command into your question. I will write an answer as soon as I'm home (cell phone right now) –  Daniel Jan 30 '13 at 11:37
    
I believe this is a duplicate of How to automount a gvfs file system on logon? –  gertvdijk Jan 30 '13 at 15:14
add comment

3 Answers 3

up vote 1 down vote accepted
+50

you need to edit your /etc/fstab file in order too mount the external hard drive partition on boot. To do this type the following:

You need to get the UUID of your external hdd, type:

sudo blkid /dev/sda4

copy the line UUID="some-long-number"

now unmount the disk and make a folder to mount it in the future:

sudo umount /dev/sda4

then:

sudo mkdir /media/almacén

now type:

sudo nano /etc/fstab

and go to the end of the page using your arrow keys.

now copy&paste the following

#external hard drive almacén was on /dev/sda4 at the time of writing.
UUID=some-long-number  /media/almacén       auto        defaults        0     2

where UUID=some-long-number is the UUID you got from the 'blkid' command earlier
(BUT WITHOUT THE " " )

Shutdown your computer, plug the external hdd back in and restart. Your drive partition 'almacén' should now be mounted on '/media/almacén' on login.

share|improve this answer
add comment

From Startup Applications, Create a new startup entry in which enter command as

bash -c 'nautilus "/path/to/folder"'
share|improve this answer
add comment

You may need to create an autostart folder, but you can do it this way:

gnome-desktop-item-edit /home/yourUser/.config/autostart/nameYourShortcut.desktop --create-new

For the command in your new short cut that will be launched at startup use:

nautilus /the/directory/path/here
share|improve this answer
    
the problem with this is you'd still have to mount the device /dev/sda4 to /media/almacen first (or in fact any other location) in order to use it with the nautilus command or else the /path/to/directory won't be accesible. –  Daniel Jan 30 '13 at 13:06
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.