Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Debian This forum is for the discussion of Debian Linux.


  Search this Thread
Old 10-24-2004, 04:41 PM   #1
Registered: Jun 2004
Location: Sweden
Distribution: ArchLinux
Posts: 201

Rep: Reputation: 30
fstab update code?

OK; this is what I want my debian system to do: when a new USB-storage device is plugged in, I want fstab to be updated in a very simple manner. I don't want any icons on the desktop, nor any automounting; just an fstab-update. If, for example, a USB- or firewire device is plugged in with two partitions, I want these additions to fstab:

/dev/sdf1 /mnt/sdf1 auto defaults 0 0
/dev/sdf2 /mnt/sdf2 auto defaults 0 0

or something like that...

I've been looking for a tool which would do this everywhere ever since I started using debian, but with no result. Can anyone give me directions? If there's no such tool (which would be very suprising), does anyone know what I should use as a base and then program something like that myself - it shouldn't be too hard to do, should it?

Old 10-24-2004, 09:04 PM   #2
Registered: May 2004
Distribution: debian
Posts: 235

Rep: Reputation: 30
why not leave those lines in fstab all the time?

ps. check out hotplug
Old 10-25-2004, 04:07 AM   #3
Registered: Jun 2004
Location: Sweden
Distribution: ArchLinux
Posts: 201

Original Poster
Rep: Reputation: 30
Thanks for the reply; I'll check out hotplug

why not leave those lines in fstab all the time?
Well, I want to be able to plug in USB sticks in any order. For example, I have one USB-stick with 1 partition and one external HDD with 3 partitions. I want fstab to have the proper lines independently of which one I happen to plug in first.


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
small syntax problem with C code (implemented in Code Composer Studio) illiniguy3043 Programming 6 01-07-2008 02:14 AM
fstab problem: mount: can't find dvd in /etc/fstab or /etc/mtab Nikon01 Slackware 5 11-17-2006 06:15 AM
User Preferences: Use HTML code instead of vB code? (vB code is overrated) stefanlasiewski LQ Suggestions & Feedback 5 07-26-2005 01:37 AM
FSTAB update without rebooting mijohnst Linux - General 2 12-20-2004 10:54 AM
(version 5.1 chapter 08 fstab) vs (man fstab) rgiggs Linux From Scratch 2 06-03-2004 05:55 PM > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 11:41 AM.

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