The desktop was finally hung up. Although not completely hung up, start-up has been quite troublesome, and upgrade to the 3.0 kernel after the display has been extinguished. Running must use the Xmanager in the notebook to play remotely.
So I decided to get a real Linux on my laptop. After all, the notebook memory is not very large, virtual machine, speed uncomfortable. So I want to install one on the U disk. A 16G u disk is prepared.
The notebook is Win7, and all the partitions are NTFS. In this case, using a U disk to install Debian is quite exciting. I downloaded the Debian ISO and didn't bother to carve it, so ... My installation process may be the most complex in history.
First, u disk partition.
Windows does not admit that a USB disk has more than one partition, so the main partition to Linux under the dry. It would be better to do it with a real Linux host. If you are installing Ubuntu, you can also use its live CD. Unfortunately, I want to install a Debian. Fortunately I have a real Linux host-although only from the Xmanager.
Google out of the article said U disk partition with Fdisk. But the results I tried were not reliable. Use parted this tool after all practical. Interactive, more useful. The RM command deletes all partitions first, then creates a few partitions with Mkpart, and Mkfs on the write. I'm going to divide the 16G into three districts. One swap, one/, one home. Note that the partition type is linux-swap when you divide the swap. The other two partitions are divided into ext2. Ext3 is said to read and write to hard disk more frequently. U disk speed is not too high, or read less as well. After partitioning, you need to set the second ready to install/partition to a partition that can be started with the toggle command. Reboot the mainframe when you're done.
Need to explain: this section of the U disk, Windows do not know, will let you format, do not stupid, or you white busy.
Step two, install grub. I don't want any linux-related stuff on my hard drive, so grub has to be installed on a USB disk.
Mount/dev/sdb2/media/test
grub-install--root-directory=/media/test/--no-floppy/dev/sdb
One of my USB disk corresponding/DEV/SDB, the second partition is/,grub installed on this partition.
This step is ready to go to the BIOS inside the set U disk priority started.
Step three: Download the hard disk installation version of the Vmlinuz and initrd.gz these two files. My ISO is the latest squeeze stable version, corresponding to the file in http://mirrors.163.com/debian/dists/squeeze/main/installer-i386/current/images/hd-media/. It is no problem if the two files are dropped to any NTFS partition after downloading. and the ISO file should be placed on another ordinary USB disk. Of course, if your luck is not a special back, you can also put Vmlinuz and initrd.gz and ISO on the same USB disk instead of the hard drive. Of course, I belong to the special back. When the BIOS is started, it is not installed on the grub disk, so my vmlinuz cannot be placed on this disk. You can really consider putting it on a USB disk with grub. But...... This requires the help of a Linux host. So, my USB drive with an ISO can't be plugged in at the beginning.
Step Fourth: Boot grub
Use the LS command to see how many partitions
Root (HD1,MSDOS3) #这是我存放vmlinuz文件的位置. Three partitions on my hard disk.
After this line is executed, the partition is prompted for NTFS
Linux (HD1,MSDOS3)/vmlinuz
INITRD (HD1,MSDOS3)/initrd.gz
Boot
Insert a U disk with ISO before boot return.
The fifth step, at this time has entered the normal installation mode.
Sixth: Do not allow grub to be installed in the MBR-this will give the hard drive a grub. Select the root partition to install to the U disk. The USB disk is not able to boot at this time. You must go back to the Linux host to reinstall Grub.
If you are familiar with grub, in this step choose not to install grub. To configure the boot menu by manually modifying the Grub.cfg
Finally, there is a need to install a wicd-gtk on Debian, otherwise the wireless network is more difficult to get.
The hardest thing about this is that grub supports booting Vmlinuz from an NTFS partition, while Vmlinuz does not support booting ISO from NTFS, so you must use another USB drive.
-------------------
The above is my USB disk installation Deiban. That's the system I'm using right now.
Whether you believe it or not
Anyway, I believe ^_^.