![]() These are the different default Knoppix configurations. (Note: On Redhat/Fedora based systems, the grub configuration file is called nf, not menu.lst as on Debian systems, so replace menu.lst with nf below.) Look at /mnt/boot/isolinux/isolinux.cfg. # grub-install -root-directory=/mnt -no-floppy '(hd0)'įinally, create a menu.lst file. # echo '(hd0) /dev/sda' > /mnt/boot/grub/device.map To install the stage1 boot loader to the drive's master boot record (MBR), edit the device.map file to tell grub-install that /dev/sda1 is a bios drive: (Note - You may want to try the grub-install command below before bothering to find those stage* files, since a recent version will do the copy itself.) Assuming your distribution has Grub's loader in /boot/grub: It is easiest to simply copy all of Grub's files. To set up Grub to boot from the USB drive, copy Grub's working files, namely, stage1, stage2 and the appropriate stage1_5 file, to the partition. Mount the partition and copy the contents of the KNOPPIX ISO image (named KNOPPIX.iso below) to it: If you want to be able to access your files from windows (using explore2fs for instance) make sure you do this instead: Warning: Newer versions of mke2fs now create filesystems with inode sizes of 256 by default (instead of 128), which is causing compatibility issues with a lot of ext2/ext3 tools out there. boot/grub/stage1 not read correctly".) Assuming you settle on an ext3 filesystem: (If they differ, grub-install will fail with a confusing message "file. Regardless, make sure the partition type (set when you partition the drive) matches the filesystem you install. You can use an existing VFAT filesystem (to keep compatibility with Windows/DOS). The rest of this discussion assumes that you can address this partition using /dev/sda1. cfdisk) large enough to hold the contents of the ISO image plus about 5%. This tutorial assumes that you are already running GNU/Linux (and has been tested on Debian).Īttach your USB device to your computer and create a partition (using e.g. To boot an unmodified Knoppix from a USB stick or USB hard drive is quite easy although it requires a few steps. You can create your own copy of Knoppix on USB using the tutorial below (and here: Bootable USB Key), or you can buy a USB stick with Knoppix here for $14.95 including shipping to anywhere in the world. Join the nixCraft community via RSS Feed, Email Newsletter or follow on Twitter.Knoppix is a GNU/Linux distribution that boots and runs completely from cd it can also boot and run completely from a USB drive. He wrote more than 7k+ posts and helped numerous readers to master IT topics. Vivek Gite is the founder of nixCraft, the oldest running blog about Linux and open source. Linux Remove All Partitions / Data And Create Empty Disk.$ sudo d if=/dev/zero of=/dev/vdb bs=446 count=1 See also To wipe out just the Master boot record (MBR), run: $ sudo dd if=/dev/urandom of=/dev/vdb bs=1M status=progress OR do secure erase with dd command showing progress bar: The dd command works on Linux, FreeBSD, MacOS and Unix-like operating system. You can also use the dd commandt o wipe out a signature from a disk device using the following syntax. You will also find a signature backup file with the following ls command: Sample outputs: /dev/vdb: 8 bytes were erased at offset 0x00000218 (LVM2_member): 4c 56 4d 32 20 30 30 31 Restores an ext2 signature from the backup file ~/wipefs-sdb-0x00000438.bak $ sudo wipefs -all -force -backup /dev/vdb You can create a signature backup to the file $HOME/wipefs-.bak: How do I erase current signatures from /dev/vdb? Make sure you use correct device names with the wipefs command. Fig.01: Display current disk or partition signatures or magic stringsīe Careful: With just a few keystrokes, wipefs can wipe out part or all of your hard disk signature or working partition.
0 Comments
Leave a Reply. |