[will@k2 ~]$ uname -a Linux k2 3.4.24-desktop-3.mga2 #1 SMP Sat Jan 5 02:42:54 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux [will@k2 ~]$ cat /etc/mageia-release Mageia release 2 (Official) for x86_64 [will@k2 ~]$ hostid a8c00200 [will@k2 ~]$ ifconfig -a |grep HWaddr eth0 Link encap:Ethernet HWaddr 00:24:E8:C9:62:EF wlan0 Link encap:Ethernet HWaddr 00:21:6A:68:A4:F6 [will@k2 ~]$ rpm -qa | wc -l 2562
[will@k2 ~]$ top top - 23:11:31 up 1:24, 6 users, load average: 3.78, 1.78, 1.14 Tasks: 217 total, 2 running, 215 sleeping, 0 stopped, 0 zombie Cpu(s): 1.2%us, 2.4%sy, 0.0%ni, 21.3%id, 74.9%wa, 0.0%hi, 0.2%si, 0.0%st Mem: 3038464k total, 2960460k used, 78004k free, 101476k buffers Swap: 4538140k total, 1616k used, 4536524k free, 1301368k cached PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 9213 root 20 0 21768 1404 1048 S 2 0.0 0:02.75 tar 9214 root 20 0 21520 1400 1060 D 2 0.0 0:02.39 tar ...............
[will@k2 ~]$ pstree -ushlpn 9213 systemd(1)───kdeinit4(3269,will)───consolehelper-g(7439)───userhelper(7442,root)───draklive-instal(7446)───udisks(7447)───draklive-instal(7448)───sh(9212)───tar(9213) [will@k2 ~]$ [will@k2 ~]$ pstree -ushlpn 9213 systemd(1)───kdeinit4(3269,will)───consolehelper-g(7439)───userhelper(7442,root)───draklive-instal(7446)───udisks(7447)───draklive-instal(7448)───sh(9212)───tar(9213) [will@k2 ~]$ [will@k2 ~]$ ps -ef |grep -v grep|grep "tar " root 9212 7448 0 23:09 ? 00:00:00 sh -c tar c --one-file-system -C / . | tar xvv -C /mnt/install root 9213 9212 1 23:09 ? 00:00:03 tar c --one-file-system -C / . root 9214 9212 1 23:09 ? 00:00:02 tar xvv -C /mnt/install
[will@k2 ~]$ sudo find /mnt/install/dev | wc -l 495 [will@k2 ~]$ sudo find /dev | wc -l 505
[will@k2 ~]$ mount rootfs on / type rootfs (rw) proc on /proc type proc (rw,relatime) sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime) devtmpfs on /dev type devtmpfs (rw,nosuid,relatime,size=1513924k,nr_inodes=378481,mode=755) devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000) tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev,relatime) tmpfs on /run type tmpfs (rw,nosuid,nodev,relatime,mode=755) /dev/sda5 on / type ext4 (rw,relatime,data=ordered) tmpfs on /sys/fs/cgroup type tmpfs (rw,nosuid,nodev,noexec,relatime,mode=755) cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd) cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset) cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpuacct,cpu) cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices) cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer) cgroup on /sys/fs/cgroup/net_cls type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls) cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio) systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=23,pgrp=1,timeout=300,minproto=5,maxproto=5,direct) systemd-1 on /proc/bus/usb type autofs (rw,relatime,fd=35,pgrp=1,timeout=300,minproto=5,maxproto=5,direct) securityfs on /sys/kernel/security type securityfs (rw,relatime) debugfs on /sys/kernel/debug type debugfs (rw,relatime) mqueue on /dev/mqueue type mqueue (rw,relatime) hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime) none on /tmp type tmpfs (rw,relatime) /dev/sda6 on /home type ext4 (rw,relatime,data=ordered) binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,relatime) usbfs on /proc/bus/usb type usbfs (rw,relatime) sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw,relatime) nfsd on /proc/fs/nfsd type nfsd (rw,relatime) fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime) gvfs-fuse-daemon on /run/user/will/gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,relatime,user_id=500,group_id=500) /dev/sdb1 on /mnt/install type ext4 (rw,relatime,data=ordered) devtmpfs on /mnt/install/dev type devtmpfs (rw,nosuid,relatime,size=1513924k,nr_inodes=378481,mode=755) none on /mnt/install/proc type proc (rw,relatime) none on /mnt/install/sys type sysfs (rw,relatime) none on /mnt/install/proc/bus/usb type usbfs (rw,relatime) [will@k2 ~]$
[will@k2 ~]$ df Sys. fich. Taille Util. Dispo Uti% Monté sur rootfs 15G 8,2G 5,2G 62% / devtmpfs 1,5G 0 1,5G 0% /dev tmpfs 1,5G 1,8M 1,5G 1% /dev/shm tmpfs 1,5G 1,1M 1,5G 1% /run /dev/sda5 15G 8,2G 5,2G 62% / tmpfs 1,5G 0 1,5G 0% /sys/fs/cgroup none 1,5G 5,8M 1,5G 1% /tmp /dev/sda6 183G 111G 73G 61% /home /dev/sdb1 14G 1,3G 12G 11% /mnt/install devtmpfs 1,5G 0 1,5G 0% /mnt/install/dev [will@k2 ~]$
[will@k2 ~]$ ll /dev/disk/by-uuid/ | grep sdb lrwxrwxrwx 1 root root 10 avril 10 01:26 7528cec4-1b31-4efd-be4a-bcc866eabfc9 -> ../../sdb5 lrwxrwxrwx 1 root root 10 avril 10 01:26 f1b01a4f-d8e7-479d-8d01-9d9f5084ad7e -> ../../sdb1 [will@k2 ~]$
[root@k2 ~]# fdisk -l /dev/sdb Disque /dev/sdb : 16.0 Go, 16018046976 octets 64 têtes, 32 secteurs/piste, 15276 cylindres, total 31285248 secteurs Unités = secteur de 1 * 512 = 512 octets Taille de secteur (logique / physique) : 512 octets / 512 octets taille d'E/S (minimale / optimale) : 512 octets / 512 octets Identifiant de disque : 0xc3072e18 Périphérique Amorce Début Fin Blocs Id Système /dev/sdb1 * 2048 28520447 14259200 83 Linux /dev/sdb2 28522464 31285247 1381392 5 Étendue /dev/sdb5 28522496 31285247 1381376 82 partition d'échange Linux / Solaris [root@k2 ~]#
[will@k2 ~]$ ll /dev/disk/by-uuid/ | grep sdb lrwxrwxrwx 1 root root 10 avril 10 01:26 7528cec4-1b31-4efd-be4a-bcc866eabfc9 -> ../../sdb5
[root@k2 ~]# ll /etc/fstab* -rw-rw-r-- 1 root root 58 avril 10 09:10 /etc/fstab -rw-rw-r-- 1 root root 323 janv. 26 13:10 /etc/fstab.old
[root@k2 ~]# cp -p /etc/fstab.old /etc/fstab cp : voulez-vous écraser « /etc/fstab » ? o [root@k2 ~]#
[root@k2 ~]# cat /mnt/install/etc/fstab # Entry for /dev/sdb1 : UUID=f1b01a4f-d8e7-479d-8d01-9d9f5084ad7e / ext4 defaults 1 1 none /proc proc defaults 0 0 none /tmp tmpfs defaults 0 0 # Entry for /dev/sda3 : UUID=fb9ed55d-e834-40e8-916a-1d1c9cfdf57d swap swap defaults 0 0 # Entry for /dev/sdb5 : UUID=7528cec4-1b31-4efd-be4a-bcc866eabfc9 swap swap defaults 0 0
[root@k2 ~]# ll /dev/disk/by-uuid/ |grep sdb lrwxrwxrwx 1 root root 10 avril 10 09:10 7528cec4-1b31-4efd-be4a-bcc866eabfc9 -> ../../sdb5 lrwxrwxrwx 1 root root 10 avril 10 01:26 f1b01a4f-d8e7-479d-8d01-9d9f5084ad7e -> ../../sdb1
[root@k2 ~]# vi /mnt/install/etc/fstab .
[root@k2 ~]# uname -a Linux k2 3.4.34-desktop-1.mga2 #1 SMP Thu Feb 28 21:11:55 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux [root@k2 ~]# cat /etc/mageia-release Mageia release 2 (Official) for x86_64 [root@k2 ~]# hostid 007f0200 J'ai démarré sur un autre PC ma clef usb [root@k2 ~]# [root@k2 ~]# ifconfig -a |grep HWaddr eth2 Link encap:Ethernet HWaddr 00:24:E8:AE:73:16 wlan1 Link encap:Ethernet HWaddr 00:21:6A:5A:EE:5E [root@k2 ~]# rpm -qa | wc -l 2561 Il nous manque un seul package et figurez-vous, qu'il s'agit de draklive-install ; marrant non ? Tous y est, pas cool la vie? [root@k2 ~]# rpm -qa | grep -i "draklive-install" ; echo $? 1
[root@k2 ~]# urpmi draklive-install $MIRRORLIST: media/core/release/draklive-install-1.36-1.mga2.noarch.rpm installation de draklive-install-1.36-1.mga2.noarch.rpm depuis /var/cache/urpmi/rpms Préparation... ########################################################### 1/1: draklive-install ########################################################### [root@k2 ~]#
Écrit par: willyk2, Le: 11/04/13