トップ   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS

Linuxのレスキュー環境での操作 のバックアップ差分(No.1)


  • 追加された行はこの色です。
  • 削除された行はこの色です。
*Linuxのレスキュー環境での操作 [#sb91c01c]

sh-3.00#
sh-3.00# cd /mnt/sysimage/
sh-3.00#
sh-3.00# chroot
BusyBox v1.00-rc1 (2007.05.02-22:09+0000) multi-call binary

Usage: chroot NEWROOT [COMMAND...]

Run COMMAND with root directory set to NEWROOT.

sh-3.00# chroot /mnt/sysimage/
sh-3.00#
sh-3.00#
sh-3.00# ls /dev/
adb      fd0    loop7   md18  md29  nst0      sda1   sda8      tty6   ttyp8
agpgart  fd1    mapper  md19  md3   null      sda10  sda9      tty7   ttyp9
console  input  md0     md2   md30  nvram     sda11  sg0       tty8   ttyS0
fb       kbd    md1     md20  md31  openprom  sda12  st0       tty9   ttyS1
fb0      log    md10    md21  md4   psaux     sda13  sunmouse  ttyp0  ttyS2
fb1      loop0  md11    md22  md5   ptmx      sda14  tty       ttyp1  ttyS3
fb2      loop1  md12    md23  md6   pts       sda2   tty0      ttyp2  urandom
fb3      loop2  md13    md24  md7   ptyp0     sda3   tty1      ttyp3  xvc0
fb4      loop3  md14    md25  md8   ram       sda4   tty2      ttyp4  zero
fb5      loop4  md15    md26  md9   random    sda5   tty3      ttyp5
fb6      loop5  md16    md27  mem   rtc       sda6   tty4      ttyp6
fb7      loop6  md17    md28  myvg  sda       sda7   tty5      ttyp7
sh-3.00# start_udev
udev を起動中:                                             [  OK  ]
sh-3.00#
sh-3.00# ls /dev/
agpgart    fd0u1920   md17      ram13    tap12    tty33   ttyS12  ttyS5
arpd       fd0u2880   md18      ram14    tap13    tty34   ttyS13  ttyS50
cdrom      fd0u3200   md19      ram15    tap14    tty35   ttyS14  ttyS51
console    fd0u3520   md2       ram2     tap15    tty36   ttyS15  ttyS52
core       fd0u360    md20      ram3     tap2     tty37   ttyS16  ttyS53
dm-0       fd0u3840   md21      ram4     tap3     tty38   ttyS17  ttyS54
dm-1       fd0u720    md22      ram5     tap4     tty39   ttyS18  ttyS55
dm-2       fd0u800    md23      ram6     tap5     tty4    ttyS19  ttyS56
dm-3       fd0u820    md24      ram7     tap6     tty40   ttyS2   ttyS57
dnrtmsg    fd0u830    md25      ram8     tap7     tty41   ttyS20  ttyS58
dvd        floppy     md26      ram9     tap8     tty42   ttyS21  ttyS59
fb         full       md27      ramdisk  tap9     tty43   ttyS22  ttyS6
fb0        fwmonitor  md28      random   tcpdiag  tty44   ttyS23  ttyS60
fd         hdc        md29      rawctl   tty      tty45   ttyS24  ttyS61
fd0        input      md3       route    tty0     tty46   ttyS25  ttyS62
fd0CompaQ  ip6_fw     md30      route6   tty1     tty47   ttyS26  ttyS63
fd0d360    kmsg       md31      rtc      tty10    tty48   ttyS27  ttyS64
fd0D360    log        md4       sda      tty11    tty49   ttyS28  ttyS65
fd0D720    loop0      md5       sda1     tty12    tty5    ttyS29  ttyS66
fd0h1200   loop1      md6       sda10    tty13    tty50   ttyS3   ttyS67
fd0h1440   loop2      md7       sda11    tty14    tty51   ttyS30  ttyS7
fd0H1440   loop3      md8       sda12    tty15    tty52   ttyS31  ttyS8
fd0h1476   loop4      md9       sda13    tty16    tty53   ttyS32  ttyS9
fd0h1494   loop5      mem       sda2     tty17    tty54   ttyS33  urandom
fd0h1660   loop6      net       sda3     tty18    tty55   ttyS34  usersock
fd0h360    loop7      nflog     sda4     tty19    tty56   ttyS35  vcs
fd0H360    lp0        null      sda5     tty2     tty57   ttyS36  vcs1
fd0h410    lp1        parport0  sda6     tty20    tty58   ttyS37  vcs2
fd0h420    lp2        parport1  sda7     tty21    tty59   ttyS38  vcs3
fd0h720    lp3        parport2  sda8     tty22    tty6    ttyS39  vcs4
fd0H720    MAKEDEV    parport3  sda9     tty23    tty60   ttyS4   vcsa
fd0h880    mapper     port      shm      tty24    tty61   ttyS40  vcsa1
fd0u1040   md0        ppp       skip     tty25    tty62   ttyS41  vcsa2
fd0u1120   md1        ptmx      stderr   tty26    tty63   ttyS42  vcsa3
fd0u1440   md10       pts       stdin    tty27    tty7    ttyS43  vcsa4
fd0u1660   md11       ram       stdout   tty28    tty8    ttyS44  xfrm
fd0u1680   md12       ram0      systty   tty29    tty9    ttyS45  XOR
fd0u1722   md13       ram1      tap0     tty3     ttyS0   ttyS46  zero
fd0u1743   md14       ram10     tap1     tty30    ttyS1   ttyS47
fd0u1760   md15       ram11     tap10    tty31    ttyS10  ttyS48
fd0u1840   md16       ram12     tap11    tty32    ttyS11  ttyS49
sh-3.00#
sh-3.00# ls
bin   etc   initrd  lost+found  misc  private  root     srv       tmp  vfat
boot  halt  kits    lvm         mnt   proc     sbin     sys       usr
dev   home  lib     media       opt   public   selinux  tftpboot  var
sh-3.00# cd /mnt
sh-3.00# ls
sh-3.00# cd /media/
alt-home/ cdrom/    ext2/     ext3/     floppy/
sh-3.00# ls /media/cdrom/
sh-3.00#
sh-3.00# mount /media/cdrom/
mount: block device /dev/hdc is write-protected, mounting read-only
sh-3.00# ls /media/cdrom/
CentOS              headers   NOTES                  RPM-GPG-KEY
centosdocs-man.css  images    RELEASE-NOTES-en.html  RPM-GPG-KEY-centos4
GPL                 isolinux  repodata               yumgroups.xml
sh-3.00#
sh-3.00#
sh-3.00# grub-install /dev/sda
Installation finished. No error reported.
This is the contents of the device map /boot/grub/device.map.
Check if this is correct or not. If any of the lines is incorrect,
fix it and re-run the script `grub-install'.

# this device map was generated by anaconda
(fd0)     /dev/fd0
(hd0)     /dev/sda
sh-3.00#
sh-3.00#
sh-3.00# exit
exit
sh-3.00# exit