It is currently Mon Jul 24, 2017 10:48 pm



Welcome
Welcome to antiX-forum.

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content, and access many other special features. Registration is fast, simple, and absolutely free, so please, join our community today!


Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 29 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: antiX-15-rc1.1: Serious errors caused by "eject" [Solved]
PostPosted: Sun Jun 28, 2015 9:37 pm 
Offline
User avatar

Joined: Tue Sep 01, 2009 12:48 am
Posts: 1162
In Virtual Box (version 4.3.28.100309 on Gentoo) any successful use of the "eject" command makes important parts of the system unusable. An easy test is to boot to runlevel 3 with the "toram" option. Then login to a virtual console and run the commands:
Code:
eject -v /dev/sr0
poweroff
I've attached a screenshot of what happens here.

I'm hoping this is just an artifact due to Virtual Box or the particular version of Virtual Box I'm using, or my Virtual Box configuration.

Can anyone else replicate this problem in Virtual Box?

More importantly: can anyone replicated this problem on real hardware? I don't know if you need to boot from a LiveCD in order to cause the error. You could certainly try to reproduce the error booting from a LiveUSB and running eject and then poweroff.

Recipe:
  1. Boot using "toram" and "3" (in Virtual Box or with a LiveCD)
  2. Log in as root in a virtual console
  3. Run the commands:
    Code:
    eject -v /dev/sr0
    poweroff
If the problem only exists in Virtual Box (or in certain versions of Virtual Box) then I can easily work-around it by disabling automatic toram-eject if we detect the system is running on Virtual Box.

PS: I could not replicate the problem with MX-14.4.


Attachments:
eject-bug.png
eject-bug.png [ 21.59 KiB | Viewed 1514 times ]

_________________
Science is the belief in the ignorance of experts.
-- Richard Feynman


Last edited by BitJam on Mon Jun 29, 2015 9:05 pm, edited 2 times in total.
Top
 Profile  
 
 Post subject: Re: antiX-15-rc1.1: Serious errors caused by "eject" command
PostPosted: Sun Jun 28, 2015 10:20 pm 
Offline

Joined: Mon Jun 22, 2015 3:42 pm
Posts: 3
Using an USB key, the poweroff command worked on real hardware.
Henry


Top
 Profile  
 
 Post subject: Re: antiX-15-rc1.1: Serious errors caused by "eject" command
PostPosted: Sun Jun 28, 2015 10:25 pm 
Offline
User avatar

Joined: Tue Sep 01, 2009 12:48 am
Posts: 1162
Thanks Henry! That's encouraging.

_________________
Science is the belief in the ignorance of experts.
-- Richard Feynman


Top
 Profile  
 
 Post subject: Re: antiX-15-rc1.1: Serious errors caused by "eject" command
PostPosted: Sun Jun 28, 2015 10:34 pm 
Offline
User avatar

Joined: Sun Dec 16, 2007 4:49 pm
Posts: 2160
I'm duplicating your error on real hardware (the HP in my sig) running off a 4gb usb stick. No persistence.

also, after ejecting the usb stick, I could no longer open a terminal window or logout/powerdown from the icewm menu. I resorted to the cli and running sudo poweroff, resulting in the identical input/output error you received.

_________________
http://www.youtube.com/runwiththedolphin
eeepc 904ha antix 15 32 bit (streaming media player)
sony laptop amd 900mhz duran 512mb ram, antix 13 32-bit
lenovo s21e - 2gb ram, celeron - antiX-16 64 bit


Top
 Profile  
 
 Post subject: Re: antiX-15-rc1.1: Serious errors caused by "eject" command
PostPosted: Sun Jun 28, 2015 10:45 pm 
Offline

Joined: Mon Jun 22, 2015 3:42 pm
Posts: 3
I'm getting the poweroff error in Virtualbox (using M11). The same error message for the reboot command.
Henry


Top
 Profile  
 
 Post subject: Re: antiX-15-rc1.1: Serious errors caused by "eject" command
PostPosted: Sun Jun 28, 2015 10:50 pm 
Offline
User avatar

Joined: Tue Sep 01, 2009 12:48 am
Posts: 1162
Thanks D.O.! This is a serious issue IMO since running "eject" borks the system.

Is anyone able to test and see if the same problem exists on an installed system?

Also, please check the output of the dmesg command (if your system is not wedged). Something like:
Code:
dmesg | tail -n50
should suffice.

I see nothing in dmesg right after running eject and then I wedged the machine with "poweroff".

@D.O. Does your HP use apm? An easy way to test this is to try to power-off from inside the bootloader using F10 --> poweroff. The reboot works on all/most systems but poweroff only works on older apm systems.

If it is apm related, I could disable toram-eject on systems that use apm and we could list this as a very big known bug.

_________________
Science is the belief in the ignorance of experts.
-- Richard Feynman


Top
 Profile  
 
 Post subject: Re: antiX-15-rc1.1: Serious errors caused by "eject" command
PostPosted: Sun Jun 28, 2015 11:09 pm 
Offline
User avatar

Joined: Tue Sep 01, 2009 12:48 am
Posts: 1162
I've followed up on the apm angle and I saw that CONFIG_APM is not set in our rc1.1 kernel but it is set in the MX-14.4 kernel which does not have this problem. BUT, I can't even load the apm module inside of Virtual Box (using MX-14.4) so it seems unlikely that the lack of this module is causing the problem.

ATM the only way I know how to detect apm is to try F10 --> shutdown in the Live bootloader.

_________________
Science is the belief in the ignorance of experts.
-- Richard Feynman


Top
 Profile  
 
 Post subject: Re: antiX-15-rc1.1: Serious errors caused by "eject" command
PostPosted: Sun Jun 28, 2015 11:36 pm 
Offline
Site Admin
User avatar

Joined: Tue Sep 11, 2007 4:55 pm
Posts: 5883
Location: Greece
Bad news.

Running on real hardware via cd F4 toram option. Same as d_o

_________________
Philosophers have interpreted the world in many ways; the point is to change it.


Top
 Profile  
 
 Post subject: Re: antiX-15-rc1.1: Serious errors caused by "eject" command
PostPosted: Sun Jun 28, 2015 11:42 pm 
Offline
User avatar

Joined: Tue Sep 01, 2009 12:48 am
Posts: 1162
Does F10 --> shutdown in the bootloader work?

_________________
Science is the belief in the ignorance of experts.
-- Richard Feynman


Top
 Profile  
 
 Post subject: Re: antiX-15-rc1.1: Serious errors caused by "eject" command
PostPosted: Mon Jun 29, 2015 12:18 am 
Offline
User avatar

Joined: Sun Dec 16, 2007 4:49 pm
Posts: 2160
BitJam wrote:
Does F10 --> shutdown in the bootloader work?


not on the HP.

More info:

I'm having a lot of trouble running apps whenever toram is used and the media is ejected. So far, apps that I've launched prior to ejecting the media still launch, but other apps do not.


also tried with acpi=off, and while "halt" worked some of the time with the media ejected, and all the time with the media in place, my machine did not actually poweroff.

edit ***still more info***

playing around a little more, and after eject, for instance, I've have never run geany, and if I run geany from the terminal after the media eject, I get the same input/output error BitJam sees for shutdown in his test in the original post. However, apps that I ran before eject (terminal, rox, spacefm, and leafpad) still worked.

So I'm thinking this is not related to kernel modules (except aufs I guess) but rather in the mechansim be which the linux file system put into ram.

FWIW, all tests I did were nosavestate, toram, no persistence selected.

_________________
http://www.youtube.com/runwiththedolphin
eeepc 904ha antix 15 32 bit (streaming media player)
sony laptop amd 900mhz duran 512mb ram, antix 13 32-bit
lenovo s21e - 2gb ram, celeron - antiX-16 64 bit


Top
 Profile  
 
 Post subject: Re: antiX-15-rc1.1: Serious errors caused by "eject" command
PostPosted: Mon Jun 29, 2015 12:58 am 
Offline
User avatar

Joined: Tue Sep 01, 2009 12:48 am
Posts: 1162
Some Questions
  • Does the problem exist on installed systems?
  • Does it exist on systems booted via LiveUSB (when you eject the cd/dvd drive)?
  • When did the problem start (kernel, antiX version)?

I just tested antiX-14-a3-RV_x64-full with kernel 3.17.0 in Virtual Box and it did not have the problem. Nor did I see the problem in antiX-15-beta1 with the 3.19.1 kernel.

_________________
Science is the belief in the ignorance of experts.
-- Richard Feynman


Top
 Profile  
 
 Post subject: Re: antiX-15-rc1.1: Serious errors caused by "eject" command
PostPosted: Mon Jun 29, 2015 1:06 am 
Offline
Site Admin
User avatar

Joined: Tue Sep 11, 2007 4:55 pm
Posts: 5883
Location: Greece
Strange - antiX-14-a3-RV_x64-full doesn't work on my box. but antiX-15-beta1 did.

_________________
Philosophers have interpreted the world in many ways; the point is to change it.


Top
 Profile  
 
 Post subject: Re: antiX-15-rc1.1: Serious errors caused by "eject" command
PostPosted: Mon Jun 29, 2015 1:10 am 
Offline
User avatar

Joined: Tue Sep 01, 2009 12:48 am
Posts: 1162
antiX-15-beta1 worked but antiX-15-beta2 did not. They both have the same 3.19.1 kernel with identical configurations. This points to a change in the userland tools. Maybe we will get very very lucky and be able to fix this by pinning some packages to older versions.

_________________
Science is the belief in the ignorance of experts.
-- Richard Feynman


Top
 Profile  
 
 Post subject: Re: antiX-15-rc1.1: Serious errors caused by "eject" command
PostPosted: Mon Jun 29, 2015 1:15 am 
Offline
Site Admin
User avatar

Joined: Tue Sep 11, 2007 4:55 pm
Posts: 5883
Location: Greece
antiX-15-beta1 only works when booting to init 3 with toram, login as root, eject -v /dev/sr0, halt

If I boot to desktop with toram, and choose yes at both eject cd prompts, then try to logout from the menu, it fails

_________________
Philosophers have interpreted the world in many ways; the point is to change it.


Top
 Profile  
 
 Post subject: Re: antiX-15-rc1.1: Serious errors caused by "eject" command
PostPosted: Mon Jun 29, 2015 1:21 am 
Offline
User avatar

Joined: Sun Dec 16, 2007 4:49 pm
Posts: 2160
BitJam wrote:
Some Questions
  • Does the problem exist on installed systems?
  • Does it exist on systems booted via LiveUSB (when you eject the cd/dvd drive)?
  • When did the problem start (kernel, antiX version)?

I just tested antiX-14-a3-RV_x64-full with kernel 3.17.0 in Virtual Box and it did not have the problem. Nor did I see the problem in antiX-15-beta1 with the 3.19.1 kernel.


Quote:
Does the problem exist on installed systems?


No, at least not on mine.

Quote:
Does it exist on systems booted via LiveUSB (when you eject the cd/dvd drive)?


not so far as I can tell. I ejected a disk in the drive with the liveusb running, didn't encounter any problems.

From what I can see, is the stick even still mounted after the linuxfs is loaded to the toram? I see a boot message for "Late umount ...sdb1".

I can't see where my stick is mounted (/media/sdb1 is not mounted, nor is there a /live/boot-dev

assuming the stick isn't mounted in the first place, then just pulling the stick is enough to cause the behavior (no eject statement).

_________________
http://www.youtube.com/runwiththedolphin
eeepc 904ha antix 15 32 bit (streaming media player)
sony laptop amd 900mhz duran 512mb ram, antix 13 32-bit
lenovo s21e - 2gb ram, celeron - antiX-16 64 bit


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 29 posts ]  Go to page 1, 2  Next


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
suspicion-preferred