InDashPC.org Forum Index InDashPC.org
In Dash Car PC forum
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

HOW-TO: Install PyCar distro on a stick or HDD
Goto page 1, 2  Next
 
Post new topic   Reply to topic    InDashPC.org Forum Index -> Software
View previous topic :: View next topic  
Author Message
jbors
Site Admin


Joined: 12 Nov 2004
Posts: 1675

PostPosted: Sat Jul 30, 2005 9:48 pm    Post subject: HOW-TO: Install PyCar distro on a stick or HDD Reply with quote

Good day everyone.
I got so many questions asking how the PyCar can be installed on a HDD or stick.
Here is how:

Boot into your Linux distro (not PyCar)
Assume you have /dev/hdX for PyCar (code and data)
Create 2 partitions: /dev/hdX1 for PyCar and /dev/hdX2 for PyCar data ( movies, music, playlists etc ).
Make sure the /dev/hdX1 is a FAT16 partition ! syslinux cannot boot from anything else Sad
PyCar DVD-ROM is mapped to /mnt/cdrom
Do this:
Code:
syslinux /dev/hdX1
    mount /dev/hdX1 /mnt/hdX1
    cp -r /mnt/cdrom/*.* /mnt/hdX1/
    mount /dev/hdX2 /mnt/hdX2
    mkdir /mnt/hdX2/playlists
    mkdir /mnt/hdX2/cddb
    mkdir /mnt/hdX2/music

It should be it.
Just make sure your partition /dev/hdX1 is set bootable in fdisk !
Reboot into PyCar and let it roll ! Let me know if that does not work for you...


Last edited by jbors on Wed Sep 28, 2005 7:17 am; edited 1 time in total
Back to top
View user's profile Send private message
tonnymande
Newbie


Joined: 28 Sep 2005
Posts: 16

PostPosted: Wed Sep 28, 2005 2:41 am    Post subject: Reply with quote

I'd like to mention that it works only on FAT 16 Partitions.
Back to top
View user's profile Send private message
jbors
Site Admin


Joined: 12 Nov 2004
Posts: 1675

PostPosted: Wed Sep 28, 2005 7:16 am    Post subject: Reply with quote

Good you noticed that. Yes, it is a syslinux limitation.
Back to top
View user's profile Send private message
barb3tta
Newbie


Joined: 02 Feb 2005
Posts: 30

PostPosted: Sun Oct 16, 2005 8:41 am    Post subject: Reply with quote

Hi!
I have some problems.
I've got a 512MB usb stick.
I can't see the second partition in winxp...how can fix it?
Can I use sda1 for data and sda2 for pycar? Or even use only one partition?
What should I change in scripts?
thanks for the help!!!

bye
Back to top
View user's profile Send private message Visit poster's website
jbors
Site Admin


Joined: 12 Nov 2004
Posts: 1675

PostPosted: Sun Oct 16, 2005 12:23 pm    Post subject: Reply with quote

The script resides in initrd file under
/etc/init.d/rc.startup
Basically it works very simple.
First it identifies all drives in a system, then identifies the drive it was ran and then mounts the second partition from that drive as /mnt/fixed.
Back to top
View user's profile Send private message
Foden



Joined: 15 Oct 2005
Posts: 2

PostPosted: Sun Oct 16, 2005 3:15 pm    Post subject: Reply with quote

jbors wrote:
The script resides in initrd file under
/etc/init.d/rc.startup
Basically it works very simple.
First it identifies all drives in a system, then identifies the drive it was ran and then mounts the second partition from that drive as /mnt/fixed.


so, it should use /mnt/fixed for music etc? that is /mnt/fixed/music is for music files and /mnt/fixed/video is for video?

I tried to hack rc.autostart, so it always will mount /dev/hdc7 as /mnt/fixed (instead of /dev/hdc3 which it would do normaly). I did this in mount_fixed (if my memory serves me right)

So far, no music files have shown up on this drive.. (even though that I have 3Gb music on storage there)

What partition types does the kernel support? What about usb cdroms, and harddisks?
Back to top
View user's profile Send private message
jbors
Site Admin


Joined: 12 Nov 2004
Posts: 1675

PostPosted: Sun Oct 16, 2005 3:23 pm    Post subject: Reply with quote

For list of locations go to the Settings->Audio Settings->Music Path or Settings->Video Settings->Movies Path. That's where you can see and change them.
Try to change /etc/inittab to go into console mode first to see which mounts are used and stuff.
Change:
::respawn:/etc/init.d/rc.pycar
#::respawn:/bin/sh
Into:
#::respawn:/etc/init.d/rc.pycar
::respawn:/bin/sh

Kernel supports all USB mass storage medias. CD-ROM, USB stick etc. It might not mount them properly though, since I have removed all hotplug features from init scripts. It is still in my todo list...
Back to top
View user's profile Send private message
NuclearAlien



Joined: 27 Oct 2005
Posts: 3

PostPosted: Thu Oct 27, 2005 12:25 am    Post subject: Reply with quote

Dam this must sound stupid. But how do you get to the console when booting up. I have it running off the fat16 partition.

Once I get into the console can I have all the settings to mount drive, etc.

Cheers for any advice
Back to top
View user's profile Send private message
jbors
Site Admin


Joined: 12 Nov 2004
Posts: 1675

PostPosted: Thu Oct 27, 2005 11:58 am    Post subject: Reply with quote

The above post mentions it.
The init file resides in initrd image. Just mount it as cramfs and change that file as shown above and it should be it...
Back to top
View user's profile Send private message
NuclearAlien



Joined: 27 Oct 2005
Posts: 3

PostPosted: Sat Oct 29, 2005 12:34 am    Post subject: Reply with quote

Thanks for that. Got that working and just setup the playlist directory on second partition. Does it only read the filenames in shortened filenames. Or is there a way to change it to full names
Back to top
View user's profile Send private message
jbors
Site Admin


Joined: 12 Nov 2004
Posts: 1675

PostPosted: Sat Oct 29, 2005 8:01 am    Post subject: Reply with quote

It should be able to read full names. If you define fat32 for the second partition Smile
Back to top
View user's profile Send private message
tonnymande
Newbie


Joined: 28 Sep 2005
Posts: 16

PostPosted: Sun Oct 30, 2005 4:09 am    Post subject: Reply with quote

Hello,

i've got another advice concerning the installation of PyCar on HDD or USB-Stick. In order to make changes you've done in the "Settings" menu
durable it is necessary to install the contents of the ramdisk and the PACKAGES directory to HDD or Stick, too.

This is the way I've gone:

I started my PC using Knoppix Live-CD and I made to partitions

/dev/hda1 - FAT Partition, size 20 MB
/dev/hda2 - ext2 Partition, size 10GB

Then I mounted the ISO-Image and the two partitions:

# mkdir /mnt/loop
# mount -oloop pycar-<VERSION>.iso /mnt/loop
# mount /dev/hda1
# mount /dev/hda2

the next step is to copy the whole content of the ISO-Image to the FAT-Partition

# cp -r /mnt/loop/* /mnt/hda1

In order to get a copy of the ramdisk to the HDD we first save it in /tmp
The ramdisk is zipped, so we have to extract it

# cp /mnt/loop/Initrd.img /tmp
# cd /tmp
# mv /Initrd.img Initrd.img.gz
# gunzip Initrd.img.gz

now we're able to mount the ramdisk and copy it's contents to HDD

# umount /mnt/loop
# mount -oloop /tmp/Initrd.img /mnt/loop
# cp -r /mnt/loop /mnt/hda2
# umount /mnt/loop

What's left are the three packages in the PACKAGES folder.

# umount /mnt/loop
# mount -oloop pycar-<VERSION>.iso /mnt/loop
# cd /mnt/hda2
# tar -xvzf /mnt/loop/PACKAGES/.tgz
# tar -xvzf /mnt/loop/PACKAGES/.tgz
# tar -xvzf /mnt/loop/PACKAGES/.tgz

Now we create the needed folders

# mkdir music
# mkdir cddb
# mkdir playlists

and finally

syslinux /dev/hda1

That's it, now you've got a complete installation of PyCar on HDD.
Back to top
View user's profile Send private message
jbors
Site Admin


Joined: 12 Nov 2004
Posts: 1675

PostPosted: Sun Oct 30, 2005 8:35 pm    Post subject: Reply with quote

Oh great, let me try it out on my box.
Back to top
View user's profile Send private message
tonnymande
Newbie


Joined: 28 Sep 2005
Posts: 16

PostPosted: Sun Oct 30, 2005 11:47 pm    Post subject: Reply with quote

Hello jbors,

yes, try it out. Now I'm trying to update to Epiam-Kernel 2.6.14 and add some Bluetooth parts. This would be a nice way to connect to a GSM phone.
Therefor I've set up a complete Gentoo System an emerged the epiam-Sources. The Kernel itself works great but unfortunately I've got some problems with DirectFB 0.9.22. I will post this later in the kernel thread.


Greets,
David
Back to top
View user's profile Send private message
NuclearAlien



Joined: 27 Oct 2005
Posts: 3

PostPosted: Wed Nov 02, 2005 11:26 pm    Post subject: Reply with quote

tonnymande Thanks for you guide, Was very good helped so much.

Hope this is my last couple of stupid questions. So here goes what I have done

I have 2 partitions : hda1 is fat16 with all the stuff. hda2 is fat32 will have all the music, movies, playlist etc.

I have managed to get the hda2 mounted putting it into fstab and mtab. And got all my settings set and was working fine. Then I disconnected the cdrom drive and for somereason it wont mount hda2 to /mnt/hda2 . It still comes up as /mnt/fixed (But its short filenames).

Also I am playing a song etc, and I push the power button it shutsdown. But when I startup it doesnt continue playing the same song. Not major. Last when playing movies its missing the colour red in the videos so it looks funny. Prob coz prog was written in ntsc or something.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    InDashPC.org Forum Index -> Software All times are GMT - 8 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group