[root@T-bagwell ~]# strace mount -t ext4 /dev/sdc1 /mnt execve("/bin/mount", ["mount", "-t", "ext4", "/dev/sdc1", "/mnt"], [/* 26 vars */]) = 0 brk(0) = 0xb894c000 …… stat64("/sbin/mount.ext4", 0xbf90a8b8) = -1 ENOENT (No such file ordirectory) *********************************关键是这里**************************************** mount("/dev/sdc1", "/mnt", "ext4", MS_MGC_VAL, NULL) = 0 readlink("/dev", 0xbf90995b, 4096) = -1 EINVAL (Invalid argument) …… rt_sigprocmask(SIG_UNBLOCK, ~[TRAP SEGV RTMIN RT_1], NULL, 8) = 0 exit_group(0) = ?
[root@T-bagwell ~]# strace mount -t ext4 -o remount /dev/sdc1 /mnt execve("/bin/mount", ["mount", "-t", "ext4", "-o", "remount", "/dev/sdc1","/mnt"], [/* 26 vars */]) = 0 brk(0) = 0xb7dee000 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =0xb7730000 …… readlink("/dev", 0xbf9fc3ab, 4096) = -1 EINVAL (Invalid argument) readlink("/dev/sdc1", 0xbf9fc3ab, 4096) = -1 EINVAL (Invalid argument) stat64("/sbin/mount.ext4", 0xbf9fd148) = -1 ENOENT (No such file ordirectory) rt_sigprocmask(SIG_BLOCK, ~[TRAP SEGV RTMIN RT_1], NULL, 8) = 0 stat64("/sbin/mount.ext4", 0xbf9fd108) = -1 ENOENT (No such file ordirectory)
*********************************关键是这里**********因为是-o remount,所以这里多了一个MS_REMOUNT****************************** mount("/dev/sdc1", "/mnt", 0xb7def0d8, MS_MGC_VAL|MS_REMOUNT, NULL) = 0 readlink("/dev", 0xbf9fc1ab, 4096) = -1 EINVAL (Invalid argument) …… rt_sigprocmask(SIG_UNBLOCK, ~[TRAP SEGV RTMIN RT_1], NULL, 8) = 0 exit_group(0)
|