Skip to main content

Posts

Showing posts with the label USB

Install RedHat RHEL 4 AS to the USB Hard Drive

Install RedHat RHEL 4 AS to the USB Hard Drive 1. Install RedHat RHEL 4 AS to the USB Hard Drive Boot RHEL4 Installation CD, enter "expert". Partition your USB Hard drive manually. In my case, I created 1GB /dev/sda1 mounted as /boot and /dev/sda5 mounted as / (root), I also have /dev/sda7 SWAP partition. After installation, boot from the RHEL4 Installation CD again, type "linux rescue", don't let the installer mount the USB hard drive partitions. 2. Mount partitions # mount /dev/sda5 /mnt/source # mount /dev/sda1 /mnt/source/boot # chroot /mnt/source 3. Restore initrd image # cp /boot/initrd-2.6.9-5.EL.img /tmp/initrd.gz # cd /tmp # gunzip initrd.gz # mkdir /tmp/a # cd /tmp/a # cpio -i (Output: 2078 blocks) 4. Edit init script to load USB drivers # vi /tmp/a/init #!/bin/nash mount -t proc /proc /proc setquiet echo Mounted /proc filesystem echo Mounting sysfs mount -t sysfs none /sys echo Creating /dev mount -o mode=0755 -t tmpfs none /dev mknod /dev/console c...

How to install Damn Small Linux on a USB stick via Linux

DSL (Damn Small Linux) is a mini Linux distribution that occupies only 50 MB of space, approximately. On the website of the distribution, they have published a guide to install DSL on a USB stick but it does not work, so I have posted this guide on how to install a DSL pendrive that does work and can be useful for you. Prerequisites: 1 . Pendrive USB 128 MB minimum 2. ISO image of Damn Small Linux 4.X 3. And a machine running Linux Steps to take to install DSL 4.x in a pendrive. 1. Format the pendrive. (Click here to see how to Format pendrive) 2. Create an EXT3 partition 100 MB USB memory to install the system 3. Create a FAT32 partition with the extra space (this partition is only for use on Windows) 4. Mount the ISO image downloaded to any directory $ mount imagendescargada.iso /mnt/iso -t iso9660 -o loop=/dev/loop 5. Mount the USB drive 6. Copy the contents of / mnt / iso to / mnt / usbdisk 7. Install GRUB on USB stick $ /sbin/grub-install –no-floppy –root-directory=. /dev...

Formatting a USB memory stick (pendrive) in Ubuntu Linux

When you format a hard drive or storage unit, you have different file systems from which we can use, for example, vfat and ntfs for Windows, and swap, ext2 and ext3 for Linux systems. Here, i explain how to format a USB drive using vfat. The reason for using this file system is that it is authorized to work in Windows and Linux. IMPORTANT - The first thing to consider: 1. Remember to be logged in as root user to carry out the formatting, otherwise must use the sudo command to activate access. For my part I'll use the sudo command in this tutorial for easy understanding by novice users. Type: $ fdisk -l It will show all your harddisk partions and usb partitions and their device name. eg: 2. The unit must be dismantled. In most of the distributions can be done by clicking on the secondary drive icon and choose "Unmount the unit." 3. Must be careful to format the drive correctly, but can cause damage to other units such as hard disk for example. As a first step-and-only...