LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-10-2004, 11:20 AM   #1
pablovschby
Member
 
Registered: Oct 2003
Posts: 153

Rep: Reputation: 30
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
 
Old 02-10-2004, 12:01 PM   #2
pablovschby
Member
 
Registered: Oct 2003
Posts: 153

Original Poster
Rep: Reputation: 30
what am i doing wrong?
There are a lot of hints on google, but nothing helped me....
havenßt you got any advise?
 
Old 02-11-2004, 01:46 AM   #3
pablovschby
Member
 
Registered: Oct 2003
Posts: 153

Original Poster
Rep: Reputation: 30
hasn't anyone an idea?
If it doesn't run and you know that, please tell me...
thanks
 
Old 02-11-2004, 08:32 AM   #4
pablovschby
Member
 
Registered: Oct 2003
Posts: 153

Original Poster
Rep: Reputation: 30
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
 
Old 02-12-2004, 02:02 AM   #5
pablovschby
Member
 
Registered: Oct 2003
Posts: 153

Original Poster
Rep: Reputation: 30
well, it ran with cd1 from redhat (rescue mode) and I could reinstall my grub-loader to my mbr
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
hdparm -i /dev/hda - Mandriva 2006 VS Knoppix 4.02 Paltrude Linux - Hardware 4 11-26-2005 10:17 AM
/dev/hda under lilo.conf even thoug my HD is under /dev/hdb Basel Slackware 8 10-27-2005 07:00 PM
dd if=/dev/hda of=dev/hdb taking forever to complete fechin Linux - Hardware 7 06-19-2005 01:04 AM
how to add "hdparm -c 1 -d 1 -k 1 /dev/hda" to startup script (as root)? jimothy05 Linux - Distributions 2 10-07-2004 08:32 AM
How can I boot either one of my hard drives /dev/hda or /dev/hdb, I have RH9 and FC2 omogunkristi Linux - General 1 06-21-2004 06:11 AM


All times are GMT -5. The time now is 12:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration