Difference between revisions of "Raspberry Pi Disk Partitions"

From CDOT Wiki
Jump to: navigation, search
 
(4 intermediate revisions by 3 users not shown)
Line 4: Line 4:
 
* sda2 - Fedora 13 experiments - ctyler
 
* sda2 - Fedora 13 experiments - ctyler
 
* sda3
 
* sda3
* sda5
+
* sda5 - Configuring X Windows - Tommy Cho Long Chor (toomy)
* sda6
+
* sda6 - Optimizing Boot - Jordan Huestis (jbhuestis)
 
* sda7
 
* sda7
* sda8
+
* sda8 - Testing Alternate Browsers - Dayu Guan (Dguan)
 
* sda9
 
* sda9
  
Line 15: Line 15:
 
* Claim a partition above
 
* Claim a partition above
 
* Make sure it's empty!
 
* Make sure it's empty!
* Format it with 'mkfs'
+
* Format it with <code>mkfs -t ext3 /dev/PARTITIONID</code>
* Mount it: /mnt/whatever
+
* Mount it: <code>mnt /dev/PARTITIONID /mnt/whatever</code>
* Copy it: cp -x -R -p -v  /  /mnt/whatever
+
* Copy it: <code>cp -x -R -p -v  /  /mnt/whatever</code>
 
** The -x prevents the copy from proceeding to other filesystems
 
** The -x prevents the copy from proceeding to other filesystems
* Copy /boot/cmdline.txt to /boot/cmdline.PARTITIONID
+
* Copy /boot/cmdline.txt to <code>/boot/cmdline.PARTITIONID</code>
* Edit /boot/cmdline.PARTITIONID to say: root=/dev/PARTITIONID
+
* Edit /boot/cmdline.PARTITIONID to say: <code>root=/dev/PARTITIONID</code>
* Whenever you want to boot from your partition: cp /boot/cmdline.PARTITIONID /boot/cmdline.txt
+
* Whenever you want to boot from your partition: <code>cp /boot/cmdline.PARTITIONID /boot/cmdline.txt</code>
* Change /etc/motd in your partition to tell people which partition they're on
+
* Change <code>/etc/motd</code> in your partition to tell people which partition they're on

Latest revision as of 18:00, 24 November 2011

Disk partitions in use on the Raspberry Pi:

  • sda1 - Fedora 13 with a lot of experiments ;-) - ctyler and paulw
  • sda2 - Fedora 13 experiments - ctyler
  • sda3
  • sda5 - Configuring X Windows - Tommy Cho Long Chor (toomy)
  • sda6 - Optimizing Boot - Jordan Huestis (jbhuestis)
  • sda7
  • sda8 - Testing Alternate Browsers - Dayu Guan (Dguan)
  • sda9

If you want a disk partition, claim it by filling in the list above.

Recommendation for copying partitions:

  • Claim a partition above
  • Make sure it's empty!
  • Format it with mkfs -t ext3 /dev/PARTITIONID
  • Mount it: mnt /dev/PARTITIONID /mnt/whatever
  • Copy it: cp -x -R -p -v / /mnt/whatever
    • The -x prevents the copy from proceeding to other filesystems
  • Copy /boot/cmdline.txt to /boot/cmdline.PARTITIONID
  • Edit /boot/cmdline.PARTITIONID to say: root=/dev/PARTITIONID
  • Whenever you want to boot from your partition: cp /boot/cmdline.PARTITIONID /boot/cmdline.txt
  • Change /etc/motd in your partition to tell people which partition they're on