Skip to content

Resize an NTFS partition using Linux

Today I spent some time resizing an existing ntfs partition, in order to make space for an LFS build.

Here's the existing partition structure:

# fdisk -l -u /dev/sdb
Disk /dev/sdb: 465.8 GiB, 500106780160 bytes, 976771055 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xa7cea7ce

Device     Boot     Start       End   Sectors   Size Id Type
/dev/sdb1  *      2048    206847    204800   100M  7 HPFS/NTFS/exFAT
/dev/sdb2       206848 976766975 976560128 465.7G  7 HPFS/NTFS/exFAT
Continue reading "Resize an NTFS partition using Linux"

How to share a directory over a network using NFS

NFS or Network File System is a quick and easy way to share files between Linux hosts on a network. Client machines are able to mount specific directories on a server machine and access the files as if they are on the client's local filesystem.

Configuring an NFS share is as easy as installing a package and editing a config file. For the steps below I'm using a Debian client and a Ubuntu based server.

Configuring the server

Begin by installing the nfs-kernel-server package if it isn't already installed:

sudo apt-get install nfs-kernel-server
Continue reading "How to share a directory over a network using NFS"

Ubuntu - restart wifi connection without rebooting

Restarting a wifi connection without rebooting

I have a Mythbuntu box who's only connection to the outside world is through a wi-fi connection. It can be frustrating when the connection drops out at a critical time - during an upgrade to the next LTS release for instance. Here are some things to try to reset the connection.

 

Continue reading "Ubuntu - restart wifi connection without rebooting"

Backup your web server with rsync, mysqldump and tar

In this article I will demonstrate one way to backup up a Debian based web server, together with MySQL databases.

The concepts shown here should easily adapt to work on most Linux distributions.

The tools we will use include rsync, mysqldump and tar.

Continue reading "Backup your web server with rsync, mysqldump and tar"

Setting up a LAMP server (Linux + Apache + MySQL + PHP)

Linux + Apache + MySQL + PHP

Probably the most common installation of web server, at least for a Linux system, is Linux, Apache, MySQL and PHP. Also possible on a Windows system, in which case it would be known as WAMP. I will cover setting up the former here.

I assume you already have a working Debian based Linux distribution. If not then I highly recommend Debian, or for Raspberry Pi users, Raspbian.

Continue reading "Setting up a LAMP server (Linux + Apache + MySQL + PHP)"