View previous topic :: View next topic |
Author |
Message |
JP Linux Guru
Joined: 07 Jul 2024 Posts: 6670 Location: Central Montana
|
|
Back to top |
|
inactive Sr. Member
Joined: 29 Aug 2024 Posts: 1207
|
Posted: Sun Jun 15, 2024 7:25 am Post subject: |
|
|
it's
then the chroot
_________________ Mandriva 2024.1 PWP
Mandriva Cooker
ArtistX live
|
|
Back to top |
|
JP Linux Guru
Joined: 07 Jul 2024 Posts: 6670 Location: Central Montana
|
|
Back to top |
|
inactive Sr. Member
Joined: 29 Aug 2024 Posts: 1207
|
|
Back to top |
|
JP Linux Guru
Joined: 07 Jul 2024 Posts: 6670 Location: Central Montana
|
|
Back to top |
|
jester Sr. Member
Joined: 19 Apr 2024 Posts: 1166
|
Posted: Sun Jun 15, 2024 8:52 am Post subject: |
|
|
JP to chroot from knoppix, please see the instructions in your sidux thread
_________________ Arch64 :: Funtoo64 :: FreeBSD-8.0 :: OSX-10.4.11 (PPC)
Testing: Fedora12_x86-64 :: Ubuntu-10.04-LTS_x86-64
|
|
Back to top |
|
inactive Sr. Member
Joined: 29 Aug 2024 Posts: 1207
|
|
Back to top |
|
JP Linux Guru
Joined: 07 Jul 2024 Posts: 6670 Location: Central Montana
|
|
Back to top |
|
masinick Linux Guru
Joined: 03 Apr 2024 Posts: 8615 Location: Concord, NH
|
Posted: Tue Jun 17, 2024 10:59 pm Post subject: |
|
|
DedannaRocks! wrote: | it's
then the chroot |
I would explicitly add the complete path, that is, , replacing hda1 with whatever the actual partition name happens to be. I think it would be sda1 if that is a sidux system, but KNOPPIX may still recognize it as hda1 - I know PCLinuxOS still uses hd naming conventions in PCLinuxOS 2024, even with packaging updates. |
|
Back to top |
|
inactive Sr. Member
Joined: 29 Aug 2024 Posts: 1207
|
Posted: Wed Jun 18, 2024 8:50 am Post subject: |
|
|
Sorry, forgot the / .
Try /dev/hda1
_________________ Mandriva 2024.1 PWP
Mandriva Cooker
ArtistX live
|
|
Back to top |
|
JP Linux Guru
Joined: 07 Jul 2024 Posts: 6670 Location: Central Montana
|
|
Back to top |
|
jester Sr. Member
Joined: 19 Apr 2024 Posts: 1166
|
Posted: Wed Jun 18, 2024 3:29 pm Post subject: |
|
|
did you try su - ?
_________________ Arch64 :: Funtoo64 :: FreeBSD-8.0 :: OSX-10.4.11 (PPC)
Testing: Fedora12_x86-64 :: Ubuntu-10.04-LTS_x86-64
|
|
Back to top |
|
masinick Linux Guru
Joined: 03 Apr 2024 Posts: 8615 Location: Concord, NH
|
Posted: Thu Jun 19, 2024 1:43 am Post subject: |
|
|
su is used to become another user during a login session. Invoked
without a username, su defaults to becoming the super user. The
optional argument - may be used to provide an environment similar to
what the user would expect had the user logged in directly.
As Jester suggests, using the - argument may prove useful in order to get the correct environment prior to using the chroot command. Give that a try and let us know what you get. Sure looks like your version of KNOPPIX still adheres to the hd rather than sd device naming convention. I am a bit rusty on the particulars, but I *think* it is udev that provides the new and different device naming convention. |
|
Back to top |
|
JP Linux Guru
Joined: 07 Jul 2024 Posts: 6670 Location: Central Montana
|
Posted: Thu Jun 19, 2024 4:46 am Post subject: |
|
|
Code: | knoppix@Knoppix:~$ su -
root@Knoppix:~# passwd
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
root@Knoppix:~# pwd
/root
root@Knoppix:~# whoami
root
root@Knoppix:~# mount /dev/hda1
root@Knoppix:~# /mnt/hda1
-su: /mnt/hda1: is a directory
root@Knoppix:~# chroot /mnt/hda1
bash: /dev/null: Permission denied
bash: /dev/null: Permission denied
bash: /dev/null: Permission denied
bash: /dev/null: Permission denied
bash: /dev/null: Permission denied
bash: /dev/null: Permission denied
|
_________________ Dell Box - Arch Linux
Dell Lappy - DreamLinux 3.5 - Default OS
Mepis 8.0 - Backup
|
|
Back to top |
|
jester Sr. Member
Joined: 19 Apr 2024 Posts: 1166
|
Posted: Thu Jun 19, 2024 11:34 am Post subject: |
|
|
JP wrote: | Code: | knoppix@Knoppix:~$ su -
root@Knoppix:~# passwd
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
root@Knoppix:~# pwd
/root
root@Knoppix:~# whoami
root
root@Knoppix:~# mount /dev/hda1
root@Knoppix:~# /mnt/hda1
-su: /mnt/hda1: is a directory
root@Knoppix:~# chroot /mnt/hda1
bash: /dev/null: Permission denied
bash: /dev/null: Permission denied
bash: /dev/null: Permission denied
bash: /dev/null: Permission denied
bash: /dev/null: Permission denied
bash: /dev/null: Permission denied
|
|
JP - that looks like progress up until the mount /dev/hda1; I strongly suggest that you review the chroot steps I posted in your sidux thread i.e. make a new mount point, mount that on /dev/hda1, make sure you also mount /mount/point/proc with the correct arguments all before you chroot /mount/point /bin/bash
why follow those steps? because they are part of the 'genuine' gentoo install and I know they work for recovery too
you are incredibly close
|
|
Back to top |
|
|