Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 05-14-2009, 07:57 AM   #1
LQ Newbie
Registered: Feb 2006
Location: UK
Posts: 27

Rep: Reputation: 15
Thunar, FluxBox & auto mount


I have my OS installed on a USB HDD, on this drive I have my OS partitions and two other EXT3 partitions which are used for storage.

what I am wanting to do is setup flux to mount these two storage partitions automatically when it starts.

I have tried adding thunar --daemon & to ~/fluxbox/startup but it dose not automatically mount these partitions. the only way I can mount them is by opening thunar and clicking the partition from side pane, this then mounts the partition. I can not use /etc/fstab to mount these as the device location always changes on boot for some reason (/dev/sda1 to /dev/sdc1 and so on)

so, can anyone help me out with setting these partitions to automatically mount when I login?


oh and before anyone asks I do have thunar-volman installed.
Old 05-14-2009, 01:06 PM   #2
Registered: Feb 2006
Distribution: Gentoo, Slackware, Debian, Suse
Posts: 86

Rep: Reputation: 15
Well, you can make some tweaky script that will mount your drives and add it to rc to be executed at boot time

Something like

# Copyleft by Padawan.AVT :)
# Let's supose you have a drive like that:
#  Device Boot      Start         End      Blocks   Id  System
#/dev/sdc1            1          60801   488384001   83  Linux
#/dev/sdc2            60901      3485143   3424242   83  Linux

DRIVE1=`fdisk -l | grep 488384001 | awk -F" " '{print $1}'`
DRIVE2=`fdisk -l | grep 3424242(or whatever you have in drive blocks) | awk -F" " '{print $1}'`

mount $DRIVE1 /mnt/sdc1
mount $DRIVE1 /mnt/sdc1

Last edited by Padawan.AVT; 05-14-2009 at 01:08 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] thunar stopped to mount USB storages (Debian squeeze) kaz2100 Debian 11 09-27-2011 02:21 AM
Slackware 11 + Fluxbox + Thunar?? juboba Linux - Software 5 10-20-2010 07:57 AM
nautilus or thunar freeze when nfs mount not available nephish Linux - Software 6 12-31-2008 04:13 PM
[SOLVED] no icons in thunar when using fluxbox in slackware 12.1 hoodooman Linux - Software 3 09-20-2008 11:53 AM
[SOLVED] kde dialogue box for auto mount in fluxbox? hoodooman Linux - Software 3 12-23-2007 07:53 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:01 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration