Debian/Ubuntu Tips and Tricks

Debuntu

Debian/Ubuntu Tips and Tricks

How-To: Make a file Immutable/Write protected

Posted by chantra on 10th June 2013

There might be time when you want to make sure that a file will be protected from accidental/automated change/deletion. While one can protect a file/directory in some ways by removing write permissions using standard file permission on Unix already can save you from some situations, there is more that can be done on Linux.

Read the rest of this entry »

Tags: ,
Posted in Administration, HowTo, System | 2 Comments »

How-To: Rescan a SCSI bus without Rebooting

Posted by chantra on 12th December 2009

When you hotplug a hard drive in a virtual machine, the drive do not show in fdisk -l output until you reboot your VM.
In order to get the drive to appear, the SCSI bus need to be rescanned.

Read the rest of this entry »

Tags: , ,
Posted in HowTo, System | 4 Comments »

How-To: Install Ubuntu on LVM partitions

Posted by chantra on 28th July 2007

LVM (Logical Volume Manager) is a great piece of software which allow you to deal with Logical Volumes. Using LVM along with ext3 filesystem, you are allowed to extend the size of your logical drives which is pretty handy when running out of space.

Distributions like Fedora, Suse and Debian have a LVM aware installer. Unfortunately, at the time this article was written, Ubuntu does not offer such settings with the Desktop Install CD.

This article will cover how to create LVM partitions and how-to generate your partitions from this LVM volume.

Read the rest of this entry »

Tags: ,
Posted in Administration, HowTo, System | No Comments »

How-to get your removable device mounted under an explicit and persistent name

Posted by chantra on 27th December 2006

You might have wondered how comes that your mp3 player is automatically mounted under a nice name like JUKEBOX for instance, while you usb stick simply get a name like USB_BAR and USB_BAR-1... for its partitions.
This is actually due to hal automatically mounting the device.
This tutorial will show you how to give a label to your partitions in order to have your removable devices mounted under an explicit location such as: /media/red-usb-disk or /media/my-big-fat-partition.

You might have wondered how comes that your mp3 player is automatically mounted under a nice name like JUKEBOX for instance, while you usb stick simply get a name like USB_BAR and USB_BAR-1... for its partitions.
This is actually due to hal automatically mounting the device.
This tutorial will show you how to give a label to your partitions in order to have your removable devices mounted under an explicit location such as: /media/red-usb-disk or /media/my-big-fat-partition.

Read the rest of this entry »

Tags: ,
Posted in Administration, HowTo, System | No Comments »