#76 Le 22/08/2010, à 15:10
- Meister3627
Re : [tuto]installer Ubuntu Manuellement
oui direct
Hors ligne
#77 Le 22/08/2010, à 15:13
- Josepe36
Re : [tuto]installer Ubuntu Manuellement
bon tu es sur le lived là
on va refaire :
sudo -s
mount /dev/sda2 /mnt
ls /mnt/boot
ls /mnt/boot/grub/
mount --bind /dev /mnt/dev
mount --bind /proc /mnt/proc
mount --bind /sys /mnt/sys
chroot /mnt
grub-install /dev/sda
update-grub
et tu post les résultats s'il te plait
Dernière modification par Josepe36 (Le 22/08/2010, à 15:15)
Développeur distribution Hybryde
www.hybryde.org
Hors ligne
#78 Le 22/08/2010, à 15:15
- Meister3627
Re : [tuto]installer Ubuntu Manuellement
ok je retourne sur le live cd
Hors ligne
#79 Le 22/08/2010, à 15:24
- Meister3627
Re : [tuto]installer Ubuntu Manuellement
To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.
ubuntu@ubuntu:~$ sudo -s
root@ubuntu:~# mount /dev/sda2 /mnt
root@ubuntu:~# ls /mnt/boot
abi-2.6.32-24-generic memtest86+.bin
config-2.6.32-24-generic System.map-2.6.32-24-generic
grub vmcoreinfo-2.6.32-24-generic
initrd.img-2.6.32-21-generic vmlinuz-2.6.32-21-generic
initrd.img-2.6.32-24-generic
root@ubuntu:~# ls /mnt/boot/grub/
915resolution.mod gcry_rfc2268.mod partmap.lst
acpi.mod gcry_rijndael.mod part_msdos.mod
affs.mod gcry_rmd160.mod part_sun.mod
afs_be.mod gcry_seed.mod parttool.lst
afs.mod gcry_serpent.mod parttool.mod
aout.mod gcry_sha1.mod password.mod
ata.mod gcry_sha256.mod password_pbkdf2.mod
ata_pthru.mod gcry_sha512.mod pbkdf2.mod
at_keyboard.mod gcry_tiger.mod pci.mod
befs_be.mod gcry_twofish.mod play.mod
befs.mod gcry_whirlpool.mod png.mod
biosdisk.mod gettext.mod probe.mod
bitmap.mod gfxmenu.mod pxeboot.img
bitmap_scale.mod gfxterm.mod pxecmd.mod
blocklist.mod gptsync.mod pxe.mod
boot.img grldr.img raid5rec.mod
boot.mod grub.cfg raid6rec.mod
bsd.mod grubenv raid.mod
bufio.mod grub_script.tab.h read.mod
build_env.mk gzio.mod reboot.mod
cat.mod halt.mod reiserfs.mod
cdboot.img handler.lst relocator.mod
chain.mod handler.mod scsi.mod
charset.mod hashsum.mod search_fs_file.mod
cmp.mod hdparm.mod search_fs_uuid.mod
command.lst hello.mod search_label.mod
configfile.mod help.mod search.mod
config.h hexdump.mod serial.mod
core.img hfs.mod setjmp.mod
cpio.mod hfsplus.mod setpci.mod
cpuid.mod iso9660.mod sfs.mod
crc.mod jfs.mod sh.mod
crypto.lst jpeg.mod sleep.mod
crypto.mod kernel.img tar.mod
datehook.mod keystatus.mod terminal.lst
date.mod linux16.mod terminal.mod
datetime.mod linux.mod terminfo.mod
diskboot.img lnxboot.img test.mod
dm_nv.mod loadenv.mod tga.mod
drivemap.mod locale trig.mod
echo.mod loopback.mod true.mod
efiemu32.o lsmmap.mod udf.mod
efiemu64.o ls.mod ufs1.mod
efiemu.mod lspci.mod ufs2.mod
elf.mod lvm.mod uhci.mod
example_functional_test.mod mdraid.mod usb_keyboard.mod
ext2.mod memdisk.mod usb.mod
extcmd.mod memrw.mod usbms.mod
fat.mod minicmd.mod usbtest.mod
font.mod minix.mod vbeinfo.mod
fshelp.mod mmap.mod vbe.mod
fs.lst moddep.lst vbetest.mod
functional_test.mod msdospart.mod vga.mod
g2hdr.bin multiboot2.mod vga_text.mod
g2ldr.mbr multiboot.mod video_fb.mod
gcry_arcfour.mod normal.mod video.lst
gcry_blowfish.mod ntfscomp.mod video.mod
gcry_camellia.mod ntfs.mod videotest.mod
gcry_cast5.mod ohci.mod xfs.mod
gcry_crc.mod part_acorn.mod xnu.mod
gcry_des.mod part_amiga.mod xnu_uuid.mod
gcry_md4.mod part_apple.mod zfsinfo.mod
gcry_md5.mod part_gpt.mod zfs.mod
root@ubuntu:~# mount --bind /dev /mnt/dev
root@ubuntu:~# mount --bind /proc /mnt/proc
root@ubuntu:~# mount --bind /sys /mnt/sys
root@ubuntu:~# chroot /mnt
root@ubuntu:/# grub-install /dev/sda
Installation finished. No error reported.
root@ubuntu:/# update-grub
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.32-21-generic
Found initrd image: /boot/initrd.img-2.6.32-21-generic
Found memtest86+ image: /boot/memtest86+.bin
ls: cannot access /media/MEISTER: No such file or directory
ls: cannot access /media/MEISTER: No such file or directory
ls: cannot access /media/MEISTER: No such file or directory
ls: cannot access /media/MEISTER: No such file or directory
ls: cannot access /media/MEISTER: No such file or directory
ls: cannot access /media/MEISTER: No such file or directory
done
root@ubuntu:/#
le résultat
Hors ligne
#80 Le 22/08/2010, à 15:29
- Josepe36
Re : [tuto]installer Ubuntu Manuellement
root@ubuntu:/# grub-install /dev/sda
Installation finished. No error reported.
root@ubuntu:/# update-grub
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.32-21-generic
Found initrd image: /boot/initrd.img-2.6.32-21-generic
Found memtest86+ image: /boot/memtest86+.bin
bon vu les resultats l'installation et la mise a jour de grub se sont bien passer
avant de redemarrer on va controller le mbr
le retour s'il te plait de:
dd if=/dev/sda bs=512 count=1 | hexdump -C
pour etre sur :
cat /mnt/ets/hosts
cat /mnt/etc/hostname
cat /mnt/etc/sudoers
si tout est correct on redemarre
Développeur distribution Hybryde
www.hybryde.org
Hors ligne
#81 Le 22/08/2010, à 15:31
- Meister3627
Re : [tuto]installer Ubuntu Manuellement
root@ubuntu:/# dd if=/dev/sda bs=512 count=1 | hexdump -C
1+0 records in
1+0 records out
512 bytes (512 B) copied, 6.2841e-05 s, 8.1 MB/s
00000000 eb 63 90 d0 bc 00 7c 8e c0 8e d8 be 00 7c bf 00 |.c....|......|..|
00000010 06 b9 00 02 fc f3 a4 50 68 1c 06 cb fb b9 04 00 |.......Ph.......|
00000020 bd be 07 80 7e 00 00 7c 0b 0f 85 0e 01 83 c5 10 |....~..|........|
00000030 e2 f1 cd 18 88 56 00 55 c6 46 11 05 c6 46 10 00 |.....V.U.F...F..|
00000040 b4 41 bb aa 55 cd 13 5d 72 0f 81 fb 55 aa 75 09 |.A..U..]r...U.u.|
00000050 f7 c1 01 00 74 03 fe 46 10 66 00 80 01 00 00 00 |....t..F.f......|
00000060 00 00 00 00 ff fa 90 90 f6 c2 80 75 02 b2 80 ea |...........u....|
00000070 74 7c 00 00 31 c0 8e d8 8e d0 bc 00 20 fb a0 64 |t|..1....... ..d|
00000080 7c 3c ff 74 02 88 c2 52 bb 17 04 80 27 03 74 06 ||<.t...R....'.t.|
00000090 be 88 7d e8 1c 01 be 05 7c f6 c2 80 74 48 b4 41 |..}.....|...tH.A|
000000a0 bb aa 55 cd 13 5a 52 72 3d 81 fb 55 aa 75 37 83 |..U..ZRr=..U.u7.|
000000b0 e1 01 74 32 31 c0 89 44 04 40 88 44 ff 89 44 02 |..t21..D.@.D..D.|
000000c0 c7 04 10 00 66 8b 1e 5c 7c 66 89 5c 08 66 8b 1e |....f..\|f.\.f..|
000000d0 60 7c 66 89 5c 0c c7 44 06 00 70 b4 42 cd 13 72 |`|f.\..D..p.B..r|
000000e0 05 bb 00 70 eb 76 b4 08 cd 13 73 0d f6 c2 80 0f |...p.v....s.....|
000000f0 84 d0 00 be 93 7d e9 82 00 66 0f b6 c6 88 64 ff |.....}...f....d.|
00000100 40 66 89 44 04 0f b6 d1 c1 e2 02 88 e8 88 f4 40 |@f.D...........@|
00000110 89 44 08 0f b6 c2 c0 e8 02 66 89 04 66 a1 60 7c |.D.......f..f.`||
00000120 66 09 c0 75 4e 66 a1 5c 7c 66 31 d2 66 f7 34 88 |f..uNf.\|f1.f.4.|
00000130 d1 31 d2 66 f7 74 04 3b 44 08 7d 37 fe c1 88 c5 |.1.f.t.;D.}7....|
00000140 30 c0 c1 e8 02 08 c1 88 d0 5a 88 c6 bb 00 70 8e |0........Z....p.|
00000150 c3 31 db b8 01 02 cd 13 72 1e 8c c3 60 1e b9 00 |.1......r...`...|
00000160 01 8e db 31 f6 bf 00 80 8e c6 fc f3 a5 1f 61 ff |...1..........a.|
00000170 26 5a 7c be 8e 7d eb 03 be 9d 7d e8 34 00 be a2 |&Z|..}....}.4...|
00000180 7d e8 2e 00 cd 18 eb fe 47 52 55 42 20 00 47 65 |}.......GRUB .Ge|
00000190 6f 6d 00 48 61 72 64 20 44 69 73 6b 00 52 65 61 |om.Hard Disk.Rea|
000001a0 64 00 20 45 72 72 6f 72 0d 0a 00 bb 01 00 b4 0e |d. Error........|
000001b0 cd 10 ac 3c 00 75 f4 c3 63 28 38 a2 00 00 80 20 |...<.u..c(8.... |
000001c0 21 00 07 fe ff ff 00 08 00 00 00 00 80 3e 00 fe |!............>..|
000001d0 ff ff 83 fe ff ff 37 0a 80 3e 76 64 f0 34 00 fe |......7..>vd.4..|
000001e0 ff ff 82 fe ff ff ad 6e 70 73 14 eb ff 00 00 00 |.......nps......|
000001f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 aa |..............U.|
00000200
root@ubuntu:/#
pour le host:
ubuntu@ubuntu:~$ cat /mnt/ets/hosts
cat: /mnt/ets/hosts: No such file or directory
ubuntu@ubuntu:~$
pour le hostname:
ubuntu@ubuntu:~$ cat /mnt/etc/hostname
meister
ubuntu@ubuntu:~$
pour le sudoers:
ubuntu@ubuntu:~$ cat /mnt/etc/sudoers
cat: /mnt/etc/sudoers: Permission denied
ubuntu@ubuntu:~$
Dernière modification par Meister3627 (Le 22/08/2010, à 15:32)
Hors ligne
#82 Le 22/08/2010, à 15:35
- Josepe36
Re : [tuto]installer Ubuntu Manuellement
autant pour moi , tu es toujours dans le chroot
alors c'est plutot :
cat etc/hosts
cat etc/hostname
cat etc/sudoers
et pour le mbr ça me parait correct
Développeur distribution Hybryde
www.hybryde.org
Hors ligne
#83 Le 22/08/2010, à 15:37
- Meister3627
Re : [tuto]installer Ubuntu Manuellement
ubuntu@ubuntu:~$ cat etc/hosts
cat: etc/hosts: No such file or directory
ubuntu@ubuntu:~$ cat etc/hostname
cat: etc/hostname: No such file or directory
ubuntu@ubuntu:~$ cat etc/sudoers
cat: etc/sudoers: No such file or directory
ubuntu@ubuntu:~$
Hors ligne
#84 Le 22/08/2010, à 15:39
- Josepe36
Re : [tuto]installer Ubuntu Manuellement
sudo mount /dev/sda2 /mnt (à priori il est démonté)
et
cat /mnt/etc/hosts
cat /mnt/etc/hostname
cat /mnt/etc/sudoers
Développeur distribution Hybryde
www.hybryde.org
Hors ligne
#85 Le 22/08/2010, à 15:39
- Josepe36
Re : [tuto]installer Ubuntu Manuellement
on va finir par y arriver
Développeur distribution Hybryde
www.hybryde.org
Hors ligne
#86 Le 22/08/2010, à 15:40
- Meister3627
Re : [tuto]installer Ubuntu Manuellement
ubuntu@ubuntu:~$ sudo mount /dev/sda2 /mnt
mount: /dev/sda2 already mounted or /mnt busy
mount: according to mtab, /dev/sda2 is already mounted on /mnt
ubuntu@ubuntu:~$ cat /mnt/etc/hosts
127.0.0.1 localhost
127.0.1.1 meister
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
ubuntu@ubuntu:~$ cat /mnt/etc/hostname
meister
ubuntu@ubuntu:~$ cat /mnt/etc/sudoers
cat: /mnt/etc/sudoers: Permission denied
ubuntu@ubuntu:~$
voilà
Hors ligne
#87 Le 22/08/2010, à 15:43
- Josepe36
Re : [tuto]installer Ubuntu Manuellement
ok pas mal tout ça et bien je croiise les doigts et pense que tu peux redemarer
gros suspens pour moi
Développeur distribution Hybryde
www.hybryde.org
Hors ligne
#88 Le 22/08/2010, à 15:43
- Meister3627
Re : [tuto]installer Ubuntu Manuellement
ok je tente!
Hors ligne
#89 Le 22/08/2010, à 15:44
- Josepe36
Hors ligne
#90 Le 22/08/2010, à 15:48
- Meister3627
Re : [tuto]installer Ubuntu Manuellement
Bonne nouvelle je suis sur ubuntu sans cd tont uto marche impec
la mauvaise c'est que je n'ai toujours pas le choix entre ubuntu et windows il boot direct sur ubuntu.
Hors ligne
#91 Le 22/08/2010, à 15:49
- Josepe36
Re : [tuto]installer Ubuntu Manuellement
c'est normal il te faut remettre grub a jour a partir de cette session
sudo update-grub
Développeur distribution Hybryde
www.hybryde.org
Hors ligne
#92 Le 22/08/2010, à 15:51
- Meister3627
Re : [tuto]installer Ubuntu Manuellement
meister@meister:~$ sudo update-grub
[sudo] password for meister:
meister is not in the sudoers file. This incident will be reported.
meister@meister:~$
Hors ligne
#93 Le 22/08/2010, à 15:53
- Josepe36
Re : [tuto]installer Ubuntu Manuellement
sudo -s
ton mot de passe "root"
update-grub
tu as loupé l'étape avec
visudo
Développeur distribution Hybryde
www.hybryde.org
Hors ligne
#94 Le 22/08/2010, à 15:55
- Josepe36
Re : [tuto]installer Ubuntu Manuellement
en effet c'est dans /etc/sudoers que tu as le doit d'utiliser sudo
ton nom ne doit pas y apparaite
Développeur distribution Hybryde
www.hybryde.org
Hors ligne
#95 Le 22/08/2010, à 15:55
- Meister3627
Re : [tuto]installer Ubuntu Manuellement
meister@meister:~$ sudo -s
[sudo] password for meister:
meister is not in the sudoers file. This incident will be reported.
meister@meister:~$
je met pourtant le bon mdp
Hors ligne
#96 Le 22/08/2010, à 15:56
- Josepe36
Re : [tuto]installer Ubuntu Manuellement
autant pour moi je fatigue c'est plutot ça :
su root
Développeur distribution Hybryde
www.hybryde.org
Hors ligne
#97 Le 22/08/2010, à 15:58
- Meister3627
Re : [tuto]installer Ubuntu Manuellement
ok ca marche mais maintenant moi je veux refaire l'étape avec visudo car de ma session je veux pouvoir avoir tout les droits
Hors ligne
#98 Le 22/08/2010, à 15:59
- Josepe36
Re : [tuto]installer Ubuntu Manuellement
su root
visudo
# /etc/sudoers
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the man page for details on how to write a sudoers file.
#
Defaults env_reset
# Host alias specification
# User alias specification
# Cmnd alias specification
# User privilege specification
root ALL=(ALL) ALL
TON NOM ALL=(ALL) ALL
# Allow members of group sudo to execute any command after they have
# provided their password
# (Note that later entries override this, so you might need to move
# it further down)
%sudo ALL=(ALL) ALL
#
[ Lecture de 25 lignes ]
^G Aide ^O Écrire ^R Lire fich. ^Y Page préc. ^K Couper ^C Pos. cur.
^X Quitter ^J Justifier ^W Chercher ^V Page suiv. ^U Coller ^T Orthograp.
F2
oui
tu efface .tmp
entrée
oui
entré
Dernière modification par Josepe36 (Le 22/08/2010, à 16:03)
Développeur distribution Hybryde
www.hybryde.org
Hors ligne
#99 Le 22/08/2010, à 16:01
- Meister3627
Re : [tuto]installer Ubuntu Manuellement
ok nikel merci je redémarre et je te dis ce qu'il en est.
Hors ligne
#100 Le 22/08/2010, à 16:01
- Josepe36
Re : [tuto]installer Ubuntu Manuellement
ensuite une fois que c'est fait tu n'a plus qu'a suivre les sceenshot que j'ai mis dans le tuto et t'attribuer tout les droits
Développeur distribution Hybryde
www.hybryde.org
Hors ligne