Operating Systems > Linux and UNIX

deep fstab

(1/3) > >>

worker201:
Hey, this might sound stupid, but I got this new external hard drive that is formatted fat32.  I plugged it in and it just works, how about that?  But anyway, I want to change its mount settings.  Normally, I just open fstab and blingbling, there ya go.  But since I never wrote an fstab entry for this device, and I will probably be unplugging/replugging it often, how does that work?  If I change my fstab while the thing is in, will it remember?  How long will it be in the fstab after unmounting it?

btw, if you type Just with your left hand in the wrong place, you get Judy (qwerty only)

H_TeXMeX_H:
Well, I've edited the fstab before and all changes stayed ... it's a text file holding information about standard mounting procedures, there's no reason for an entry in there to just dissapear

piratePenguin:
I've plugged my mp3 player into this Ubuntu box before and there's no line in fstab, so either it removed the line after I last unplugged it or something, or there never was a line in fstab.

Either way, add/modify your own line, and hope Ubuntu doesn't overwrite it or do it's own thing. Might need to mount the FS manually then, I dunno.

edit: Hm, take a look at /etc/hal/fdi/policy/preferences.fdi I bet you can modify that, what is it you want to do?
editedit: and take a look at hal-device-manager - select your disk, and look at the advanced tab (so you know what settings you can (probably) change).

H_TeXMeX_H:

--- Quote from: piratePenguin ---I've plugged my mp3 player into this Ubuntu box before and there's no line in fstab, so either it removed the line after I last unplugged it or something, or there never was a line in fstab.

--- End quote ---

Did it use automount ? If so automount uses /etc/auto.master not /etc/fstab

source: http://mercury.chem.pitt.edu/~sasha/LinuxFocus/English/January2001/article141.shtml

piratePenguin:

--- Quote from: H_TeXMeX_H ---Did it use automount ? If so automount uses /etc/auto.master not /etc/fstab

source: http://mercury.chem.pitt.edu/~sasha/LinuxFocus/English/January2001/article141.shtml
--- End quote ---

Nope, Ubuntu doesn't use automount by the looks of things.

Anyhow, you don't need a line in fstab to mount a filesystem - all the options etc can be specified on the command line.

To make a FS mount in a different mount-point (for example), always and automatically, my bet (just looking at what's already (commented out) in this config file) is you would add something like this to the part of /etc/hal/fdi/policy/preferences.fdi :
--- Code: ---

 
    /path/to/new/mount/point
 

--- End code ---
switch 49b9a949-e90a-407a-a21c-45fa1fdaabe7 with the volume.uuid of your FS - find it in the device manager, at the bottom of the advanced tab.

I'm not sure if that works at all though.

edit: pity you can't just make the changes in the device manager and it'll edit the config file, that'd be a neat feature

Navigation

[0] Message Index

[#] Next page

Go to full version