tmpfs as /mnt install question
I apologize if this is the wrong place for this, but I'm trying to understand an issue I'm running into. For educational purposes, I'm trying to install Crux 3.2 onto a ramdisk, naturally I know everything will disappear upon reboot, but I'm not worried about that - i'm just trying to see what can be done. Going from the Official Crux 3.2 install guide, I go through all the same steps I generally follow, except to establish /mnt I do: mount -t tmpfs -o size=8gb tmpfs /mnt I can run the setup, I can setup-chroot, but I can't passwd when I do passwd, it immediately tells me: Changing password for root Enter the new password (minimum of 5 characters) Please use a combination of upper and lower case letters and numbers. Bad password: too short. Warning: weak password (enter it again to use it anyway) passwd: password changed. but I don't even have a chance to type anything, it just does all of that at once. When I look in /etc/passwd I can see a line for root, but no password, unsurprisingly. could the problem be in tmpfs? I'm not sure what's really different here. Thank you.
I don't know if this has anything to do with password, but: tmpfs: Bad value '8gb' for mount option 'size' On Thursday, April 21, 2016 7:31 PM, Steve Volumetric <volumetricsteve@gmail.com> wrote: I apologize if this is the wrong place for this, but I'm trying to understand an issue I'm running into. For educational purposes, I'm trying to install Crux 3.2 onto a ramdisk, naturally I know everything will disappear upon reboot, but I'm not worried about that - i'm just trying to see what can be done. Going from the Official Crux 3.2 install guide, I go through all the same steps I generally follow, except to establish /mnt I do: mount -t tmpfs -o size=8gb tmpfs /mnt I can run the setup, I can setup-chroot, but I can't passwd when I do passwd, it immediately tells me: Changing password for rootEnter the new password (minimum of 5 characters)Please use a combination of upper and lower case letters and numbers.Bad password: too short.Warning: weak password (enter it again to use it anyway)passwd: password changed. but I don't even have a chance to type anything, it just does all of that at once. When I look in /etc/passwd I can see a line for root, but no password, unsurprisingly. could the problem be in tmpfs? I'm not sure what's really different here.Thank you. _______________________________________________ CRUX mailing list CRUX@lists.crux.nu https://lists.crux.nu/mailman/listinfo/crux
I see a typo in my email, it should be 8g instead of 8gb. The typo was only in my email. I should note the research machine I'm doing this on is an AMD fx-8350 with 16gb of RAM total. Oddly enough, I was able to follow the same steps on an old X61 thinkpad laptop, and it works fine (only 2gb RAM) On Apr 21, 2016 10:30 PM, <mvanroy@bellsouth.net> wrote:
I don't know if this has anything to do with password, but:
tmpfs: Bad value '8gb' for mount option 'size'
On Thursday, April 21, 2016 7:31 PM, Steve Volumetric < volumetricsteve@gmail.com> wrote:
I apologize if this is the wrong place for this, but I'm trying to understand an issue I'm running into.
For educational purposes, I'm trying to install Crux 3.2 onto a ramdisk, naturally I know everything will disappear upon reboot, but I'm not worried about that - i'm just trying to see what can be done.
Going from the Official Crux 3.2 install guide, I go through all the same steps I generally follow, except to establish /mnt I do:
mount -t tmpfs -o size=8gb tmpfs /mnt
I can run the setup, I can setup-chroot, but I can't passwd
when I do passwd, it immediately tells me:
Changing password for root Enter the new password (minimum of 5 characters) Please use a combination of upper and lower case letters and numbers. Bad password: too short. Warning: weak password (enter it again to use it anyway) passwd: password changed.
but I don't even have a chance to type anything, it just does all of that at once.
When I look in /etc/passwd I can see a line for root, but no password, unsurprisingly.
could the problem be in tmpfs? I'm not sure what's really different here. Thank you.
_______________________________________________ CRUX mailing list CRUX@lists.crux.nu https://lists.crux.nu/mailman/listinfo/crux
On 2016-04-22 08:31, Steve Volumetric wrote:
I apologize if this is the wrong place for this, but I'm trying to understand an issue I'm running into.
For educational purposes, I'm trying to install Crux 3.2 onto a ramdisk, naturally I know everything will disappear upon reboot, but I'm not worried about that - i'm just trying to see what can be done.
Going from the Official Crux 3.2 install guide, I go through all the same steps I generally follow, except to establish /mnt I do:
mount -t tmpfs -o size=8gb tmpfs /mnt
I can run the setup, I can setup-chroot, but I can't passwd
when I do passwd, it immediately tells me:
Changing password for root Enter the new password (minimum of 5 characters) Please use a combination of upper and lower case letters and numbers. Bad password: too short. Warning: weak password (enter it again to use it anyway) passwd: password changed.
but I don't even have a chance to type anything, it just does all of that at once.
You probably skipped this command from the install guide: mount --bind /dev /mnt/dev
When I look in /etc/passwd I can see a line for root, but no password, unsurprisingly.
Unsurprising indeed, since the password should be in /etc/shadow ;) Regards, Alan
I'm all but certain I got the /dev mount line right, but I won't know until I can get to my research machine again for another..nearly 18 hours. You'd of course be right about /etc/passed and /etc/shadow, I almost never deal with user accounts and thus confused what I was looking at. Good catch. I'm glad I got it working on my thinkpad though, that at least dispels my theory it was somehow tmpfs related. I MUST have done something wrong in my setup on the big machine... Thanks for the replies On Apr 21, 2016 10:59 PM, "Alan Mizrahi" <alan+crux@mizrahi.com.ve> wrote:
On 2016-04-22 08:31, Steve Volumetric wrote:
I apologize if this is the wrong place for this, but I'm trying to understand an issue I'm running into.
For educational purposes, I'm trying to install Crux 3.2 onto a ramdisk, naturally I know everything will disappear upon reboot, but I'm not worried about that - i'm just trying to see what can be done.
Going from the Official Crux 3.2 install guide, I go through all the same steps I generally follow, except to establish /mnt I do:
mount -t tmpfs -o size=8gb tmpfs /mnt
I can run the setup, I can setup-chroot, but I can't passwd
when I do passwd, it immediately tells me:
Changing password for root Enter the new password (minimum of 5 characters) Please use a combination of upper and lower case letters and numbers. Bad password: too short. Warning: weak password (enter it again to use it anyway) passwd: password changed.
but I don't even have a chance to type anything, it just does all of that at once.
You probably skipped this command from the install guide:
mount --bind /dev /mnt/dev
When I look in /etc/passwd I can see a line for root, but no password,
unsurprisingly.
Unsurprising indeed, since the password should be in /etc/shadow ;)
Regards,
Alan
I messed up, I suspect Alan's speculation that I bound /dev incorrectly may be correct. I simply retried the process again this morning and now it works fine. Thanks for the responses. On Thu, Apr 21, 2016 at 10:58 PM, Alan Mizrahi <alan+crux@mizrahi.com.ve> wrote:
On 2016-04-22 08:31, Steve Volumetric wrote:
I apologize if this is the wrong place for this, but I'm trying to understand an issue I'm running into.
For educational purposes, I'm trying to install Crux 3.2 onto a ramdisk, naturally I know everything will disappear upon reboot, but I'm not worried about that - i'm just trying to see what can be done.
Going from the Official Crux 3.2 install guide, I go through all the same steps I generally follow, except to establish /mnt I do:
mount -t tmpfs -o size=8gb tmpfs /mnt
I can run the setup, I can setup-chroot, but I can't passwd
when I do passwd, it immediately tells me:
Changing password for root Enter the new password (minimum of 5 characters) Please use a combination of upper and lower case letters and numbers. Bad password: too short. Warning: weak password (enter it again to use it anyway) passwd: password changed.
but I don't even have a chance to type anything, it just does all of that at once.
You probably skipped this command from the install guide:
mount --bind /dev /mnt/dev
When I look in /etc/passwd I can see a line for root, but no password,
unsurprisingly.
Unsurprising indeed, since the password should be in /etc/shadow ;)
Regards,
Alan
participants (3)
-
Alan Mizrahi
-
mvanroy@bellsouth.net
-
Steve Volumetric