All pastes #729215 Raw Edit

Untitled

public text v1 · immutable
·published 2007-10-07 19:30 UTC
rendered paste body
knoppix@Knoppix:~$ fgrep /dev/evms /etc/fstab
/dev/evms/lvm2/Debian/fsroot /media/sda1 ext3 noauto,users,exec,acl,user_xattr 0 0
/dev/evms/lvm2/Debian/home /media/sda1/home ext3 noauto,users,exec,acl,user_xattr 0 0
/dev/evms/lvm2/Debian/swap none swap swap 0 0
/dev/evms/sda2 /media/sda1/boot ext3 noauto,users,exec,acl,user_xattr 0 0
knoppix@Knoppix:~$ sudo mount /mnt/sda1
knoppix@Knoppix:~$ sudo mount /mnt/sda1/boot
knoppix@Knoppix:~$ sudo mount /mnt/sda1/home
knoppix@Knoppix:~$ for i in dev sys proc tmp; do sudo mount --bind /$i /mnt/sda1/$i; done
knoppix@Knoppix:~$ sudo chroot /mnt/sda1 /bin/bash -l
root@Knoppix:/# export HOME=/root
root@Knoppix:/# cd
root@Knoppix:~# cat /boot/grub/device.map
(fd0)   /dev/fd0
(hd0)   /dev/sda
(hd1)   /dev/hdc

root@Knoppix:~# grub
Probing devices to guess BIOS drives. This may take a long time.

    GNU GRUB  version 0.97  (640K lower / 3072K upper memory)

       [ Minimal BASH-like line editing is supported.   For
         the   first   word,  TAB  lists  possible  command
         completions.  Anywhere else TAB lists the possible
         completions of a device/filename. ]

grub> find /grub/stage1
 (hd1,1)

grub> root (hd1,1)
 Filesystem type is ext2fs, partition type 0x83

grub> root (hd1,1)
 Filesystem type is ext2fs, partition type 0x83

grub> setup (hd1)
 Checking if "/boot/grub/stage1" exists... no
 Checking if "/grub/stage1" exists... yes
 Checking if "/grub/stage2" exists... yes
 Checking if "/grub/e2fs_stage1_5" exists... yes
 Running "embed /grub/e2fs_stage1_5 (hd1)"...  16 sectors are embedded.
succeeded
 Running "install /grub/stage1 (hd1) (hd1)1+16 p (hd1,1)/grub/stage2 /grub/menu
.lst"... succeeded
Done.

grub> quit
root@Knoppix:~#