Kod:
Disk /dev/sda: 320.1 GB, 320072933376 bytes255 heads, 63 sectors/track, 38913 cylinders, totals 625142448 sectorsUnits = sectors of 1 * 512 = 512 bytesSector size (logical/physical): 512 bytes / 4096 bytesI/0 size (minimum/optimal): 4096 bytes / 4096 bytesDisk identifier: 0x00000000Device Boot Start End Blocks Id System/dev/sda1 1 625142447 312571223+ ee GPTPartition 1 does not start on physical sector boundary.
Statystyki: autor: hisoka — 13 mar 2017, 20:56
Kod:
mount /dev/sda1 /mntchroot /mnt /bin/bash#w tym momencie powinieneś być na systemie z dyskupasswdpasswd user
Kod:
passwd
Statystyki: autor: waako4 — 23 paź 2015, 20:21
Statystyki: autor: VoidMinus — 24 maja 2011, 22:47
Statystyki: autor: Atholar — 22 mar 2011, 11:09
Kod:
mount /dev/sda1 /mntchroot /mnt /bin/bash#w tym momencie powinieneś być na systemie z dyskupasswdpasswd user
Statystyki: autor: gringoo — 12 mar 2011, 00:32
Statystyki: autor: thalcave — 23 paź 2010, 15:47
Statystyki: autor: Atholar — 23 paź 2010, 15:41
Kod:
mount /dev/sda1 /mntchroot /mnt /bin/bash#w tym momencie powinieneś być na systemie z dyskupasswdpasswd user
Statystyki: autor: tomek1919 — 18 sie 2009, 10:47
Statystyki: autor: piaty — 05 sty 2009, 22:23
Kod:
mount /dev/sda4 /mntchroot /mnt /bin/bashpasswd mariusz
Statystyki: autor: goferrr — 05 sty 2009, 21:19
Kod:
cat /mnt/etc/passwd
Kod:
mariusz:x:1000:1000:Mariusz,,,:/home/mariusz:/bin/bash
Statystyki: autor: piaty — 05 sty 2009, 21:11
Kod:
cat /mnt/etc/passwd
i poszukaj czegoś co wygląda na twój login.Statystyki: autor: goferrr — 05 sty 2009, 20:54
Kod:
umount /dev/sda1 /mnt
Kod:
mount /dev/sda4 /mnt
Super tylko mam jeszcze jedno małe ale...root@ubuntu:/# umount /dev/sda1 /mnt
umount: /dev/sda1: not mounted
umount: /dev/sda1: not mounted
root@ubuntu:/# mount /dev/sda4 /mnt
root@ubuntu:/# chroot /mnt /bin/bash
root@ubuntu:/# passwd
Nowe hasło UNIX:
Powtórzenie hasła UNIX:
passwd: hasło zostało zmienione
root@ubuntu:/# exit
root@ubuntu:/# exit
ubuntu@ubuntu:~$
root0:0:root:/root:/bin/bash
daemon1:1:daemon:/usr/sbin:/bin/sh
bin2:2:bin:/bin:/bin/sh
sys3:3:sys:/dev:/bin/sh
sync4:65534:sync:/bin:/bin/sync
games5:60:games:/usr/games:/bin/sh
man6:12/var/cache/man:/bin/sh
lp7:7:lp:/var/spool/lpd:/bin/sh
mail8:8:mail:/var/mail:/bin/sh
news9:9:news:/var/spool/news:/bin/sh
uucp10:10:uucp:/var/spool/uucp:/bin/sh
proxy13:13:proxy:/bin:/bin/sh
www-data33:33:www-data:/var/www:/bin/sh
backup34:34:backup:/var/backups:/bin/sh
list38:38:Mailing List Manager:/var/list:/bin/sh
irc39:39:ircd:/var/run/ircd:/bin/sh
gnats41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
nobody65534:65534:nobody:/nonexistent:/bin/sh
libuuid100:101::/var/lib/libuuid:/bin/sh
dhcp101:102::/nonexistent:/bin/false
syslog102:103::/home/syslog:/bin/false
klog103:104::/home/klog:/bin/false
hplip104:7:HPLIP system user,,,:/var/run/hplip:/bin/false
avahi-autoipd105:113:Avahi autoip daemon,,,:/var/lib/avahi-autoipd:/bin/false
gdm106:114:Gnome Display Manager:/var/lib/gdm:/bin/false
pulse107:116:PulseAudio daemon,,,:/var/run/pulse:/bin/false
messagebus108:119::/var/run/dbus:/bin/false
avahi109:120:Avahi mDNS daemon,,,:/var/run/avahi-daemon:/bin/false
polkituser110:122:PolicyKit,,,:/var/run/PolicyKit:/bin/false
haldaemon111:123:Hardware abstraction layer,,,:/var/run/hald:/bin/false
ubuntu999:999:Live session user,,,:/home/ubuntu:/bin/bash
Statystyki: autor: piaty — 05 sty 2009, 19:51
Kod:
umount /dev/sda1 /mnt
Kod:
mount /dev/sda4 /mnt
Statystyki: autor: goferrr — 05 sty 2009, 19:05
Kod:
sudo fdisk -l (to jest małe L)
W takim razie u mnie partycje dotyczące Linuxa to:root@ubuntu:/# sudo fdisk -l
Disk /dev/sda: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x9c259c25
Device Boot Start End Blocks Id System
/dev/sda1 * 1 5473 43961841 7 HPFS/NTFS
/dev/sda2 7013 38913 256244782+ 7 HPFS/NTFS
/dev/sda3 5474 5655 1461915 82 Linux swap / Solaris
/dev/sda4 5656 7012 10900102+ 83 Linux
Partition table entries are not in disk order
root@ubuntu:/#
Statystyki: autor: piaty — 05 sty 2009, 18:47
Kod:
sudo fdisk -l (to jest małe L)
, a nie 1.Statystyki: autor: goferrr — 05 sty 2009, 18:29
Kod:
mount /dev/sda1 /mnt
Kod:
sudo fdisk -l
Kod:
ls /mnt
Kod:
ubuntu@ubuntu:~$ sudo fdisk -1fdisk: invalid option -- 1Usage: fdisk [-b SSZ] [-u] DISK Change partition tablefdisk -l [-b SSZ] [-u] DISK List partition table(s)fdisk -s PARTITION Give partition size(s) in blocks fdisk -v Give fdisk versionHere DISK is something like /dev/hdb or /dev/sdaand PARTITION is something like /dev/hda7-u: give Start and End in sector (instead of cylinder) units-b 2048: (for certain MO disks) use 2048-byte sectorsA teraz wpisałem tak:ubuntu@ubuntu:~$ sudo fdiskUsage: fdisk [-l] [-b SSZ] [-u] deviceE.g.: fdisk /dev/hda (for the first IDE disk) or: fdisk /dev/sdc (for the third SCSI disk) or: fdisk /dev/eda (for the first PS/2 ESDI drive) or: fdisk /dev/rd/c0d0 or: fdisk /dev/ida/c0d0 (for RAID devices) ...
Kod:
ubuntu@ubuntu:~$ ls /mntAUTOEXEC.BAT Documents and Settings ntldr System Volume InformationBootfont.bin IO.SYS pagefile.sys WINDOWSboot.ini MSDOS.SYS Program FilesCONFIG.SYS NTDETECT.COM RECYCLERubuntu@ubuntu:~$
Statystyki: autor: piaty — 05 sty 2009, 18:03
Kod:
mount /dev/sda1 /mnt
Tu pewnie jest błąd. Sprawdziłeś czy sda1 u ciebie tez jest partycją root?Kod:
sudo fdisk -l
Kod:
ls /mnt
Statystyki: autor: goferrr — 05 sty 2009, 17:17
Kod:
A nie można po prostu przy uruchamianiu komputera nacisnąć Esc, wejść do gruba, wybrać Recovery Mode? Będziemy zalogowani jako
Kod:
root@komputer:~#
Statystyki: autor: piaty — 05 sty 2009, 16:43
Kod:
root@komputer:~#
i wtedy możemy działać:Kod:
passwdpasswwd user
Statystyki: autor: goferrr — 05 sty 2009, 16:31
Kod:
chroot /mnt
Statystyki: autor: piaty — 05 sty 2009, 16:24
Kod:
chroot /mnt
?Statystyki: autor: goferrr — 05 sty 2009, 16:21
Statystyki: autor: piaty — 05 sty 2009, 16:13
Kod:
sudo su
w terminalu i działasz jako root.Statystyki: autor: dawidgarus — 05 sty 2009, 15:36
Statystyki: autor: piaty — 05 sty 2009, 15:11
Statystyki: autor: piaty — 05 sty 2009, 14:06
Statystyki: autor: k2cl — 05 sty 2009, 06:57
No i system mi się bootuje ale normalnie i chce nazwę użytkownika i hasło. Nie mogę nic innego wpisać:Jak ktoś nie ma płytki LiveCD, lub nie chce mu się nimi mieszać, to:
Gdy pokaże się menu Grub'a, naciśnij "e" (menu przy bootowaniu).
Wybierasz linię zaczynającą się od "kernel", znowu naciskasz "e".
Na samym końcu tej linii dodaj " init=/bin/bash" (enterem).
Wciskasz "b" i system się bootuje.
Na tym koniec - nic innego nie mogę zrobić.Pojawi ci się prompt - (# lub inny znaczek), wpisujesz "mount /proc" (enter).
Może ktoś mi to wyjaśni w prostszy sposób, tzn jak dla laika ?odpal liveCD
zamontuj partycję root (/) w katalogu /mnt
Np. niech to będzie sda1
Kod:
mount /dev/sda1 /mnt
chroot /mnt /bin/bash
#w tym momencie powinieneś być na systemie z dysku
passwd
passwd user
Następnie wciśnij CTRL+D i odmontuj partycję. Hasła powinny działać
Statystyki: autor: piaty — 05 sty 2009, 00:59
Statystyki: autor: salvadhor — 15 lip 2008, 07:11
Kod:
mount /dev/sda1 /mntchroot /mnt /bin/bash#w tym momencie powinieneś być na systemie z dyskupasswdpasswd user
Statystyki: autor: thalcave — 14 lip 2008, 22:37
Statystyki: autor: Amman — 14 lip 2008, 22:30