Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (2) </ [1] 2 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: 2 commands for 1 icon, mount /dev/hda2 & sudo emelfm /mnt/hda2< Next Oldest | Next Newest >
nibznik Offline





Group: Members
Posts: 23
Joined: May 2004
Posted: Nov. 20 2004,03:06 QUOTE

hey guys, im trying to make an icon that will open up emelfm for my winXP and have it automatically mounted, i tried

Code Sample

table Icon
 Type: Program
 Caption: Windows Partition
 Command: sudo mount /dev/hda2, sudo emelfm /mnt/hda2
 Icon: .xtdesktop/exec_wine.png
 X: 184
 Y: 103
end



on my .ink for the windows partition icon
but it just didn't work any suggestions?
Back to top
Profile PM 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Nov. 20 2004,04:02 QUOTE

Command: sudo mount /dev/hda2; sudo emelfm /mnt/hda2
or
Command: sudo mount /dev/hda2 && sudo emelfm /mnt/hda2

I really don't know if this works in xtdesktop, but if the commands are passed to bash it should work.
The first one runs both commands in sequence.  The second one runs the second command only if the first is successful.


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
nibznik Offline





Group: Members
Posts: 23
Joined: May 2004
Posted: Nov. 20 2004,17:02 QUOTE

i just added sudo mount /dev/hda2 to my fluxinitrc (im using flux 0.9) so when i start up it is connected. And then i just emelfm to it when i need it
Back to top
Profile PM 
ico2 Offline





Group: Members
Posts: 802
Joined: July 2004
Posted: Nov. 20 2004,23:59 QUOTE

try putting a semicolon (;) after the first command and before the second, keep it all on one line, should work

--------------
ico2
Back to top
Profile PM MSN 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Nov. 21 2004,18:07 QUOTE

Another option (the recommended option) to adding the command to a startup file is to edit /etc/fstab.  Look for the the line concerning hda2 and change "noauto" to "auto".  If there's no "noauto" you should be able to just add "auto" to the options.
This will automatically mount the drive at boot time.
Note: this is pointless if you're not using HD install.


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
5 replies since Nov. 20 2004,03:06 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (2) </ [1] 2 >/
reply to topic new topic new poll
Quick Reply: 2 commands for 1 icon

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code