Parted Magic

The Parted Magic Documentation
-Frequently Asked Questions-

Topics
Introduction
Creating the media
Booting
The menus
Using GParted
Screen shots
Saving files
CLI Partitioning
FAQ

1) I do not have a CD-ROM drive or a USB drive. Can I instead boot Parted Magic from my hard drive?

    Answer: The simple answer is yes. The procedure is not so simple, and requires some setup prior to being an available option. Please read the 'Menus' section of the Parted Magic Documentation to learn about this procedure. (here)


2) How do I make a Parted Magic LiveUSB?

    Answer: The instructions can be found at the 'Creating the Media' section of the Documentation. (here)


3) How do I add custom content to the LiveCD?

    Answer: First, find a program to crack open the Parted Magic LiveCD .iso image file, or issue these commands to access the image's contents:

mkdir iso
mount -t iso9660 -o loop /path/to/iso/partedmagic-1.X.iso iso
cd iso
ls

The directory listing command should show the following contents:

isolinux/

The initrd.gz (the .gz is fake) and pmagic files are both compressed with squashfs tools and are located inside the isolinux folder.

Put 'mksquashfs' and 'unsquashfs' in /usr/bin or someplace else in your path.

The contents of the root filesystem is located in the file pmagic. You can unsquash it with this command:

unsquashfs pmagic

You should have a directory called "squashfs-root" with the contents of the root filesystem. Build your packages from source on Slackware 11.0* (or hack the .tgz files), and manually copy the binaries and libraries to the squashfs-root folder. When done, delete the pmagic file and make your new one with this command:

mksquashfs squashfs-root pmagic

Create a folder someplace and put the original isolinux folder and the new pmagic file in there. Recreate the ISO:

export LIVECD=/path/to/new/folder/with/new/stuff
export ISODIR=/tmp
cd $LIVECD/
mkisofs -R -l -D -b isolinux/isolinux.bin -o $ISODIR/partedmagic-livecd-hack.iso -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -V "Parted Magic" $LIVECD

Your new .iso will be in /tmp

(*Parted Magic is not based on Slackware, it shares the same versions of gcc and glibc.)


4) Is there a way to permanently skip the Parted Magic Graphical Configuration menu, and still use a custom display settings?

    Answer: Sure, but the configuration will be tied to your specific system. To do this, boot Parted Magic temporarily and configure the display settings according to your system's video hardware and personal preference, and follow the steps for your selected media.

(Steps for LiveCD users:)
Copy the file '/etc/X11/xorg.conf' (now configured with your system settings) to a location easily accessible (you will also need access to the Parted Magic LiveCD's .iso image file). The next step is to remaster the image with the addition of your customized, xorg.conf file. (The ISO must be remastered on a writable location, like a hard drive's mounted partition or a USB stick.) ISO Master was added to the Help menu so you can remaster the image from the Parted Magic session. After remastering the ISO image file, and then from another OS burning the image to a new CD, the root files on the disc should appear as below; and your new CD is ready for booting.

isolinux/
xorg.conf

(Steps for LiveUSB users):
Mount the LiveUSB drive, and copy the now-configured, configuration file '/etc/X11/xorg.conf' to the root of the mounted drive. A directory listing should show the following key files:

ldlinux.sys
pmagic/
syslinux.cfg
xorg.conf

Saving the configuration file at the root of the LiveCD (or LiveUSB) allows the file to be loaded as Parted Magic boots, and consequently, for the Graphical Configuration menu to be skipped.


Please visit the Parted Magic Help Forums for additional questions and help.
http://partedmagic.freeforums.org

Return to top