Читать книгу Linux For Dummies - Richard Blum - Страница 30
Partitioning using Linux tools
ОглавлениеIf you're in a situation where you don't currently have Windows installed on the hard drive but would like to partition the hard drive first, you can use Linux tools to do the work for you. The easy solution is to boot your PC using a Live distribution and use the disk management tools available. Plenty of Live distributions include disk management tools by default, but by far the most popular is the KNOPPIX Linux distribution.
The KNOPPIX Linux distribution was the first to create a live Linux version, even back before there were DVDs (it was called a LiveCD!). What keeps KNOPPIX at the top of the list of popular Linux distributions is the myriad of utilities it includes by default. It touts itself as a rescue disk — a way to boot your PC if things go horribly wrong with the existing operating system, and be able to troubleshoot and possibly fix issues.
Follow these steps to partition your hard drive using KNOPPIX:
1 Download the latest KNOPPIX CD or DVD ISO image from the KNOPPIX website at
www.knopper.net
.2 Burn the ISO image onto a bootable CD, DVD, or USB stick using a standard ISO image burning tool.Jump to the “Creating a boot disk” section” for quick instructions on how to do this, then come back here.
3 Boot your PC using the KNOPPIX LiveDVD.At the boot: prompt, press the Enter key to start KNOPPIX.
4 Select Graphical Programs ⇒ startlxde from the main menu.The KNOPPIX graphical desktop environment comes up. It's a fairly bare-bones graphical desktop so it can run on just about any PC, but it gets the job done.
5 From the KNOPPIX graphical desktop, click the Terminal icon in the taskbar at the bottom of the desktop.A Terminal session starts that provides access to the command prompt (I talk more about that in Chapter 16).
6 At the command prompt in Terminal, enter the command: sudo gparted.The GParted application is a popular disk management tool for Linux. It provides an interface similar to the Windows disk management tool, as shown in Figure 2-4.
7 Right-click inside the partition you need to shrink.
8 Select Resize/Move from the pop-up menu.The Resize/Move dialog box opens, as shown in Figure 2-5.FIGURE 2-4: The Linux GParted disk management tool main window.FIGURE 2-5: The GParted Resize/Move dialog box.
9 In the Resize/Move dialog box, either drag the right end of the partition graphical box to resize the partition, or enter a new value in the New Size text box.The colored portion of the box indicates where the existing data in the partition is stored. You should be able to move the end of the partition down close to that area.
10 Click the Resize/Move button to initiate the resizing process.
After the hard drive is partitioned you can exit the tool and shut down KNOPPIX. And that's all there is to it! After you've resized the partitions, you're ready to move on to the next step in preparing your PC for Linux — checking your hardware, as described in the next section.