Linux mount issue on Parallella

Message boards : Number crunching : Linux mount issue on Parallella
Message board moderation

To post messages, you must log in.

AuthorMessage
MarkJ Crowdfunding Project Donor*Special Project $75 donorSpecial Project $250 donor
Volunteer tester
Avatar

Send message
Joined: 17 Feb 08
Posts: 1139
Credit: 80,854,192
RAC: 5
Australia
Message 1632068 - Posted: 24 Jan 2015, 5:48:37 UTC
Last modified: 24 Jan 2015, 5:50:12 UTC

I've got a couple of Parallella. they work fine running BOINC and Einstein. I'm trying to test a seti@home app on them but I am having issues copying the files across.

The Parallellas are running Ubuntu trusty. Main storage/boot is an SD card. The SD card has 2 partitions, a smallish boot partition in FAT format and the rest in ext4 format.

I tried copying the file onto the boot partition using a windows PC, no problems there, moved the SD card back over to the Parallella and off it goes. I can't seem to mount the boot partition though.

When that didn't work I tried copying it on a USB memory stick (aka thumb drive) and plugging that in. Again it doesn't seem to want to mount.

dmesg shows it being recognised, so its probably me in that I can't get it to mount partition 0:
mmc0: new high speed SDHC card at address e624
mmcblk0: mmc0:e624 SU08G 7.40 GiB
mmcblk0: p1 p2


when I try the mount command I get:
sudo mount -t vfat mmcblk0p1: /mnt/boot
mount: special device mmcblk0p1: does not exist


Other suggestions about using blkio that google returns don't seem to help either. It simply returns to the command prompt with no display.
sudo blkid


I expect its simply me using the wrong syntax. Any help would be appreciated.
BOINC blog
ID: 1632068 · Report as offensive
Highlander
Avatar

Send message
Joined: 5 Oct 99
Posts: 167
Credit: 37,987,668
RAC: 16
Germany
Message 1632082 - Posted: 24 Jan 2015, 6:14:00 UTC

does the mount-point /mnt/boot exist? if not then mkdir it.

normally the mmc-partitions should be automount at start, perhaps under /boot or /media/boot.
With usb-sticks, they should be automount at plugin under the directory /media
- Performance is not a simple linear function of the number of CPUs you throw at the problem. -
ID: 1632082 · Report as offensive
MarkJ Crowdfunding Project Donor*Special Project $75 donorSpecial Project $250 donor
Volunteer tester
Avatar

Send message
Joined: 17 Feb 08
Posts: 1139
Credit: 80,854,192
RAC: 5
Australia
Message 1632107 - Posted: 24 Jan 2015, 7:14:33 UTC - in response to Message 1632082.  

does the mount-point /mnt/boot exist? if not then mkdir it.

Yes I did a sudo mkdir boot while in the /mnt directory. It will tell you when you try the mount if the directory doesn't exist.
BOINC blog
ID: 1632107 · Report as offensive
Profile JanniCash
Avatar

Send message
Joined: 17 Nov 03
Posts: 57
Credit: 1,276,920
RAC: 0
United States
Message 1632205 - Posted: 24 Jan 2015, 14:09:09 UTC - in response to Message 1632068.  

dmesg shows it being recognised, so its probably me in that I can't get it to mount partition 0:
mmc0: new high speed SDHC card at address e624
mmcblk0: mmc0:e624 SU08G 7.40 GiB
mmcblk0: p1 p2


when I try the mount command I get:
sudo mount -t vfat mmcblk0p1: /mnt/boot
mount: special device mmcblk0p1: does not exist


I doubt there is a colon in the actual device name.
ID: 1632205 · Report as offensive
MarkJ Crowdfunding Project Donor*Special Project $75 donorSpecial Project $250 donor
Volunteer tester
Avatar

Send message
Joined: 17 Feb 08
Posts: 1139
Credit: 80,854,192
RAC: 5
Australia
Message 1632418 - Posted: 25 Jan 2015, 0:47:06 UTC - in response to Message 1632205.  
Last modified: 25 Jan 2015, 0:49:59 UTC

I doubt there is a colon in the actual device name.

It doesn't make any difference, still the same message apart from the colon.
BOINC blog
ID: 1632418 · Report as offensive
Profile ML1
Volunteer moderator
Volunteer tester

Send message
Joined: 25 Nov 01
Posts: 20260
Credit: 7,508,002
RAC: 20
United Kingdom
Message 1632419 - Posted: 25 Jan 2015, 0:59:53 UTC - in response to Message 1632068.  
Last modified: 25 Jan 2015, 1:00:28 UTC

I've got a couple of Parallella. they work fine running BOINC and Einstein. I'm trying to test a seti@home app on them but I am having issues copying the files across...

dmesg shows it being recognised, so its probably me in that I can't get it to mount partition 0:
mmc0: new high speed SDHC card at address e624
mmcblk0: mmc0:e624 SU08G 7.40 GiB
mmcblk0: p1 p2


when I try the mount command I get:
sudo mount -t vfat mmcblk0p1: /mnt/boot
mount: special device mmcblk0p1: does not exist


Other suggestions about using blkio that google returns don't seem to help either. It simply returns to the command prompt with no display.
sudo blkid


I expect its simply me using the wrong syntax. Any help would be appreciated.

You have an extra unneeded ":"...

Try:

sudo mount -t vfat mmcblk0p1 /mnt/boot


Note no ":". Also, /mnt/boot must already exist (mkdir /mnt/boot ?).


Good luck,

Happy fast cruinchin'!
Martin
See new freedom: Mageia Linux
Take a look for yourself: Linux Format
The Future is what We all make IT (GPLv3)
ID: 1632419 · Report as offensive
Profile ML1
Volunteer moderator
Volunteer tester

Send message
Joined: 25 Nov 01
Posts: 20260
Credit: 7,508,002
RAC: 20
United Kingdom
Message 1632708 - Posted: 25 Jan 2015, 20:39:21 UTC - in response to Message 1632419.  
Last modified: 25 Jan 2015, 20:42:32 UTC

You have an extra unneeded ":"...

Try:

sudo mount -t vfat mmcblk0p1 /mnt/boot


Note no ":". Also, /mnt/boot must already exist (mkdir /mnt/boot ?).

Oooooops... Too hasty a reply...


Normally, such device names such as sda1 for the first partition on a HDD, or mmcblk0p1 for the first partition on a flash memory device are usually in the "/dev" directory.

Hence try:

sudo mount -t vfat /dev/mmcblk0p1 /mnt/boot

If you do not know what file system is on there, you can simply use:

sudo mount /dev/mmcblk0p1 /mnt/boot

and allow automatic discovery of any filesystem recognized.


Or... If you are running a distro such as Ubuntu and a graphical desktop, you should get a notification from the task bar where you can then click to select whether you want to mount the new device or do whatever with it with whatever choice of applications.

If not... One for the Parallela forums?


Good luck,

Happy fast cruinchin'!
Martin
See new freedom: Mageia Linux
Take a look for yourself: Linux Format
The Future is what We all make IT (GPLv3)
ID: 1632708 · Report as offensive
MarkJ Crowdfunding Project Donor*Special Project $75 donorSpecial Project $250 donor
Volunteer tester
Avatar

Send message
Joined: 17 Feb 08
Posts: 1139
Credit: 80,854,192
RAC: 5
Australia
Message 1632996 - Posted: 26 Jan 2015, 13:00:02 UTC

Tried that too, unfortunately didn't work.

x2:/mnt> ls -l -h
total 4.0K
drwxr-xr-x 2 root root 4.0K Jan 24 16:33 boot/
x2:/mnt> sudo mount /dev/mmcblk0p1 /mnt/boot
mount: special device /dev/mmcblk0p1 does not exist
x2:/mnt>

BOINC blog
ID: 1632996 · Report as offensive
Profile ML1
Volunteer moderator
Volunteer tester

Send message
Joined: 25 Nov 01
Posts: 20260
Credit: 7,508,002
RAC: 20
United Kingdom
Message 1633060 - Posted: 26 Jan 2015, 18:07:13 UTC - in response to Message 1632996.  

Tried that too, unfortunately didn't work.

x2:/mnt> ls -l -h
total 4.0K
drwxr-xr-x 2 root root 4.0K Jan 24 16:33 boot/
x2:/mnt> sudo mount /dev/mmcblk0p1 /mnt/boot
mount: special device /dev/mmcblk0p1 does not exist
x2:/mnt>

"does not exist" describes it...


What do you get from listing what devices are there?

ls -lh /dev/{mm,sd,hd}*

?

(That cryptic short-hand lists all the usual media types.)


Is your sdcard compatible with the Parallela hardware?...

Good luck,
Martin
See new freedom: Mageia Linux
Take a look for yourself: Linux Format
The Future is what We all make IT (GPLv3)
ID: 1633060 · Report as offensive
MarkJ Crowdfunding Project Donor*Special Project $75 donorSpecial Project $250 donor
Volunteer tester
Avatar

Send message
Joined: 17 Feb 08
Posts: 1139
Credit: 80,854,192
RAC: 5
Australia
Message 1633520 - Posted: 27 Jan 2015, 12:39:17 UTC - in response to Message 1633060.  
Last modified: 27 Jan 2015, 12:43:42 UTC

"does not exist" describes it...

What do you get from listing what devices are there?

ls -lh /dev/{mm,sd,hd}*

?

(That cryptic short-hand lists all the usual media types.)

x2:/dev> ls -lh /dev/mm*
ls: No match.
x2:/dev> ls -lh /dev/sd*
ls: No match.
x2:/dev> ls -lh /dev/hd*
ls: No match.

Here's the short list of whats in there:
x2:/dev> ls
agpgart   dsp1    loop1   midi02      null   ram14  random     sndstat  tty6
audio     dsp2    loop2   midi03      port   ram15  rmidi0     stderr   tty7
audio1    dsp3    loop3   midi1       ptmx   ram16  rmidi1     stdin    tty8
audio2    fb0     loop4   midi2       pts/   ram2   rmidi2     stdout   tty9
audio3    fd      loop5   midi3       ram    ram3   rmidi3     tty      ttyPS0
audioctl  full    loop6   mixer       ram0   ram4   sequencer  tty0     urandom
char/     input/  loop7   mixer1      ram1   ram5   shm        tty1     zero
console   kmem    mem     mixer2      ram10  ram6   smpte0     tty2
core      kmsg    midi0   mixer3      ram11  ram7   smpte1     tty3
dri/      log     midi00  mpu401data  ram12  ram8   smpte2     tty4
dsp       loop0   midi01  mpu401stat  ram13  ram9   smpte3     tty5


Is your sdcard compatible with the Parallela hardware?...

Good luck,
Martin

Well as far as I know it is, has been running for the last 6 months. They are Sandisk ones in both machines. Besides if I plug a USB hard disk or a USB memory stick in they can't be mounted either. Its almost as if its been setup to not see any other device when plugged in.

As a work around I ended up using Dropbox and then doing a wget to copy it across. Doesn't solve this problem though or explain why.
BOINC blog
ID: 1633520 · Report as offensive
Profile ML1
Volunteer moderator
Volunteer tester

Send message
Joined: 25 Nov 01
Posts: 20260
Credit: 7,508,002
RAC: 20
United Kingdom
Message 1633527 - Posted: 27 Jan 2015, 13:31:23 UTC - in response to Message 1633520.  
Last modified: 27 Jan 2015, 13:32:52 UTC

"does not exist" describes it...

x2:/dev> ls -lh /dev/mm*
ls: No match.
x2:/dev> ls -lh /dev/sd*
ls: No match.
x2:/dev> ls -lh /dev/hd*
ls: No match.

[...]

Is your sdcard compatible with the Parallela hardware?...

Well as far as I know it is, has been running for the last 6 months. They are Sandisk ones in both machines. Besides if I plug a USB hard disk or a USB memory stick in they can't be mounted either. Its almost as if its been setup to not see any other device when plugged in.

Weeeeeeell...

There's your problem... ;-)


For whatever reason, the "udev" service or whatever is used to populate media/storage devices is not operating or otherwise cannot find or access your hardware.

Double check that those devices work fine elsewhere??


As a work around I ended up using Dropbox and then doing a wget to copy it across. Doesn't solve this problem though or explain why.

That's a good ingenious work-around.

More interesting is why /dev is not populated with your devices.


You can:

Look up to see how to manually create the udev nodes for your hardware. That will take you into some developer type esoterics but will show you how things work.

Or... Copy your data to a backup and then try a full update. Or last ditch, try a reinstall.


Or... Have you tweaked any config around the time those devices disappeared?...

At least we can see where the problem is. Why may be more interesting...


Let us know what you find!

Good luck,
Martin
See new freedom: Mageia Linux
Take a look for yourself: Linux Format
The Future is what We all make IT (GPLv3)
ID: 1633527 · Report as offensive
Highlander
Avatar

Send message
Joined: 5 Oct 99
Posts: 167
Credit: 37,987,668
RAC: 16
Germany
Message 1633562 - Posted: 27 Jan 2015, 15:33:47 UTC

Found this:

https://github.com/parallella/parallella-ubuntu

7. Enable devtmpfs and make SD card accessible from Parallella

cd /media/$USER/rootfs/dev
sudo mknod -m 660 mmcblk0 b 179 0
sudo mknod -m 660 mmcblk0p1 b 179 1
sudo mknod -m 660 mmcblk0p2 b 179 2


really strange, seems to be a really heavy stripped down distri.
- Performance is not a simple linear function of the number of CPUs you throw at the problem. -
ID: 1633562 · Report as offensive
MarkJ Crowdfunding Project Donor*Special Project $75 donorSpecial Project $250 donor
Volunteer tester
Avatar

Send message
Joined: 17 Feb 08
Posts: 1139
Credit: 80,854,192
RAC: 5
Australia
Message 1634014 - Posted: 28 Jan 2015, 11:11:19 UTC - in response to Message 1633562.  

Found this:

https://github.com/parallella/parallella-ubuntu

7. Enable devtmpfs and make SD card accessible from Parallella

cd /media/$USER/rootfs/dev
sudo mknod -m 660 mmcblk0 b 179 0
sudo mknod -m 660 mmcblk0p1 b 179 1
sudo mknod -m 660 mmcblk0p2 b 179 2


really strange, seems to be a really heavy stripped down distri.

There isn't anything under /media, so did the following which seem to have got it going.

x2:/media> sudo mkdir linaro
x2:/media> sudo chown linaro:linaro linaro
x2:/media> cd linaro
x2:/media/linaro> sudo mknod -m 660 mmcblk0 b 179 0
x2:/media/linaro> sudo mknod -m 660 mmcblk0p1 b 179 1
x2:/media/linaro> sudo mknod -m 660 mmcblk0p2 b 179 2
x2:/media/linaro> ls
mmcblk0 mmcblk0p1 mmcblk0p2
x2:/media/linaro> cd ..
x2:/media> sudo mkdir boot
x2:/media> cd linaro
x2:/media/linaro> sudo mount mmcblk0p1 /media/boot
x2:/media/linaro> ls /media/boot
devicetree.dtb parallella.bit.bin uImage

Thank you Highlander.
BOINC blog
ID: 1634014 · Report as offensive
Highlander
Avatar

Send message
Joined: 5 Oct 99
Posts: 167
Credit: 37,987,668
RAC: 16
Germany
Message 1634048 - Posted: 28 Jan 2015, 12:25:54 UTC

cool!
- Performance is not a simple linear function of the number of CPUs you throw at the problem. -
ID: 1634048 · Report as offensive

Message boards : Number crunching : Linux mount issue on Parallella


 
©2024 University of California
 
SETI@home and Astropulse are funded by grants from the National Science Foundation, NASA, and donations from SETI@home volunteers. AstroPulse is funded in part by the NSF through grant AST-0307956.