The number of cylinders for this disk is set to 1958.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Command (m for help): n
First cylinder (1316-1958, default 1316):
Using default value 1316
Last cylinder or +size or +sizeM or +sizeK (1316-1958, default 1958): +500M
Command (m for help): t
Partition number (1-8): 8
Hex code (type L to list codes): 82
Changed system type of partition 8 to 82 (Linux swap / Solaris)
关于
mount –a
mount –o remount /dev/sda7 ,
mount –o remount,ro /dev/sda7
区别
Mount -a
它只是去挂载一个没有挂载的文件系统,它才会生效。当一个分区没有挂载,但是/etc/fstab这个文件却挂载了,就可以mount –a 来重新加载/etc/fstab文件。从而挂载文件系统
Mount –o remout /dev/sda7
在/etc/fstab这个文件里面加了一下属性参数,可以让其立即生效,而且下次启动的时候还会生效,因为写在了/etc/fstab这个文件里面了。
Mount –o remount,ro /dev/sda7
手动的给/dev/sda7这个文件系统加一个ro的参数,只在当前生效,重启不生效,生效必须写在/etc/fstab这个文件里面