Difference between revisions of "Talk:RPi Easy SD Card Setup"

From eLinux.org
Jump to: navigation, search
(Incorrect eject command in MacOSX: new section)
Line 27: Line 27:
  
 
Believe (on a macBook pro, running 10.6.8 with a built in SD card reader) it's /dev/diskN not /dev/rdiskN ? Also should we have a further firm warning about getting this command right..
 
Believe (on a macBook pro, running 10.6.8 with a built in SD card reader) it's /dev/diskN not /dev/rdiskN ? Also should we have a further firm warning about getting this command right..
 +
 +
== Incorrect eject command in MacOSX ==
 +
 +
I had to use "diskutil unmount /dev/disk1s1" instead of "diskutil eject /dev/disk1s1" as the latter removed /dev/rdisk1 from the machine.  I was using an external USB SD card reader/writer if that makes any difference.

Revision as of 16:04, 26 July 2012

Resizing the SD card

I can resize the partition, but not use it. Running the command

sudo resize2fs /dev/mmcblk0p2

gives me an error "Permission denied to resize the filesystem". Tried several things and I can't see how this can be done on an SD card that is being used to run the pi. Can someone help?

Copying the image to an SD Card on Windows if first option isn't successful

--Kerbik 23:55, 24 April 2012 (UTC) I hope that this will help someone :) (I didn't test this created SDcard on Pi, yet because I still doesn't have it in my hands :( )

--Radek 21:03, 18 May 2012 (UTC) Yes it works :)

Question about deleting the swap partition

Steps 4 and 6 under section "Copying an image to the SD Card in Linux (command line)" assume that the OS will automount the USB SDCard reader. This is not the case with the current release of Debian that's listed on the RPi downloads page. (debian6-19-04-2012) Using the df command with this release does not provide the user with the needed information. I do not (yet) know enough about Linux to provide easy, more reliable instructions. I was able to determine the correct device name by using "tail -f /var/log/messages" and watching for any mention of "sda" or similar while plugging/unplugging the USB SDCard reader. --GG Crew 20:33, 16 May 2012 (UTC)

The steps currently listed under Manually resizing the SD card on Raspberry Pi instruct the user to delete the swap partition (in order to expand the main partition), but never recreate a new swap partition. For a device as limited on RAM as the RPi, this does not seem like a good idea. Hopefully someone with more knowledge than me can update the directions, or explain why we don't need a swap partition. --GG Crew 07:21, 28 May 2012 (UTC)

Having swap space on SSD/Flash isn't a good idea except for testing purposes. Prolonged swapping reduces the MTBF of the unit dramatically. If you're going to go to the trouble of adjusting partitions, it isn't unreasonable to move any needed swap space to some other (safer, or sacrificial) device. Gus3 14:37, 28 May 2012 (UTC)

Incorrect MacOSX drive name

Believe (on a macBook pro, running 10.6.8 with a built in SD card reader) it's /dev/diskN not /dev/rdiskN ? Also should we have a further firm warning about getting this command right..

Incorrect eject command in MacOSX

I had to use "diskutil unmount /dev/disk1s1" instead of "diskutil eject /dev/disk1s1" as the latter removed /dev/rdisk1 from the machine. I was using an external USB SD card reader/writer if that makes any difference.