LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices



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

Rep: Reputation: 15
Thunar, FluxBox & auto mount


hello,

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?

cheers,
Philly

oh and before anyone asks I do have thunar-volman installed.
 
Old 05-14-2009, 02:06 PM   #2
Padawan.AVT
Member
 
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



Code:
#!/bin/bash
# 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 02:08 PM.
 
  


Reply


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 03:21 AM
Slackware 11 + Fluxbox + Thunar?? juboba Linux - Software 5 10-20-2010 08:57 AM
nautilus or thunar freeze when nfs mount not available nephish Linux - Software 6 12-31-2008 05:13 PM
[SOLVED] no icons in thunar when using fluxbox in slackware 12.1 hoodooman Linux - Software 3 09-20-2008 12:53 PM
[SOLVED] kde dialogue box for auto mount in fluxbox? hoodooman Linux - Software 3 12-23-2007 08:53 AM


All times are GMT -5. The time now is 02:09 AM.

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