Difference between revisions of "Talk:RPi Easy SD Card Setup"
m (→Resizing the SD card: Page restructuring)
|Line 1:||Line 1:|
==Resizing the SD card==
==Resizing the SD card==
Revision as of 04:02, 3 May 2013
- 1 Page restructuring / update
- 2 Resizing the SD card
- 3 Copying the image to an SD Card on Windows if first option isn't successful
- 4 Question about deleting the swap partition
- 5 Incorrect MacOSX drive name
- 6 Incorrect eject command in MacOSX
- 7 Don't need Apple menu in in MacOSX Mountain Lion
- 8 RasPiWrite
- 9 Reference section blues
- 10 Copying the image to an SD Card in Linux (command line)
- 11 Incorrect argument to dd on osx
Page restructuring / update
I have decided to restructure the page, as I found it difficult to work out which tools to use; I want to make it easier for those unfamiliar with this type of activity. I hope that I have got things correct, but I cannot test all of the options. I'll do my best! SimonSmall (talk) 11:02, 3 May 2013 (UTC)
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.
At least under Mountain Lion, if you use the Disk Utility (recommended in the semi-graphical method for unmounting the partition), and verify the partition before unmounting, it will give you the BSD name (in my case /dev/disk1s1), saving a step.
Original URL of http://exaviorn.com/raspiwrite/ was throwing 500s, so changed to github link.
--Finnaldo (a noob) 20 Apr 2013: The raspiwrite script has basic errors that prevent it from working, many people have tried pushing fixes in the last nine months but there has been no activity. The wiki should either drop the link or at least warn about it, but I'm too noob to want to touch it ;)
Reference section blues
- The Mediawiki software was recently upgraded to 1.20.1. which seems to have affected some templates. Wmat now seems to have fixed it SimonSmall (talk) 10:13, 2 December 2012 (UTC)
Copying the image to an SD Card in Linux (command line)
--TheLancashireman 00:26 2013-03-14 CET Is step 11 necessary? The Pi filesystem shouldn't be mounted at this point. Even if it was, umount handles everything, so a sync shouldn't be needed.
Incorrect argument to dd on osx
dd will only except bs=1m not bs=1M on osx 10.7