User avatar
piMichu
Posts: 17
Joined: Fri May 29, 2015 7:57 am
Location: Wroclaw, PL

My disk does not mount correctly at boot.

Fri May 29, 2015 8:06 am

Hi,
the main question is, when will be released new Raspbian image?

I try to mount external 3.5 hdd over sata/usb adapter and I want to mount this disk at boot RPi2.
Unfortunately the tips I found, i.e. :
- rootdelay=5 at the end of cmdline.txt
- some lines in rc.local
doesn't work.

My disk doesn't mount at boot. The RPi2 just stopped and freeze.

I hope that with new release of Raspbian this issue will be fix.

At the moment I use .img from 2015-05-05.
Last edited by piMichu on Fri May 29, 2015 8:42 am, edited 1 time in total.
Raspberry Pi 2 FAN

ShiftPlusOne
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 6177
Joined: Fri Jul 29, 2011 5:36 pm
Location: The unfashionable end of the western spiral arm of the Galaxy

Re: When will be new release of Raspbian?

Fri May 29, 2015 8:19 am

When it's ready, but it doesn't sound like the image is the problem here.

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 24924
Joined: Sat Jul 30, 2011 7:41 pm

Re: When will be new release of Raspbian?

Fri May 29, 2015 8:25 am

I suspect more of a power problem that a image problem.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
“I own the world’s worst thesaurus. Not only is it awful, it’s awful."

User avatar
piMichu
Posts: 17
Joined: Fri May 29, 2015 7:57 am
Location: Wroclaw, PL

Re: When will be new release of Raspbian?

Fri May 29, 2015 8:29 am

@ShiftPlusOne, thanks for reply. So I am kindly waiting for new .img.

When I am working on RPi2 I can easily mount my partitions. And system sees and mount them.
Then I tried to add some lines in /etc/fstab and changed cmdline.txt (I added rootdelay=5 at the end).
It didn't work. My RPi2 stuck at the boot procedure.

Then I tried to mount partitions with added mount command in rc.local file.
It didn't work either.

@jamesh, my external 3.5 hdd has it's own power supply... to RPi2 I just plug in usb cable.

Could you tell me please, how should looks like procedure for working disk?
Raspberry Pi 2 FAN

User avatar
RaTTuS
Posts: 10531
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK
Contact: Twitter YouTube

Re: When will be new release of Raspbian?

Fri May 29, 2015 8:52 am

what USB adapter is it - is it included in the kernel build or is it a module
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

User avatar
piMichu
Posts: 17
Joined: Fri May 29, 2015 7:57 am
Location: Wroclaw, PL

Re: When will be new release of Raspbian?

Fri May 29, 2015 11:18 am

@RaTTuS,
I will check as soon as get back home.
Raspberry Pi 2 FAN

texy
Forum Moderator
Forum Moderator
Posts: 5161
Joined: Sat Mar 03, 2012 10:59 am
Location: Berkshire, England

Re: When will be new release of Raspbian?

Fri May 29, 2015 11:35 am

piMichu wrote:@ShiftPlusOne, thanks for reply. So I am kindly waiting for new .img
You will "always be waiting for a new image" - it is a continual evolution......
Texy
Various male/female 40- and 26-way GPIO header for sale here ( IDEAL FOR YOUR PiZero ):
https://www.raspberrypi.org/forums/viewtopic.php?f=93&t=147682#p971555

User avatar
piMichu
Posts: 17
Joined: Fri May 29, 2015 7:57 am
Location: Wroclaw, PL

Re: When will be new release of Raspbian?

Fri May 29, 2015 11:43 am

texy wrote:You will "always be waiting for a new image" - it is a continual evolution......
Texy
Yes, I know. :) So i will be waiting for appropriate package of evolution .img ;)
Raspberry Pi 2 FAN

texy
Forum Moderator
Forum Moderator
Posts: 5161
Joined: Sat Mar 03, 2012 10:59 am
Location: Berkshire, England

Re: When will be new release of Raspbian?

Fri May 29, 2015 11:52 am

piMichu wrote:
texy wrote:You will "always be waiting for a new image" - it is a continual evolution......
Texy
Yes, I know. :) So i will be waiting for appropriate package of evolution .img ;)
What do you mean by "appropriate" - what feature(s) are you looking for?
Texy
Various male/female 40- and 26-way GPIO header for sale here ( IDEAL FOR YOUR PiZero ):
https://www.raspberrypi.org/forums/viewtopic.php?f=93&t=147682#p971555

User avatar
piMichu
Posts: 17
Joined: Fri May 29, 2015 7:57 am
Location: Wroclaw, PL

Re: When will be new release of Raspbian?

Fri May 29, 2015 1:58 pm

I hope that new image will help me with wrong mount my disk during boot RPi2.
Raspberry Pi 2 FAN

User avatar
Jednorozec
Posts: 809
Joined: Sun Nov 24, 2013 2:17 pm
Location: Deposit, NY

Re: When will be new release of Raspbian?

Fri May 29, 2015 2:00 pm

piMichu wrote:I hope that new image will help me with wrong mount my disk during boot RPi2.
No, it won't. You have something configured improperly.
The most important leg of a three legged stool is the one that's missing.
It's called thinking. Why don't you try it sometime?

User avatar
piMichu
Posts: 17
Joined: Fri May 29, 2015 7:57 am
Location: Wroclaw, PL

Re: When will be new release of Raspbian?

Fri May 29, 2015 2:08 pm

Could you Help me in PM ?
Raspberry Pi 2 FAN

texy
Forum Moderator
Forum Moderator
Posts: 5161
Joined: Sat Mar 03, 2012 10:59 am
Location: Berkshire, England

Re: When will be new release of Raspbian?

Fri May 29, 2015 2:42 pm

piMichu wrote:Could you Help me in PM ?
No - keep it public so that we can all see ;)
You need to answer RaTTuS question from here :
viewtopic.php?f=63&t=111822#p766660
Various male/female 40- and 26-way GPIO header for sale here ( IDEAL FOR YOUR PiZero ):
https://www.raspberrypi.org/forums/viewtopic.php?f=93&t=147682#p971555

User avatar
piMichu
Posts: 17
Joined: Fri May 29, 2015 7:57 am
Location: Wroclaw, PL

Re: When will be new release of Raspbian?

Fri May 29, 2015 4:14 pm

texy wrote:No - keep it public so that we can all see ;)
Ok :) let's get normal :)
texy wrote:You need to answer RaTTuS question from here :
viewtopic.php?f=63&t=111822#p766660
When type command:

Code: Select all

lsusb
I get answer:

Code: Select all

pi@raspberrypi ~ $ lsusb
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. 
Bus 001 Device 007: ID 152d:2338 JMicron Technology Corp. / JMicron USA Technology Corp. JM20337 Hi-Speed USB to SATA & PATA Combo Bridge
pi@raspberrypi ~ $ 
What else I have to check for you? And how? ;)
Raspberry Pi 2 FAN

User avatar
Jednorozec
Posts: 809
Joined: Sun Nov 24, 2013 2:17 pm
Location: Deposit, NY

Re: When will be new release of Raspbian?

Fri May 29, 2015 4:48 pm

Are you trying to run the OS from the hard disk or are you just using it for extra storage?
The most important leg of a three legged stool is the one that's missing.
It's called thinking. Why don't you try it sometime?

User avatar
piMichu
Posts: 17
Joined: Fri May 29, 2015 7:57 am
Location: Wroclaw, PL

Re: When will be new release of Raspbian?

Fri May 29, 2015 4:54 pm

I try to use it for extra storage (NAS in LAN, and ownCloud for others).
I want to mount it during reboot (in case when power in home will off for a while).
Raspberry Pi 2 FAN

User avatar
Jednorozec
Posts: 809
Joined: Sun Nov 24, 2013 2:17 pm
Location: Deposit, NY

Re: When will be new release of Raspbian?

Fri May 29, 2015 4:57 pm

You shouldn't have to make any changes to have it mounted when you boot up. By default, the file manager mounts all of the drives that it finds. Can you boot if you disconnect the drive?
The most important leg of a three legged stool is the one that's missing.
It's called thinking. Why don't you try it sometime?

User avatar
piMichu
Posts: 17
Joined: Fri May 29, 2015 7:57 am
Location: Wroclaw, PL

Re: When will be new release of Raspbian?

Fri May 29, 2015 5:26 pm

Yes, when disk is NOT connected everything works normal.
Raspberry Pi 2 FAN

User avatar
Jednorozec
Posts: 809
Joined: Sun Nov 24, 2013 2:17 pm
Location: Deposit, NY

Re: When will be new release of Raspbian?

Fri May 29, 2015 5:38 pm

What happens if you boot without the disk and then connect it?
The most important leg of a three legged stool is the one that's missing.
It's called thinking. Why don't you try it sometime?

Joe Schmoe
Posts: 4277
Joined: Sun Jan 15, 2012 1:11 pm

Re: When will be new release of Raspbian?

Fri May 29, 2015 5:45 pm

Jednorozec wrote:You shouldn't have to make any changes to have it mounted when you boot up. By default, the file manager mounts all of the drives that it finds.
OP is probably not booting to GUI if using the Pi as NAS.

Anyway, it sounds like some necessary part of the OS isn't getting initialized soon enough - i.e., by the time the mount is attempted. This usually happens when people try to mount stuff in /etc/fstab.

It should work in /etc/rc.local - and it will work there, if you wait long enough. That is, keep re-trying until it succeeds (with a suitable delay between attempts).

However, having said that, I don't recommend doing this in /etc/rc.local, especially if you are doing something like this with potentially infinite re-try, simply because you will, in the course of developing it, lock up your system and need to ask here about how to get it unlocked. Rather, you should do it via the "auto-login and then run it from .profile method". Details on this are available various posts on the forum and/or by request to this author.

Finally, note that (as other posters have noted) none of this has anything to do with new versions of Raspian or any new "image files", so you might want to consider changing the thread title (I've heard that you, as a user, can do that, by editing the first post - I've never done it, but that's what I've heard). Note that this is just a suggestion, not a command or a requirement.
And some folks need to stop being fanboys and see the forest behind the trees.

(One of the best lines I've seen on this board lately)

User avatar
rpdom
Posts: 16072
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: When will be new release of Raspbian?

Fri May 29, 2015 6:06 pm

Do you power on the hard drive at the same time as the Pi, perhaps with the same switch, or do you power on the hard drive and wait for it to start first?

I'm using the same type of USB adaptor and it is working perfectly with a 2.5 inch 500GB SATA drive, although in my case the root fs is on the drive and the Pi waits for the drive to start.

troombatzia
Posts: 501
Joined: Fri Jun 29, 2012 4:27 pm

Re: When will be new release of Raspbian?

Fri May 29, 2015 6:42 pm

rpdom wrote: I'm using the same type of USB adaptor and it is working perfectly with a 2.5 inch 500GB SATA drive, although in my case the root fs is on the drive and the Pi waits for the drive to start.
A little off topic. Please, could you post a link to the adapter you're using? I'm looking for one working well. Thanks.
English isn’t my first language, so please excuse any mistakes.

rubikwizard
Posts: 95
Joined: Tue Jan 10, 2012 10:37 pm
Location: West Yorkshire
Contact: Website

Re: My disk does not mount correctly at boot.

Fri May 29, 2015 7:01 pm

The version of Rasbian (5/5/2015) has a known issue that stops mounts from etc/fstab during bootup. As a workaround you can add "mount -a" to the end of the file /etc/rc.local (before the line "exit 0"), and it will work again.

User avatar
piMichu
Posts: 17
Joined: Fri May 29, 2015 7:57 am
Location: Wroclaw, PL

Re: My disk does not mount correctly at boot.

Fri May 29, 2015 7:27 pm

[*]
Jednorozec wrote:What happens if you boot without the disk and then connect it?
When I boot without the disk RPi2 starts all right. Then I plug the usb cable from disk (it's already turn on to power). After that RPi mount hdd.
Joe Schmoe wrote:OP is probably not booting to GUI if using the Pi as NAS.

Anyway, it sounds like some necessary part of the OS isn't getting initialized soon enough - i.e., by the time the mount is attempted. This usually happens when people try to mount stuff in /etc/fstab.
I found some information on this forum that RPi2 is boot to fast and it should be added to cmdline.txt: rootdelay=5 (or 10).
But for it isn't working.
Joe Schmoe wrote:It should work in /etc/rc.local - and it will work there, if you wait long enough. That is, keep re-trying until it succeeds (with a suitable delay between attempts).

However, having said that, I don't recommend doing this in /etc/rc.local, especially if you are doing something like this with potentially infinite re-try, simply because you will, in the course of developing it, lock up your system and need to ask here about how to get it unlocked.
This tips with /etc/rc.local didn't work out either.
Joe Schmoe wrote: Rather, you should do it via the "auto-login and then run it from .profile method". Details on this are available various posts on the forum and/or by request to this author.
Could you please point me what phrase I must looking for?
Joe Schmoe wrote:Finally, note that (as other posters have noted) none of this has anything to do with new versions of Raspian or any new "image files", so you might want to consider changing the thread title (I've heard that you, as a user, can do that, by editing the first post - I've never done it, but that's what I've heard). Note that this is just a suggestion, not a command or a requirement.
I get it that it's my fault that I can't set it up...not a Raspbian. I will try to change title of this topic.
rpdom wrote:Do you power on the hard drive at the same time as the Pi, perhaps with the same switch, or do you power on the hard drive and wait for it to start first?
Sometimes at the same time... but for my test disk is always turn on and I just reboot RPi2.
Raspberry Pi 2 FAN

User avatar
rpdom
Posts: 16072
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: When will be new release of Raspbian?

Fri May 29, 2015 7:29 pm

troombatzia wrote:
rpdom wrote:I'm using the same type of USB adaptor
A little off topic. Please, could you post a link to the adapter you're using? I'm looking for one working well. Thanks.
It's just one of the really cheap ones on ebay. I have two and they both seem to work with the Pi. Here's an example of one http://www.ebay.co.uk/itm/221726776201

Return to “General discussion”