LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 12-27-2007, 11:51 PM   #1
tommytomthms5
Member
 
Registered: Sep 2007
Distribution: debian based
Posts: 308

Rep: Reputation: Disabled
Question boot from card reader???


i have a laptop with a built in SD card reader.... i would like to try booting linux from it but theres no option in bios

can it still be done?
 
Old 12-27-2007, 11:55 PM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
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.

Last edited by jschiwal; 12-27-2007 at 11:56 PM.
 
Old 12-28-2007, 12:01 AM   #3
tommytomthms5
Member
 
Registered: Sep 2007
Distribution: debian based
Posts: 308

Original Poster
Rep: Reputation: Disabled
the main os is xp.... i need it for nonfree software and the hard drive is too small to share

edit... it is easily functional in all the modern kernels ive tried so far

Last edited by tommytomthms5; 12-28-2007 at 12:04 AM.
 
Old 12-28-2007, 12:05 AM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
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.

Last edited by jschiwal; 12-28-2007 at 12:08 AM.
 
Old 12-28-2007, 12:08 AM   #5
tommytomthms5
Member
 
Registered: Sep 2007
Distribution: debian based
Posts: 308

Original Poster
Rep: Reputation: Disabled
step by step on that.... i have a dsl live cd to use for the dd command
 
Old 12-28-2007, 12:16 AM   #6
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
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.
 
Old 12-28-2007, 12:21 AM   #7
tommytomthms5
Member
 
Registered: Sep 2007
Distribution: debian based
Posts: 308

Original Poster
Rep: Reputation: Disabled
well know what screw it the cards barely a gigabit in size so ill just take the easy way out and use my hard drive....

reason being is that looks like a headache for non-promised results

Last edited by tommytomthms5; 12-28-2007 at 12:23 AM.
 
Old 12-28-2007, 12:46 AM   #8
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
"demi-boot" from pci flash card reader possible? stairwayoflight Linux - Hardware 1 07-09-2007 04:38 AM
Smart card reader (PCI) with open pgp card cracidy Linux - Hardware 0 10-24-2005 02:34 AM
HP Photosmart 7550 w/ Flash Card Reader on Suse 9.3. Card Reader and Print Sharing Desert Linux - Hardware 0 07-25-2005 08:25 PM
internal 6-in-1 card reader boot problem kevinatkins Ubuntu 0 04-26-2005 04:25 PM
USB multi-card reader; only one card can be mounted in Slack 10. KidsWriter71 Linux - Hardware 6 09-11-2004 07:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration