יום שני, 16 בדצמבר 2013

Resizing a GPT partition with a ext4 filesystem [CentOS / RedHat]


1. Run parted on your device: parted /dev/sdX
2. Change display unit to sectors: unit s
3. Print current partition table and note the start sector for your partition: p
4. Delete your partition (won't delete the data or filesystem): rm <number>
5. Recreate the partition with the starting sector from above: mkpart primary <start> <end>
6. Exit parted: quit
7. Check the filesystem: sudo e2fsck -f /dev/sdXX
8. Resize filesystem: sudo resize2fs /dev/sdXX

Creating a Partition Size Larger Than 2TB [CentOS / RedHat]

You cannot create a Linux partition larger than 2 TB using the fdisk command. The fdisk won't create partitions larger than 2 TB. 

Here is an example how to create partition with 3.21 TB size:

1. fdisk -l /dev/sdb
2. parted /dev/sdb
3. (parted) mklabel gpt
4. (parted) unit TB
5. (parted) mkpart primary 0.00TB 3.21TB
6. (parted) print
7. mkfs.ext4 /dev/sdb1
8. # mkdir /data
   # mount /dev/sdb1 /data
   # df -H

יום שלישי, 3 בדצמבר 2013

Reset Root Password in Ubuntu

To enable the root account and reset the password type:
sudo passwd -u root

Create bootable Live USB - unetbootin

Introduction

UNetbootin allows you to create bootable Live USB drives for Ubuntu, Fedora, and other Linux distributions without burning a CD. It runs on Windows, Linux, and Mac OS X. You can either let UNetbootin download one of the many distributions supported out-of-the-box for you, or supply your own Linux .iso file if you've already downloaded one or your preferred distribution isn't on the list.

Requirements

  • Microsoft Windows 2000/XP/Vista/7, or Linux, or Mac OS X 10.5+. Note that resulting USB drives are bootable only on PCs (not on Macs).
  • Internet access for downloading a distro to install, or a pre-downloaded ISO file

Features

UNetbootin can create a bootable Live USB drive, or it can make a "frugal install" on your local hard disk if you don't have a USB drive. It loads distributions either by downloading a ISO (CD image) files for you, or by using an ISO file you've already downloaded

יום שני, 2 בדצמבר 2013

How to Login as Root in Ubuntu

1. sudo passwd root
 
2. sudo sh -c 'echo "greeter-show-manual-login=true" >> /etc/lightdm/lightdm.conf.d/50-unity-greeter.conf' 

3. reboot the system

Install Adobe Flash Player on Ubuntu

1. Open a terminal window

2. Type in the following commands then hit Enter after each.

sudo apt-get update
sudo apt-get install flashplugin-installer