Jan 142014

Sometimes you need to clone partitions on your hard drive for various reasons, hd damaged, creating a RAID 1 or something similar, then it is often tedious and impractical to perform the operation using the normal tools like fdisk, in this case you can use sfdisk.

As reported in the manual:

sfdisk is a non-interactive program to edit the partition table, which is useful for creating scripts. The normal use of this service program involves the preparation of a file containing the instructions on the partitions to be created within a disk specified explicitly. Even if there is a special syntax for these instructions, it may be convenient to use since it is obtained from a query with the same sfdisk, as will be shown.

Continue reading »

flattr this!

Nov 182013

Original article first published in Spanish on http://vidagnu.blogspot.it/

Yesterday I ran into a problem in a SWAP partition on an Astaro Command Center, so I decided to restart with an Ubuntu CD, and my first attempt to repair the system was with the fsck command, but when trying to use it I got the message fsck.swap: command not found

So I check with the badblocks command that the partition had no bad blocks.

sudo badblocks -v /dev/sda2

The above command did not return any error, then searching the Internet I found this simple way to rebuild a damaged swap partition.

Continue reading »

flattr this!

Jun 142013

I’m in the process of re-installing ArchLinux on my new Dell Latitude 6530, this is because at the end of the first installation I noticed that while running fdisk -l I received a message like this one (that’s not my original disk, but the message was the same):

Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *          63    39070079    19535008+  83  Linux
<strong>Partition 1 does not start on physical sector boundary.
</strong>/dev/sda2        39070080    46877669     3903795   82  Linux swap / Solaris
/dev/sda3   *    46877670   144536804    48829567+  86  NTFS volume set
<strong>Partition 3 does not start on physical sector boundary.
</strong>/dev/sda4       144536805  1250263727   552863461+  86  NTFS volume set
<strong>Partition 4 does not start on physical sector boundary.</strong>

I “shrinked” the original Windows 7 to 40 GB with Gparted live and created the partitions during the installation of ArchLinux with cfdisk so what’s wrong with these operations ?

Continue reading »

flattr this!

Change your Grub options with Grub Customizer

Edit the menu of grub is not the easiest thing to do, and if you do some mistakes there is the risk that you are not able anymore to boot into your Linux, for these reasons it’s usually suggested to use some tool to edit grub configurations, today I’ll show you Grub Customizer. Grub Customizer is [...]

5 ways to check your disk usage on Linux

In the past I’ve wrote an article about the commands du and df that can respectively give you information about the Disk Usage and the Disk Free of your Linux computer. I personally use both of these commands a lot of times at work to check file system and/or directory, but I also understand that [...]