You are not logged in.
How about using backquote with echo to make use of globbing, e.g.
# `echo /?i?/mou?t` /dev/sda1 /A
EDIT: actually might not need backquoting even:
# /?i?/mou?t /dev/sda1 /A
This is a task for creative minds.
My command worked as is without echo.
Read-only mount is the problem now.
Offline
I mounted at /mnt.
I can't create /A because the file system is read-only.
Offline
What about
mount -o remount,rw /
Last edited by Élisabeth (2021-12-01 15:01:30)
Offline
You might need to run /sbin/fsck -y /dev/sda2 or /sbin/fsck.ext4 -y /dev/sda2 to mount it rw.
Offline
Hello:
... no Apple or Windows in this house.
8^)
... got into single user mode.
Glad you are making progress.
Best,
A.
Last edited by Altoid (2021-12-01 10:59:13)
Offline
What about
mount -o remount,rw /
I can use wildcards for the mount command, but how do I type remount without n ?
Offline
You might need to run /sbin/fsck -y /dev/sda2 or /sbin/fsck.ext4 -y /dev/sda2 to mount it rw.
I tried this. Came back as clean.
Then
mount -o rw /dev/sda2 /mnt
Warning: source write-protected, mounted read-only
Any more ideas to mount read write?
Offline
Even more simple:
Can I run firefox in single user mode?
Or can I just do command line stuff?
Literally, that's all I want in the short term until I have a new keyboard.
Offline
The linux line on the boot screen specifies ro.
That needs to be changed to rw.
Once booted into single user mode, I executed
mount /dev/sda2 /mnt
No more read-only warning!
Mounted with write access.
Last edited by Élisabeth (2021-12-01 21:03:35)
Offline
What's wrong with copying and pasting your password in?
Offline
Next problem:
chroot /mnt
Error:
/bin/sh: 0: can't access tty: job control turned off
Offline
Now bind the directories:
# mount -o bind /sys /mnt/sys # mount -t proc proc /mnt/proc # mount -o bind /dev /mnt/dev # mount -o bind /dev/pts /mnt/dev/pts
.
I probably need some of this.
But how do I type bind?
Offline
What's wrong with copying and pasting your password in?
How? Where do I copy it from?
The ultimate goal is to change my personal user name and password, both of which contain b and n, the dead letters.
Offline
Just copy all the required text from an existing document or website in to a text file and delete what you need until you have your password in the file.
su select the text and middle click in the terminal press enter not return
edit: Then change your password :-)
Last edited by Kelsoo (2021-12-01 17:41:40)
Offline
Just copy all the required text from an existing document or website in to a text file and delete what you need until you have your password in the file.
su select the text and middle click in the terminal press enter not return
edit: Then change your password :-)
Sorry if I'm being dense. I can only get into single user mode.
You mean su into root or my personal user from
I don't have a file containing the word but I could find a b somewhere.
Offline
Apparently passwd has built-in chroot
# passwd -R /mnt
Offline
Apparently passwd has built-in chroot
# passwd -R /mnt
You're a genius !!!!!!
Offline
@aitor
After using the passwd -R command
I followed your excellent step-by-step description, exited the chrooted system and unmounted /mnt.
(Without the exit it didn't work.)
Offline
Logged in as root, I changed username with usermod, copy paste of old username from /etc/passwd, then change of password with passwd.
Thank you all!
I could do with a graphical keyboard or character map to type the dead letters until I have the new keyboard.
Offline