Stop Microsoft
Operating Systems => Linux and UNIX => Topic started by: worker201 on 28 July 2006, 02:13
-
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)
-
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
-
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).
-
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.
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
-
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
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 :
/path/to/new/mount/point
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
-
Another "duh" - do I need to unmount the devices before making fstab changes/additions?
Here's my current fstab:
# This file is edited by fstab-sync - see 'man fstab-sync' for details
LABEL=/ / ext3 defaults 1 1
none /dev/pts devpts gid=5,mode=620 0 0
none /dev/shm tmpfs defaults 0 0
none /proc proc defaults 0 0
none /sys sysfs defaults 0 0
/dev/hdd1 /home ext3 defaults 1 2
/dev/hda5 /mnt/windows vfat gid=501,umask=002,user 0 0
LABEL=SWAP-hdb2 swap swap defaults 0 0
/dev/sda2 /media/usbdisk vfat pamconsole,exec,noauto,utf8,managed 0 0
/dev/sda1 /media/usbdisk1 vfat pamconsole,exec,noauto,utf8,managed 0 0
/dev/fd0 /media/floppy auto pamconsole,exec,noauto,utf8,managed 0 0
/dev/hdc /media/cdrecorder auto pamconsole,exec,noauto,managed 0 0
/dev/sdb /media/CRUZER vfat pamconsole,exec,noauto,utf8,managed 0 0
The ones I want to change are sda1 and sda2, to match settings of hda5.
And what's this fstab-sync shit? Never saw that before!
-
Another "duh" - do I need to unmount the devices before making fstab changes/additions?
No, but you will have to remount the device for the new options etc to come into effect.
And what's this fstab-sync shit? Never saw that before!
I don't have it. What distro are you using? I bet fstab-sync is a (crappier :p) alternative to HAL. Run it and it sets up fstab according to what devices are attached.
-
Using FC4.
-
Using FC4.
Yea, HAL is only starting to show in the newer distros.
http://freedesktop.org/wiki/Software_2fhal
-
Yea, HAL is only starting to show in the newer distros.
http://freedesktop.org/wiki/Software_2fhal
[offtopic]Are those suspend/hibernate scripts any good?[/offtopic]
-
[offtopic]Are those suspend/hibernate scripts any good?[/offtopic]
[offtopic]No idea ;)[/offtopic]