PDA

View Full Version : [ubuntu] Ubuntu 8.10 - can U install it on a ide>sd card?



slewis1972
November 27th, 2008, 10:22 PM
Hi All

Is it possible to install ubuntu server 8.10 on a sd card thats in a idea>sd card adaptor.

If so how as my current installation fails on partioning a 8gb HC SD card.

It finds it ok and I set the partioning, yet just fails on the partioning. And triple checked the lock was not on.

Any ideas?

Scott

Krupski
November 28th, 2008, 01:28 AM
Hi All

Is it possible to install ubuntu server 8.10 on a sd card thats in a idea>sd card adaptor.

If so how as my current installation fails on partioning a 8gb HC SD card.

It finds it ok and I set the partioning, yet just fails on the partioning. And triple checked the lock was not on.

Any ideas?

Scott

Partitioning of an SD card (or a CF card) will fail if the card is already formatted. Specifically, it will not allow you to "create a new blank space" on the card.

The solution is to zero out the device (or at least the partition table).

In Windows, you can use WinImage (LINK (http://www.winimage.com/download.htm)) and just write a NULL file to the card.

Or (easier), boot up Linux from a live CD, insert your SD card into a card reader, find out what it's name is:



sudo ls -laF /dev/sd*


Then, use "dd" to fill the SD card with zeros.

ASSUMING that your card is "/dev/sdc", you would do this:




# WARNING - EXAMPLE ONLY - DO NOT EXECUTE
# UNTIL YOU HAVE READ AND UNDERSTOOD THIS
# ENTIRE POST! A MISTAKE WILL ERASE DATA
# THAT CANNOT BE RECOVERED!


sudo dd if=/dev/zero of=/dev/sdc bs=32K



Again, be 100% sure you know the drive name. In fact, do the "ls -laF /dev/sd*" command before you plug in the SD card, then do it again after you plug it in and see what NEW name pops up.

Once the "dd" command has filled the SD card with zeros, you will be able to go and install Linux onto it and the manual partitioner will give you no trouble.

Good luck!

-- Roger

slewis1972
November 28th, 2008, 06:53 PM
ok - tried that.

I did a basic setup

/boot
/
/swap

it failed to setup the swap. So I deleted it and did a basic install to see if I fails any further.

Is there a way to create the partition for swap once its up. I left 2gb spare just in case. I will be using webmin.

Thanks

Scott

slewis1972
November 28th, 2008, 09:01 PM
ok - looks like its failing even if I mix and match the partions, not just on the swap partition.

Any ideas if I pre-partion the sd card whether I can auto install it without going through the partition setup?

Any advice appreciated.

Scott

Philio
November 29th, 2008, 01:38 PM
Yes you can, if the partitions are already there you can simply select manual partitioning and just set the mount points you want for the existing partitions :)

Krupski
November 29th, 2008, 06:06 PM
ok - tried that.

I did a basic setup

/boot
/
/swap

it failed to setup the swap. So I deleted it and did a basic install to see if I fails any further.

Is there a way to create the partition for swap once its up. I left 2gb spare just in case. I will be using webmin.

Thanks

Scott

OK, here's what I do (with a 4GB card).

* Boot the install CD
* Select MANUAL partitioning
* Select the flash card and hit enter. It will ask you if you want to "create a new blank partition table". Do it.
* Select "create partition". Set the mount point to "/", set it to "bootable" and select it's type as "EXT3" and select it's size (2000 MB).
* Then, create another partition (same size). Select it's type as "SWAP".
* Allow the install to write the changes to the flash card.
* Finish the install as normal.

Should work.

-- Roger