LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 10-24-2004, 05:41 PM   #1
Nightfrost
Member
 
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?

Thanks.
 
Old 10-24-2004, 10:04 PM   #2
haimeltjnfg
Member
 
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, 05:07 AM   #3
Nightfrost
Member
 
Registered: Jun 2004
Location: Sweden
Distribution: ArchLinux
Posts: 201

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

Quote:
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.
 
  


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

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

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration