mrgreaper
Posts: 42
Joined: Sat Aug 31, 2013 10:49 pm

think i have broken fstab..help

Mon Feb 09, 2015 10:50 pm

ok so i was following https://bitbucket.org/inkubux/cubox-i/w ... x%20Wheezy to get plex media server up and running,
i got as far as
quote " You should have access to your plex server at the following address
http://<<Your IP Address>>:32400/web/index.html "
and sure enough the server was up and running

I decided i would mount a folder from my external drive to the library folder so that the meta data didnt take from what little space i have on the sd card but first i needed to shutdown plex.... since the pi is not windows there is no task manager so figured best bet was to tell the pi to restart

only when it booted up it gets as far as mounting my hard drive and then just stops, the cursor is blinking, i can type but its not continuing the boot

any ideas? i really dont want to reset it all back to square one, been working on getting it setup for a fair few hours now
im sure its an issue with the fstab file, its mounting my hd but imguessing since the chroot program is not running it cant mount the folders beyond that

mrgreaper
Posts: 42
Joined: Sat Aug 31, 2013 10:49 pm

Re: think i have broken fstab..help

Mon Feb 09, 2015 11:17 pm

it wont boot with the usb drive unpluged either, but it does regonise if usb devices are pluged in or unpluged while it is stuck at that stage

im really at a loss, must be some way to fix ? a pi equivelent to windows restore or safemode?

Affix
Posts: 2
Joined: Mon Feb 09, 2015 11:34 pm
Location: Edinburgh
Contact: Website

Re: think i have broken fstab..help

Mon Feb 09, 2015 11:38 pm

If you went through the part about mounts in fstab you probably have broken your fstab.

The easiest way to fix this would be to mount your SDCard and edit the file manually.

If you are a windows user you will need to install something to read the ext4 filesystem.

This should do the trick : http://www.ext2fsd.com

fstab is located in /etc/fstab of the ext4 filesystem.

The defaults are :

Code: Select all

proc            /proc           proc    defaults          0       0
/dev/mmcblk0p1  /boot           vfat    defaults          0       2
/dev/mmcblk0p2  /               ext4    defaults,noatime  0       1
This may be different if not using raspian however.

To Answer your question about safe mode. There is non as such however there should be a recovery console but it will take a little effort to get to and is for fairly advanced users.
Pis : Model A, Model B, Pi2 Model B
I am a Proud Fedora Contributor

mrgreaper
Posts: 42
Joined: Sat Aug 31, 2013 10:49 pm

Re: think i have broken fstab..help

Tue Feb 10, 2015 12:02 am

couldnt get the program to regonise the drive, but using ext2explorer i was able to retrieve the fstab file....just not be able to put it back, spent all day getting the stuff i need and configuring it so im thinking chalk this up as a learning experience and try again.

im also not sure its the fstab, i did "mount -a" after editing it and did not get any errors...surely thier would of been errors?

think ill reflash the image to the sd card (start afresh)
install plex media server first ( https://forums.plex.tv/index.php/topic/ ... erry-pi-2/ )
then reboot and see if i get the same error...then re do all i have done, (have learnt i can use a program called putty to access the pi so i dont have to type every line from the guides, i can cut and paste ...should make it much faster lol

mrgreaper
Posts: 42
Joined: Sat Aug 31, 2013 10:49 pm

Re: think i have broken fstab..help

Tue Feb 10, 2015 4:11 am

ok so many many hours later i had the raspberry reset
i finally got it to mount my external hd on boot (man thats way harder then it should be)
i had plex server installed and working
i had samba installed and working
i had ftp installed and working
i was feeling good
i then installed nzbget following this guide http://www.htpcguides.com/install-nzbge ... mment-2227
its the same guide i followed earlier

again my raspberry will not fully boot, i get the wall of text and then it stops just after dealing with the mounts
if i remove or plug in usb devices it regonises them and shows some text so its not froozen, i cant enter commands though

i believe it to be the upstart program the guide has you install but i have no idea how to fix..i dont have the will power to start from scratch again, its 4am i have been trying to do this all day (i have a new appreciation for windows)

am i screwed? is thier a way to fix it?

microchipthefirst
Posts: 1
Joined: Tue Feb 10, 2015 12:08 pm

Re: think i have broken fstab..help

Tue Feb 10, 2015 12:21 pm

I have several suggestions that may help you.
First do you have a spare 8GB USB data stick?
If yes: download Knoppix and install it on the USB stick and boot your laptop/pc into Knoppix. It is a GUI Linux port and you can then drill down to the fstab file and edit it.
If no: burn a cd with your choice of Linux os, boot the computer and edit MicroSD as above.

In general, I would suggest getting a handful of MicroSDs, burn a copy of your Pi opsys to each, then you can experiment until whatever you're trying works. Total setup time around 60 minutes. Ten minutes to burn each MicroSD and while you're burning the next, setup the previous. Setup takes 10 minutes. One further tip. If you setup multiple MicroSDs and you're planning to connect with Putty or other ssh client. Change the IP address on each so that you don't get security messages from Putty every time you swap a card. Oh and give each a separate machine name, keep each card in a separate envelope and label it with what is loaded. e.g. Base, or Base+I2C. When you know how each element installs correctly, you can burn a final version with all your modules working together.

Return to “Beginners”