Upgrade Fedora16 and install Ubuntu11.04

Source: Internet
Author: User
Two and a half years ago, I installed Fedora11, and then upgraded it to Fedora12 and Fedora14. during this period, a large number of software was installed, and the system was getting slower and slower, the decline in system performance is also related to the increase in the complexity of Fedora over the past two years. I was tempted to install Fedora11 two and a half years ago, and then upgraded to Fedora 12 and Fedora 14, during which a large number of software was installed, and the system was getting slower and slower ...... Although there are some reasons why I am not willing to optimize myself, the decline in system performance is also related to the increase in the complexity of Fedora over the past two years. I was tempted to upgrade to Fedora 16 the night before. I encountered no problems in the process. I just found that: (1) The Gnome 3 interface cannot be accessed because the laptop configuration is too low and there is no independent video card; (2) Classic Gnome with compiz is basically unavailable, although I have already installed compiz; (3) Although the KDE interface is fancy, it is not very easy to use; (4) wireless NICs often cannot work.
 
Based on the above defects, I finally had to endure and decided to change the system to Ubuntu or FreeBSD. I prefer FreeBSD, but I have to give up temporarily because the download speed is slow.
 
Ubuntu will soon be finished. First, create a boot USB flash drive under Fedora. see How to create and use Live USB:
 
Check the size of your USB stick
Specify USB sticks indicate the size on the packaging or the outside of the stick.
If you don't know the size of the stick, or want to check it for data, you should be able to auto-mount the USB stick by inserting it into a USB port. you can check the contents and size using the graphical file manager. in Linux, you can also use the command line:
$ Df-h Filesystem Size Used Avail Use % Mounted on/dev/mapper/VolGroup00-LogVol00 143G 14G 122G 10% // dev/sda1 99 M 12 M 82 M 13%/boot tmpfs 1009 M 0 1009 M 0%/dev/shm/dev/sdb1 3.9G 4.0 K 3.9G 1%/media/usbdisk
USB drives are usually mounted in/media. In this case, the device is/dev/sdb1, has a 3.9 GB capacity and is almost empty.
Take note of "/dev/sdb1" or equivalent; you will be specifying the device name if you use the command line method.
 
How to Partition
 
 
CAUTION
This will erase all data on the USB drive! Please read the instructions below carefully.
If the drive has not been partitioned properly (or if you are unsure), use fdisk to repartition it.
It is also possible to do a non-destructive installation of a LiveUSB image, if you have sufficient empty space. ee How to install non-destructively
The fdisk command must be run as root. Include only the drive name in the command, not the partition number. Be sure to select the correct disk, or you may erase important data! Check the output of "df-h" if you are unsure. For example, if your partition will be/dev/sdb1, do:
$/Sbin/fdisk/dev/sdb
If you don't have fdisk installed, run yum install util-linux-ng as root.
The following session output from fdisk shows the responses to give to the prompts. the line starting Last cylinder... refers to the size of the flash drive, so may be different than in the example.
Command (m for help): d Selected partition 1 Command (m for help): n Command action e extended p primary partition (1-4) p Partition number (1-4 ): 1 First cylinder (1-960, default 1): Using default value 1 Last cylinder or + size or + sizeM or + sizeK (1-960, default 960 ): using default value 960 Command (m for help): t Selected partition 1 Hex code (type L to list codes): 6 Changed system type of p Artition 1 to 6 (FAT16) Command (m for help): a Partition number (1-4): 1 Command (m for help): w The partition table has been altered! Calling ioctl () to re-read partition table. WARNING: If you have created or modified any DOS 6.x partitions, please see the fdisk manual page for additional information. Syncing disks.
How to Format
 
 
CAUTION
This will erase all data on the USB drive! Please read the instructions below carefully.
If your USB media has sufficient free space on a vfat file system already, you do not need to perform this step.
To finish, the partition must be formatted with an actual file system using mkdosfs as the root user. unmount the device before using mkdosfs. in the below example,/dev/USBPARTITIONNAME might be, for example,/dev/sdb1. Be sure to select the correct partition; formatting destroys all data on it!
$ Umount/dev/USBPARTITIONNAME $/sbin/mkdosfs-F 32-n usbdisk/dev/USBPARTITIONNAME
If you don't have mkdosfs installed, run "yum install dosfstools" as root.
 
Use commands
Su-c "yum install liveusb-creator"
The liveusb-creator of Fedora is installed, but this program of Fedora cannot be used to create the boot disk of Ubuntu. In desperation, try to copy the Ubuntu iso file to the USB flash drive:
Sudo dd if = F12-Live-i686.iso of =/dev/sdX bs = 8 M
Restart the computer and press c to enter the grub boot program. Failed to specify vmlinuz through the kernel in the past, only to find that there is no kernel command in Grub2, and to try legacy_kernel and xnu_kernel, the results are all failed. So I tried to directly specify initrd (hd1, 4)/casper/initrd.gz, and then exit. The Ubuntu installation interface did not appear!
I am glad that I have already supported WIFI during Ubuntu installation. it seems that Ubuntu has improved a lot in user friendliness over the years.
After the installation is complete, restart. as a result, Grub cannot work normally and enters the grub rescue mode. After using iPad Baidu, I found out the startup problem of Ubuntu and how to fix Grub Rescue. I tried it step by step. Reprinted as follows:
How to fix Ubuntu startup and Grub Rescue
Problem:
Previously, the system was Windows 7 64bit (C disk) + D, and E disk (both NTFS and Ubuntu.
Today, the elastic block storage (e) disk is deleted in Windows 7 and you are going to install RedHat 6 on it. After Windows 7 is restarted, the grub menu of Ubuntu cannot be started. Invalid FileSystem is displayed on the screen. (If you remember correctly, haha)
Analysis
In Windows, the partition status is changed, and a partition before Ubuntu is deleted. as a result, the partition of Ubuntu is changed from sda5 to sda4, so that grub cannot be found.
Grub rescue>
Solution
1. run the ls command to find the partition where Ubuntu is installed:
Grub rescue> ls
All disk partition information is listed, for example:
(Hd0, 1), (hd0, 5), (hd0, 3), (hd0, 2)
2. call the following commands in sequence: X indicates the number of each partition.
Grub rescue> ls (hd0, X)/boot/grub
If not, check whether the grub path is incorrect due to Linux version differences, such as direct ls (hd0, X)/grub.
3. if the file in the folder is displayed when (hd0, 5) is found, it indicates that Linux is installed in this partition.
4. call the following command:
Grub rescue> set root = (hd0, 5)
Grub rescue> set prefix = (hd0, 5)/boot/grub
Grub rescue> insmod/boot/grub/normal. mod
5. call the following command to display the lost grub menu.
Grub rescue> normal
6. Don't be happy. if the problem persists at this time, we need to go to Linux and fix grub.
After entering Linux, run the following command in the command line:
Sudo update-grub
Sudo grub-install/dev/sda
(Sda is your hard disk number. do not specify a partition number, such as sda1 or sda5)
7. have the grub startup menu been restored after the restart test? Congratulations! recovery successful!
 
After Grub is restored, install common software. The new Ubuntu interface is not as difficult to use as I previously thought, and they finally gave up the previous yellow interface style. the most rare thing is that it is still very fast in my book! We look forward to the early release of Ubuntu12.04, and upgrade it now.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.