My Ubuntu Partitioning experience (Ubuntu and Windows dual systems)

Source: Internet
Author: User


Moving from windows to Ubuntu for a while. There have been a lot of ups and downs, now more than at first, summed up some experience to share with you. This passage focuses on my Ubuntu partitioning experience. Because I didn't use Windows to remove it, so much data was saved on the FAT32 hard drive, and when I moved to the Ubuntu system I used the ext3 hard drive as my workspace, and the usual code writing and compiling was done on this ext3 hard drive.

1. Hard disk partition

Partition type space function

(1) sda1 NTFS 15G my c disk, Windows system installed here

(2) SDA5 FAT32 29G my D-plate, a lot of information put here

(3) Sda6 ext3 10G My workspace, the usual code writing and compiling are here

(4) Sda3 root 16G my Ubuntu is installed here.

(5) SDA4 swap 2G My memory is 1G, so I divided the swap space 2G


2. Re-mount Partition

Ubuntu itself can mount the hard drive automatically, but it is inconvenient for me to use (such as read and write property settings), I will sda5 and Sda6 two non-system hard disk mount.

(1) Command line input
sudo cp/etc/fstab/etc/fstab.bak backup before modification, I hope we can develop this good habit

(2) command line input
sudo vi/etc/fstab edit this file to mount again

(3) After the modification of my fstab file, add the following statement

# my D disk (FAT32), a lot of information is placed here, set umask=000 so that normal users of D disk can write
/dev/sda5/mnt/wind vfat user,defaults,utf8,umask=000 0 0
# my Workspace (ext3), the usual code writing and compiling are here
/dev/sda6/mnt/sda6 ext3 defaults 0 0

(4) After saving the file, enter
sudo mount-a to mount all partitions again
sudo df Check to see if the mount is correct

(5) Reboot system

You have any questions and suggestions please contact me, today is January 21, 09, wish you a Happy New Year:

Want to be your friend
Dreamcode:http://blog.csdn.net/dreamcode
Msn:itecies@hotmail.com
Skype ID:javen.china









Related Article

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.