Getting partition to automount on boot

3 messages Options
Embed this post
Permalink
François-Léonard Gilbert

Getting partition to automount on boot

Reply Threaded More More options
Print post
Permalink
Hi all,

I'm not used to Linux in general, so you will have to excuse the basic  
Linux question:  how do I configure my FR to automount ALL my SD  
card's partitions at boot?

Setup:  I have QtMoko in NAND, and 2 partitions on my SD card:
1) uImage.bin - useless except when I want to boot from SD
2) the rest of the card, with all my map files, MP3 etc.

At boot, QtMoko mounts only the first partition in /media/card/, and I  
have to mount the useful one manually each time I reboot.

Any pointers on a HOWTO?

Thanks!
François
_______________________________________________
support mailing list
[hidden email]
https://lists.openmoko.org/mailman/listinfo/support
Joachim Ott-2

Re: Getting partition to automount on boot

Reply Threaded More More options
Print post
Permalink
2009/10/18 François-Léonard Gilbert <[hidden email]>:

> Hi all,
>
> I'm not used to Linux in general, so you will have to excuse the basic
> Linux question:  how do I configure my FR to automount ALL my SD
> card's partitions at boot?
>
> Setup:  I have QtMoko in NAND, and 2 partitions on my SD card:
> 1) uImage.bin - useless except when I want to boot from SD
> 2) the rest of the card, with all my map files, MP3 etc.
>
> At boot, QtMoko mounts only the first partition in /media/card/, and I
> have to mount the useful one manually each time I reboot.

Add an entry to /etc/fstab (/media/card seems to be in there already):

/dev/mmcblk0p2  /media/mmcblk0p2        auto    defaults,async,auto     0  2

- before that do a "mkdir /media/mmcblk0p2"
- do a "man fstab" on your desktop pc to learn the meaning of the
fields in /etc/fstab

_______________________________________________
support mailing list
[hidden email]
https://lists.openmoko.org/mailman/listinfo/support
François-Léonard Gilbert

Re: Getting partition to automount on boot

Reply Threaded More More options
Print post
Permalink

I went to tuxfiles.org to get the skinny on /etc/fstab, and now it  
works as I tought it should.  Thanks!

François

Le 09-10-18 à 12:13, Joachim Ott a écrit :

> 2009/10/18 François-Léonard Gilbert <[hidden email]>:
>> Hi all,
>>
>> I'm not used to Linux in general, so you will have to excuse the  
>> basic
>> Linux question:  how do I configure my FR to automount ALL my SD
>> card's partitions at boot?
>>
>> Setup:  I have QtMoko in NAND, and 2 partitions on my SD card:
>> 1) uImage.bin - useless except when I want to boot from SD
>> 2) the rest of the card, with all my map files, MP3 etc.
>>
>> At boot, QtMoko mounts only the first partition in /media/card/,  
>> and I
>> have to mount the useful one manually each time I reboot.
>
> Add an entry to /etc/fstab (/media/card seems to be in there already):
>
> /dev/mmcblk0p2  /media/mmcblk0p2        auto    
> defaults,async,auto     0  2
>
> - before that do a "mkdir /media/mmcblk0p2"
> - do a "man fstab" on your desktop pc to learn the meaning of the
> fields in /etc/fstab
>
> _______________________________________________
> support mailing list
> [hidden email]
> https://lists.openmoko.org/mailman/listinfo/support


_______________________________________________
support mailing list
[hidden email]
https://lists.openmoko.org/mailman/listinfo/support