1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
| [philippe@philippe-desktop ~]$ su -c fdisk -l
Mot de passe :
Usage: fdisk [-l] [-b TAILLE] [-u] périphérique
i.e.: fdisk /dev/hda (pour le premier disque IDE)
ou: fdisk /dev/sdc (pour le 3e disque SCSI)
ou: fdisk /dev/eda (pour le 1er disque PS/2 ESDI)
ou: fdisk /dev/rd/c0d0 ou: fdisk /dev/ida/c0d0 (pour des périphériques RAID)
...
[philippe@philippe-desktop ~]$ fdisk -l /dev/hda
bash: fdisk: command not found
[philippe@philippe-desktop ~]$ fdisk -l
bash: fdisk: command not found
[philippe@philippe-desktop ~]$ cat /boot/grub/menu.lst
cat: /boot/grub/menu.lst: Permission non accordée
[philippe@philippe-desktop ~]$ su -c cat /boot/grub/menu.lst
su: L'usager /boot/grub/menu.lst n'existe pas.
[philippe@philippe-desktop ~]$ su
Mot de passe :
[root@philippe-desktop philippe]# cat /boot/grub/menu.lst
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You do not have a /boot partition. This means that
# all kernel and initrd paths are relative to /, eg.
# root (hd0,0)
# kernel /boot/vmlinuz-version ro root=/dev/hda1
# initrd /boot/initrd-version.img
#boot=/dev/hda
default=0
timeout=5
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.18-128.el5)
root (hd0,0)
kernel /boot/vmlinuz-2.6.18-128.el5 ro root=LABEL=/ rhgb quiet
initrd /boot/initrd-2.6.18-128.el5.img
title Other
rootnoverify (hd0,4)
chainloader +1
[root@philippe-desktop philippe]# |
Partager