gdvieira is currently certified at Journeyer level.

Name: Gustavo Maciel Dias Vieira
Member since: 2001-05-17 18:37:05
Last Login: 2007-06-20 14:15:52

FOAF RDF Share This



About me.


Recent blog entries by gdvieira

Syndication: RSS 2.0

Read-only Bind Mount with systemd

In a previous post I commented on how to create a read-only bind mount out of a read-write mount. That approach only works if your distribution does a mount -a during boot. As Fedora uses systemd to initialize the filesystems, this trick stopped working quite a while ago.

I finally found another trick to get my read-only bind mount. It's a hack, but it works for me in Fedora 20. First create the bind mount as usual, with an entry in /etc/fstab like this:

/source/dir            /destination/dir    none  bind            0 0

Then, create a systemd service to remount the bind read-only:

Description=Remounts bind mount as read-only.

ExecStart=/usr/bin/mount -o remount,ro /destination/dir


Activate the service:

# cp read-only-mount-bind.service /etc/systemd/system
# systemctl daemon-reload
# systemctl enable read-only-backup.service

The remount service should now be called every time the bind mount is mounted by systemd. You can test it by:

# systemctl stop destination-dir.mount
# systemctl start destination-dir.mount

Syndicated 2014-02-11 14:11:51 from Gustavo M. D. Vieira

HP Laptops with Blank Screen on Linux Boot

It appears many HP laptops (including my dm4-2035br) boot Linux kernels with KMS enabled with the screen backlight set to zero. The screen appears blank, but you can see the image if you shine a flashlight on the screen.

If you have the this problem, you can workaround it by adding the following kernel command line:

How to do it varies from distribution to distribution, but on Fedora you can hit TAB on the installer screen and type it after the other options.

If this solves the problem for you, it might be a good idea to file a bug in Kernel Bug Tracker (under ACPI product).

Syndicated 2013-03-26 16:59:18 from Gustavo M. D. Vieira

Read-only Bind Mount

If you need to bind mount some directory in read-only mode (to securely access a backup dir, for example) it is necessary to first bind mount and then remount in read-only mode.

At least on Fedora, you can perform these two steps automatically using /etc/fstab. Just create a pair of entries like these:

/source/dir            /destination/dir    none  bind            0 0
/source/dir            /destination/dir    none  remount,bind,ro 0 0

I've tested this in a Fedora 14 box. YMMV.

Syndicated 2011-07-23 01:58:09 from Gustavo M. D. Vieira

World IPv6 Day

World IPv6 Day is upon us! Here is a very good article about preparing for it and for the unavoidable IPv6 future.

Syndicated 2011-05-31 19:42:40 from Gustavo M. D. Vieira

Complete Guide to Tap-to-Click in GNOME

Want to know everything that matters about tap-to-click and other touchpad configurations in GNOME. Look no further, go straight to the source.

Syndicated 2010-06-08 01:45:47 from Gustavo M. D. Vieira

36 older entries...


gdvieira certified others as follows:

  • gdvieira certified aoliva as Master
  • gdvieira certified Uraeus as Journeyer
  • gdvieira certified khazad as Journeyer
  • gdvieira certified kov as Journeyer
  • gdvieira certified Gandhi as Journeyer
  • gdvieira certified KlausWuestefeld as Master

Others have certified gdvieira as follows:

  • MikeGTN certified gdvieira as Apprentice
  • Telsa certified gdvieira as Apprentice
  • Uraeus certified gdvieira as Apprentice
  • meni certified gdvieira as Journeyer
  • khazad certified gdvieira as Apprentice
  • fxn certified gdvieira as Apprentice
  • RickMuller certified gdvieira as Journeyer
  • menthos certified gdvieira as Journeyer
  • magsilva certified gdvieira as Journeyer
  • lsdrocha certified gdvieira as Journeyer
  • ara0d3nt16 certified gdvieira as Journeyer

[ Certification disabled because you're not logged in. ]

New Advogato Features

New HTML Parser: The long-awaited libxml2 based HTML parser code is live. It needs further work but already handles most markup better than the original parser.

Keep up with the latest Advogato features by reading the Advogato status blog.

If you're a C programmer with some spare time, take a look at the mod_virgule project page and help us with one of the tasks on the ToDo list!

Share this page