Use SD card for root

Hi,

I am aware that I can actually install openSUSE to SD card, but I don’t think laptops I have (Lenovo T500, Dell E6400) support booting from SD card.

So I was wondering if it is possible to boot from the HDD, but put root into the sd card so I can install packages to SD card.

Best,
Joon

On 2012-12-02 03:26, joonro wrote:

> So I was wondering if it is possible to boot from the HDD, but put root
> into the sd card so I can install packages to SD card.

I think so, yes.


Cheers / Saludos,

Carlos E. R.
(from 12.1 x86_64 “Asparagus” at Telcontar)

You could do try this by just placing the Grub 2 boot loader into the MBR of your internal hard drive and the rest on the SD. I would think though you would want to also separate out the /boot folder and place it on the internal hard drive as well so you could boot something other than the SD card later. This will require a custom partition setup and a modification of the booting section and making sure not to put into jeopardy your personnel data while trying to make this work. So make a data backup before you do anything else.

Thank You,

Thanks a lot for the reply. Can I do this by choosing hdd for /boot, sd card for /, and hdd for /home when I install openSUSE?

-Joon

So, you must select a custom partition, not based on anything openSUSE comes up with. You need free space somewhere or you are downsizing existing partitions or you are deleting them. You can use an existing SWAP and /home partition if you want to. You should then create a /boot partition on the internal hard drive (/dev/sda) and it likely should be a primary partition (sda1, sda2, sda3 or sda4) of 2 to 4 GB’s in size. That means you add a partition, make it EXT4, a primary partition and mount it as /boot. You will want to think about where to place your /home folder and the SWAP partition. Next, for root, make a EXT4 partition on the SD drive, which must be installed before you boot the CD or DVD and assign it to root /. Create a EXT4 primary partition there and I would hope you got at least a 16 GB size SD Card. You normally need at least three partitions total between all drives, the Root /, SWAP and /home and you are adding in a forth for /boot. Before you select install In the booting section, you can select a custom boot location and make sure it just says /dev/sda with no partition number. Before you elect to continue the install, it should say in the boot section to install Grub into the MBR. You know you can go through the paces but just abort before you allow the install to continue and write down any new questions you have and don’t allow the install to continue. I have a write up on partitioning, but not to do what you ask, but still helpful none-the-less.

https://forums.opensuse.org/content/111-partitioning-hard-disk-during-install.html

Thank You,

What a detailed instructions! Thank you so much! I will try this and ask you again if I have any other questions.

-Joon

Of course you can make a seperate partition for /boot when you want. Linux does not care about the real hardware (revolving disk, static memory) beneath it. And Linux also does not care about where the partitions are (on different devices). So the mixing is up to you. In your case, a /boot aprtiition on a device the BIOS can boot from and GRUB in it’s MBR looks fine to me. You can tell the installer what you want (expert mode or such wording in it’s partition part).

On 2012-12-02 04:06, jdmcdaniel3 wrote:

> You could do try this by just placing the Grub 2 boot loader into the
> MBR of your internal hard drive and the rest on the SD.

Another method, assuming the OP has Windows in the HD and doesn’t want
to touch that HD, is to use the Windows native booter, configured with
BCDedit.


Cheers / Saludos,

Carlos E. R.
(from 12.1 x86_64 “Asparagus” at Telcontar)

I am not assuming any Windows, because he did not tell. When your assumption is correct, this would be a big ommision from the OP’s side ;(

I don’t have windows installed. :slight_smile:

I wouldn’t spread the system across SD and internal HDD, rather first make sure the laptops won’t boot from other devices.
If they can, install to the SD card. That way you can install the system supposed to run from SD on the SD, leaving the rest of the machine untouched and not needing the SD card for booting.

thanks for the confirmation and congratulations for not using windows.