Forum
Xbian not starting: Can't access tty - Printable Version

+- Forum (http://forum.xbian.org)
+-- Forum: Software (/forum-6.html)
+--- Forum: Configuration (/forum-17.html)
+--- Thread: Xbian not starting: Can't access tty (/thread-1088.html)



Xbian not starting: Can't access tty - harmenzon - 10th Jul, 2013 03:13 AM

Hi all,

After installing an using Xbian 1.0 beta successfully for a while, it suddenly stopped within the init process.
Code:
mount: mounting /dev/mcblk0p2 on /rootfs failed: No space left on device
Mounting root partition dev/mcblk0p2 failed

/bin/sh: can't access tty; job control turned off

Any suggestions how to solve this?


RE: Xbian not starting: Can't access tty - IriDium - 10th Jul, 2013 03:50 AM

(10th Jul, 2013 03:13 AM)harmenzon Wrote:  Hi all,

After installing an using Xbian 1.0 beta successfully for a while, it suddenly stopped within the init process.
Code:
mount: mounting /dev/mcblk0p2 on /rootfs failed: No space left on device
Mounting root partition dev/mcblk0p2 failed

/bin/sh: can't access tty; job control turned off

Any suggestions how to solve this?

Can you reference here first. http://forum.xbian.org/announcements.php?aid=8

As a **wild** guess, I'd say your SD card is full.

1) What size SD card are you using?
2) What add-ons have you installed?
3) Have you copied *anything* onto the SD card?
4) Was it a *fresh* install or an upgrade?

From there, we *might* be able to assist.


RE: Xbian not starting: Can't access tty - harmenzon - 10th Jul, 2013 05:49 AM

Quote:1) What size SD card are you using?
16Gb
Quote:2) What add-ons have you installed?
Download package
Quote:3) Have you copied *anything* onto the SD card?
No, but probably downloaded.
Quote:4) Was it a *fresh* install or an upgrade?
fresh install

I agree with you, I think the SD card is full. But how do I get access to for example:
Code:
/home/xbian/incomplete
or more likely
Code:
/media/usb/incomplete



RE: Xbian not starting: Can't access tty - IriDium - 10th Jul, 2013 08:53 PM

(10th Jul, 2013 05:49 AM)harmenzon Wrote:  
Quote:1) What size SD card are you using?
16Gb
Quote:2) What add-ons have you installed?
Download package
Quote:3) Have you copied *anything* onto the SD card?
No, but probably downloaded.
Quote:4) Was it a *fresh* install or an upgrade?
fresh install

I agree with you, I think the SD card is full. But how do I get access to for example:
Code:
/home/xbian/incomplete
or more likely
Code:
/media/usb/incomplete

1) Try <cntl> <alt> <del> from the screen and see if that puts you in a login screen.
2) Use the SD card in another machine and edit the cmdline.txt file and add avoid_safe_mode=1 (This should put you in safe mode).
Try in the RPi
3) Rename cmdline.txt to cmdline.txt.bak
Try in the RPi
Hopefully, one of the above, will get you to a terminal screen.

Also see https://github.com/xbianonpi/xbian-package-initramfs/wiki/XBian-specific-cmdline.txt-options and the "rescue" options.


RE: Xbian not starting: Can't access tty - harmenzon - 10th Jul, 2013 11:33 PM

Quote:1) Try <cntl> <alt> <del> from the screen and see if that puts you in a login screen.
2) Use the SD card in another machine and edit the cmdline.txt file and add avoid_safe_mode=1 (This should put you in safe mode).
Try in the RPi
3) Rename cmdline.txt to cmdline.txt.bak
Try in the RPi
Hopefully, one of the above, will get you to a terminal screen.

Also see https://github.com/xbianonpi/xbian-package-initramfs/wiki/XBian-specific-cmdline.txt-options and the "rescue" options.

Unfortunately, all the above failed. I will start a fresh install again.
Too bad that I have to configure all the download packages again...


RE: Xbian not starting: Can't access tty - rbellamy - 11th Jul, 2013 01:10 PM

I have the same issue.

/dev/mmcblk0p2 30G 414M 30G 2% /run/media/rbellamy/xbian-root-btrfs
/dev/mmcblk0p1 34M 20M 15M 59% /run/media/rbellamy/8B12-9112

Clearly my SD card isn't full.

@harmenzon - did you by chance do a kernel upgrade before the boot failure? or were you using the the experimental "partswap" switch in cmdline.txt?


RE: Xbian not starting: Can't access tty - mk01 - 15th Jul, 2013 06:01 AM

(10th Jul, 2013 03:13 AM)harmenzon Wrote:  Any suggestions how to solve this?

try to mount readonly first, then umount and mount with rw again.

(you can do it from the shell you are dropping into after the error. just to "mount -o ro /dev/mmcblk0p2 /rootfs", "umount /rootfs", "mount -o rw …"

if you succeed with ro option, check dmesg | tail for any messages relevant to btrfs. in nothing, you can always put "debug" into cmdline.txt to force lot of debugging info.


RE: Xbian not starting: Can't access tty - kas_27_es - 29th Sep, 2013 03:57 AM

hi all!

I had the same problem: starting xbian, it stopped at init process....

Well, after read your post, I decided to do somethig: start xbian but first unplug the hard disk... Solved, xbian start fine again.


RE: Xbian not starting: Can't access tty - mk01 - 29th Sep, 2013 12:56 PM

@kas_27_es

is the mentioned disk listed in /etc/fstab ? if so, can you try adding "nobootwait" parameter to mount options and try again ?



(11th Jul, 2013 01:10 PM)rbellamy Wrote:  I have the same issue.

/dev/mmcblk0p2 30G 414M 30G 2% /run/media/rbellamy/xbian-root-btrfs
/dev/mmcblk0p1 34M 20M 15M 59% /run/media/rbellamy/8B12-9112

Clearly my SD card isn't full.

@harmenzon - did you by chance do a kernel upgrade before the boot failure? or were you using the the experimental "partswap" switch in cmdline.txt?

can you put "rescue" into cmdline.txt and in the shell you will be dropped to do:
Code:
mount -o subvol=/ /dev/mmcblk0p2 /tmp
btrfs sub list /tmp

if you see
Code:
root/@safe
home/@safe

you can remove them with
Code:
btrfs sub delete /tmp/root/@safe
btrfs sub delete /tmp/home/@safe

can you post "btrfs fi df /tmp" - in case you are still in the shell. if you can boot 'normally' then it's "btrfs fi df /" .