Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
What is on the computer now? If it is NT or XP you could try following the instructions for using windows boot loader to chainload a copy of the mbr from the SD card. If grub can access the SD card this will allow you to boot by selecting an option from the Windows boot menu. ( Google for NT Grub Duel boot ).
If you have Linux on the machine you could try adding an entry in the Grub menu for the SD card. If Linux can see the SD card at all on the Laptop, consider yourself lucky. Many times a TI chip is used that isn't compatible with any kernel module.
I think it depends if grub can detect the sd device. The method I mentioned entails using the dd command to copy the first 244 bytes of the MBR to a file. The file is copied to the C:/ drive and the C:/BOOT.INI file is edited to add a menu entry to boot Linux. This will allow you to boot from a Linux partition without altering the MBR on the Windows machine. The first step may be to boot up using a Linux Live distro on CD or DVD, which uses the grub boot loader. Before booting you can enter the Grub shell and check use autocompletion in searching for the kernel and initrd file to load. Doing this you can test out loading the Linux system contained on the SD card and test that system before even editing BOOT.INI.
I don't remember the Line you need to add to the BOOT.INI file. You will need to google for that.
If you have your SD card inserted with Linux on it, and the device is /dev/sdb, then you would use:
sudo dd if=/dev/sdb bs=244 count=1 of=Linux.lnx
This will create a file "Linux.lnx" that you need to save somewhere to copy it to the Windows C drive. If your Live CD has the fuse kernel module and ntfs-3g installed, then you can:
sudo /sbin/modprobe fuse
sudo mount -t ntfs-3g /dev/sda1 /mnt
sudo dd if=/dev/sdb bs=244 count=1 of=Linux.lnx
( this example assumes that /dev/sda1 is your windows C:/ partition. )
Next, edit the C:/BOOT.INI file. You will need to clear the system and hidden attributes to be able to edit it. After you are done, set the system and hidden attributes again.
Actually, if you install Linux on the hard drive you can use the same technique to boot into Linux. This method doesn't touch the current MBR you use to boot. Instead you install the Linux mbr to the Linux root partition.
Given the limited number of writes on an SD card, it isn't the best thing to use to run a distro on. Also, while reads are fast, writes are very slow.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.