LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   root-access on /dev/hda with knoppix 3.3????????? (https://www.linuxquestions.org/questions/linux-software-2/root-access-on-dev-hda-with-knoppix-3-3-a-144454/)

pablovschby 02-10-2004 10:20 AM

root-access on /dev/hda with knoppix 3.3?????????
 
Hello

I booted up knoppix3.3 from cd and wanted to restore my grub back to my mbr. after booting up knoppix I do this in a terminal-window:
Code:

sudo su
cd /mnt
mount hda4                                  #fdisk says-> hda4 is root and bootable
[root@ttyp0[mnt]]# chroot hda4
bash: /dev/null: Keine Berechtigung
bash: /dev/null: Keine Berechtigung
bash: /dev/null: Keine Berechtigung
bash: /dev/null: Keine Berechtigung:

"keine berechtigung" is german and means "no access" or "access error", but anyhow, knoppix changes root to hda4 (very strange, I know)
Code:

[root@Knoppix /]# df -m
Dateisystem          1M-Blöcke  Benutzt Verfügbar Ben% Eingehängt auf
/dev/hda4                3691      1109      2395  32% /
none                      3691      1109      2395  32% /proc
[root@Knoppix /]# sudo su
bash: /dev/null: Keine Berechtigung
bash: /dev/null: Keine Berechtigung
bash: /dev/null: Keine Berechtigung
bash: /dev/null: Keine Berechtigung
[root@Knoppix /]# su
bash: /dev/null: Keine Berechtigung
bash: /dev/null: Keine Berechtigung
bash: /dev/null: Keine Berechtigung
bash: /dev/null: Keine Berechtigung

so the cause for my problem is the access-problem. As I executed the following command for the first time, I damaged my mbr...
Code:

[root@Knoppix /]# grub-install /dev/hda
/sbin/grub-install: line 419: /dev/null: Keine Berechtigung
/sbin/grub-install: line 421: /dev/null: Keine Berechtigung
/sbin/grub-install: line 419: /dev/null: Keine Berechtigung
/sbin/grub-install: line 421: /dev/null: Keine Berechtigung
/sbin/grub-install: line 419: /dev/null: Keine Berechtigung
/sbin/grub-install: line 421: /dev/null: Keine Berechtigung
/sbin/grub-install: line 419: /dev/null: Keine Berechtigung
/sbin/grub-install: line 421: /dev/null: Keine Berechtigung
/sbin/grub-install: line 419: /dev/null: Keine Berechtigung
/sbin/grub-install: line 421: /dev/null: Keine Berechtigung
The file /boot/grub/stage1 not read correctly.

I tried also "/dev/hda4" indeed of /dev/hda, but the same errors appear....
how do you get root-access on a harddisk by booting knoppix3.3?????
please help, it's very important
thanks for all advises
pablo

pablovschby 02-10-2004 11:01 AM

what am i doing wrong?
There are a lot of hints on google, but nothing helped me....
havenßt you got any advise?

pablovschby 02-11-2004 12:46 AM

hasn't anyone an idea?
If it doesn't run and you know that, please tell me...
thanks

pablovschby 02-11-2004 07:32 AM

today morning, once, it ran successfull... but after installing windows again... on hda1, it doesn't run anymore...here what I've done this morning:
Code:

knoppix@ttyp1[knoppix]$ sudo su
root@ttyp1[knoppix]# cd /mnt
root@ttyp1[mnt]# mount /dev/hda4 hda4
root@ttyp1[mnt]# ls
#  auto  cdrom  fd0  floppy  hd  hda2  hda4  hda5  none  test
root@ttyp1[mnt]# cd hda4
root@ttyp1[hda4]# ls
bin  dev  home    lib        misc  opt  root  tmp  var
boot  etc  initrd  lost+found  mnt  proc  sbin  usr
root@ttyp1[hda4]# mount -o bind /proc proc
root@ttyp1[hda4]# chroot /mnt/hda4
bash-2.05b# grub-install /dev/hda
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/hda
bash-2.05b#

but I can't reproduce this effect. after entering "grub install /dev/hda" (and all the other commands, entered as they are listed above) my knoppix says: "access error"....
what tha fuck am i doing wrong????
please help

pablovschby 02-12-2004 01:02 AM

well, it ran with cd1 from redhat (rescue mode) and I could reinstall my grub-loader to my mbr


All times are GMT -5. The time now is 07:07 PM.