I 've been experiencing many ups and downs for some time since I moved from windows to Ubuntu. Now I'm more comfortable than I was at first, and I have summarized some experiences to share with you. This short article mainly talks about my Ubuntu partition experience. Since I didn't plan to delete windows, I stored a lot of data on the FAT32 hard disk. When I moved to Ubuntu, I used the ext3 hard disk as my workspace, code compilation and compilation are usually performed on the ext3 hard disk.
1. Hard Disk partitioning
Partition type space function
(1) sda1 NTFS 15g my C drive, Windows system installed here
(2) sda5 FAT32 29G my d disk, a lot of information here
(3) sda6 ext3 10g my work zone, the usual code writing and compilation are all here
(4) sda3 root 16g my Ubuntu is installed here
(5) sda4 swap 2g my memory is 1g, So I divided the swap space into 2G
2. Mount the partition again.
Ubuntu itself can automatically mount the hard disk, but it is not very convenient for me (such as the read/write attribute settings), I will re-mount the sda5 and sda6 non-system hard disks.
(1) input in the command line
Sudo CP/etc/fstab. Bak back up data before modification. I hope you will develop this habit.
(2) Enter
Sudo VI/etc/fstab edit this file and mount it again
(3) Add the following statement to the modified fstab file:
# My D disk (FAT32), a lot of information here, set umask = 000 to make the D disk common users writable
/Dev/sda5/mnt/wind vfat user, defaults, utf8, umask = 000 0 0
# In my work zone (ext3), the usual code compilation and compilation are all here
/Dev/sda6/mnt/sda6 ext3 defaults 0 0
(4) After saving the file, enter
Sudo Mount-a re-mount all partitions
Sudo DF check whether the mounting is correct once
(5) restart the system
If you have any questions or suggestions, please contact me. Today is July 22, January 21. Wish you a happy New Year :)
Hope to be your friend
Dreamcode: http://blog.csdn.net/dreamcode
MSN: itecies@hotmail.com
Skype ID: javen. China