Installed to SD - Error 21 selected disk does not exist

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post please read this

Installed to SD - Error 21 selected disk does not exist

Postby Mintman on Thu Jul 16, 2009 8:31 am

Hi, I have an EEE PC 701 4GB model which I run off the Xandros OS plus also successfully off a live Mint 7 install on a 4GB SD card. I want to install Mint 7 permanently onto a 16Gb SD card. I have done this twice, but always get the same error, as above.

The process I follow is:

Put 16GB SD card in card reader slot. Put MInt 7 live SD in SD USB holder and boot off this. I then intall MInt 7 to the 16 GB card. During the install, I select manual for partition work and select a swap file - first time I didn't, but the result is the same - error 21 when I put the 16GB card in the card reader slot. I get the MINT 7 splash screen, of course, but then the same error message what version I then choose.

I should add that during the manual partition process, I am choosing \ as the mount point. There are other choices such as \boot \root and \home etc. Could it be this?

I have read that you don't need to install Grub, but I can't install without it, as there is no option to do so. I thought this was in the advanced tab during set-up, but it wasn't.

Clearly there is something wrong with what, I assume, Grub is looking for when it tries to boot up. Is it, for example, that Grub is looking for a card identity that is different to the actual card identity?

When I install Mint 7 to the 16Gb SD, I effectively have two USB SDs plugged in, so does the name/identity change when I remove the one which I installed from? The 16GB SD stays in the same slot.

Is there another way of installing onto the SD? Would doing it on a Windows machine and not the 701 avoid this problem, for example? Or, could I put two partitions on the 16GB and install from a live SD partition to another?

I am happy to use command line, but am no Linux scientist, so any help needs to be clearly explained.

Thank for your help.
Mint 7 full install off 16GB SD card in EEE PC 701 4GB. Mint 7 full install on Acer TravelMate 3200.
Mintman
Level 1
Level 1
 
Posts: 15
Joined: Sun Jun 14, 2009 6:53 am

Linux Mint is funded by ads and donations.
 

Re: Installed to SD - Error 21 selected disk does not exist

Postby DrHu on Thu Jul 16, 2009 9:29 am

Does the SD card reader work at all, if you boot with..
--if you tried mint (version 7 -Gloria) or Ubuntu (9.04 jaunty), latest versions

Acer aspire one SD card reader..
viewtopic.php?f=49&t=28836
https://bugs.launchpad.net/ubuntu/+sour ... bug/271019
Marc Deslauriers wrote on 2009-04-28: (permalink)
fyi, I get around the issue by passing pciehp.pciehp_force=1 to the kernel at boot.

--as a test, if the above links help..
edit the GRUB boot menu
  • esc (escape key) key
    --when you see the boot menus from grub; gets you into the grub mini editor on boot
  • e
    --edit the boot line kernel line, something like this
  • kernel /boot/vmlinuz-2.6.28-13-generic root=/dev/sda5 ro quiet splash
    change to
  • kernel /boot/vmlinuz-2.6.28-13-generic root=/dev/sda5 ro quiet splash pciehp.pciehp_force=1
Last edited by DrHu on Thu Jul 16, 2009 9:37 am, edited 2 times in total.
User avatar
DrHu
Level 16
Level 16
 
Posts: 6792
Joined: Wed Jun 17, 2009 8:20 pm

Re: Installed to SD - Error 21 selected disk does not exist

Postby Mintman on Thu Jul 16, 2009 9:34 am

Thanks. I am successfully running Live Mint from the SD card. Yes, SD cards and USB devices are seen at boot, I ESC to get to the boot menu. My question is about running Live Mint 7 from an SD and trying to install Mint 7 proper on another SD card plugged into a USB port via card reader/USB adapter. When I then plug the SD card that I installed Mint on into the card reader slot on my EEE PC 701 (where the Live Mint SD was before), and I select the SD card reader from the boot menu, I get the error I described - error 21, that is.
Mint 7 full install off 16GB SD card in EEE PC 701 4GB. Mint 7 full install on Acer TravelMate 3200.
Mintman
Level 1
Level 1
 
Posts: 15
Joined: Sun Jun 14, 2009 6:53 am

Re: Installed to SD - Error 21 selected disk does not exist

Postby barrieluv on Thu Jul 16, 2009 9:51 am

Have you tried running live from the usb port and installing to the built in card reader?
I can't see that it should make any difference though.

The only other thing I can think of is that you didn't install GRUB to the SD card you are installing to.
[b]EeePC 701 Ubuntu 10.04 || HP Pavilion DV6 Linux Mint 17 Mate Edition
User avatar
barrieluv
Level 2
Level 2
 
Posts: 79
Joined: Fri Jun 19, 2009 12:20 pm
Location: West London

Re: Installed to SD - Error 21 selected disk does not exist

Postby Mintman on Thu Jul 16, 2009 9:52 am

Sorry. That means nothing to me. When I hit the ESC key, I get a list of two devices. There is no Grub menu or selection for this.

To repeat, I am using an EEE PC 701. At start, I press ESC and select my SD card reader. I cannot boot into Mint, so cannot get to any files to modify them from there. There is no command line available until I get into Mint, so I am confused by your suggestion. As I said, I need step-by-step help.

Thanks
Mint 7 full install off 16GB SD card in EEE PC 701 4GB. Mint 7 full install on Acer TravelMate 3200.
Mintman
Level 1
Level 1
 
Posts: 15
Joined: Sun Jun 14, 2009 6:53 am

Re: Installed to SD - Error 21 selected disk does not exist

Postby Mintman on Thu Jul 16, 2009 9:53 am

Thanks, Barrieluv. Yes, I have tried, but the system will not unmount the USB card reader: it sees it as CDROM, in fact.

I installed everything onto the SD card, assume that that includes Grub. I certainly have Grub folders/files on the SD card after launch. I can navigate it if I boot up using another OS - either in-built or the original live SD install.
Mint 7 full install off 16GB SD card in EEE PC 701 4GB. Mint 7 full install on Acer TravelMate 3200.
Mintman
Level 1
Level 1
 
Posts: 15
Joined: Sun Jun 14, 2009 6:53 am

Re: Installed to SD - Error 21 selected disk does not exist

Postby DrHu on Thu Jul 16, 2009 12:07 pm

Mintman wrote:To repeat, I am using an EEE PC 701. At start, I press ESC and select my SD card reader. I cannot boot into Mint, so cannot get to any files to modify them from there

So..
This is what I meant by ESC, grub editing..
http://grumpymole.blogspot.com/2007/05/ ... eters.html
http://ubuntuforums.org/showthread.php?t=285638
error 21
post # 3
User avatar
DrHu
Level 16
Level 16
 
Posts: 6792
Joined: Wed Jun 17, 2009 8:20 pm

Re: Installed to SD - Error 21 selected disk does not exist

Postby barrieluv on Fri Jul 17, 2009 3:02 am

Well, last night I attempted to install to an SDHC card (generic Class 2 4GB) in the internal card reader from an SDHC card (Sandisk Class 6 4GB) in a Sandisk USB adapter. I went for the easy 'Use the entire disk' partition method and, at the last screen, hit the advanced button to make sure that the bootloader would also go onto the SDHC card.
Everything went as I expected and I now have a 4GB Class 2 SDHC Card with Mint installed on it.

I didn't have the issue of the drive showing up as a CD drive (do you get the CD icono n the desktop?) and my partitioning was different. That's it.

If you want separate root and home partitions, you could try partitioning the card as 5Gb for / , 10.5GB for /home and 0.5GB as swap.
Maybe try running Mint live from a regular USB drive instead of using a card reader and then installing to the SD drive.
[b]EeePC 701 Ubuntu 10.04 || HP Pavilion DV6 Linux Mint 17 Mate Edition
User avatar
barrieluv
Level 2
Level 2
 
Posts: 79
Joined: Fri Jun 19, 2009 12:20 pm
Location: West London

Re: Installed to SD - Error 21 selected disk does not exist

Postby Mintman on Fri Jul 17, 2009 4:02 am

Thanks, DrHu. So could I put the subject SD card into a USB reader, plug it into any Linux machine and do as the post suggests? So, my Linux laptop?

Alternatively, boot from the Mint 7 live of SD on my EEE PC, plug the subject SD card into the USB card reader and again run the command?

I'll get round to it over the weekend.

Thanks for your help. Much appreciated.

In answer to BarrieLuv, no my SD card does not show up in any way as a CD-ROM drive, it's just that on the EEE PC, if you plug anything into a USB port, it seems to think it is a CD, as far as the system is concerned, even though at boot menu it i identified as an SD card. It's when I try to install and am asked to unmount the CD that I come across it. I am actually trying to unmount the SD card in the USB card reader, but it thinks it's a CD. Thanks for your help, too.
Mint 7 full install off 16GB SD card in EEE PC 701 4GB. Mint 7 full install on Acer TravelMate 3200.
Mintman
Level 1
Level 1
 
Posts: 15
Joined: Sun Jun 14, 2009 6:53 am

Re: Installed to SD - Error 21 selected disk does not exist

Postby Mintman on Fri Jul 17, 2009 8:40 am

Okay. So I booted up the EEE PC from stock Xandros, with the 16GB SD with full Mint 7 install on it in the card reader slot. I got to terminal while in Xandros and typed
sudo su
fdisk -l

I got the SDA and SDB devices list - SDB is my card reader with the 16Gb Mint full install on it.

I typed the command "grub-install /dev/sdb" and got this message "grep: /boot/grub/partition.map: No such file or directory [new line] /dev/sdb does not have any corresponding BIOS drive.

I did get the 'e' command to work, DrHu. Once the error message came up saying error 21 etc, I typed 'e' when the 'normal boot on /dev/sda1 entry was highlighted and got to this file:
Root (hd0/0)
kernel /boot/vmlinux-2.6.21.4-eeepc quiet rw vga 785 irqpoll root=/dev/sda1
intrd /boot/initramfs-eeepc.img
savedefault
boot

If I type 'e' when the Linux MInt 7 Gloria kernel 2.6.28-11-geneic is highlighted, I get
root (hd2,0)
kernel /boot/vmlinux-2.6.28-11-generic root=/dev/sdc1 ro quiet splash
initrd /boot/initrd.img-2.6.28-generic
quiet


What I don't understand is this. Is there a grub on both my in-built SSD and on my SD with the Mint 7 full install on it, or is there only one grub on my SSD? I don't want to edit anything until I have this clear in my head. I think there are two, by the looks of it, and it is the second I need to edit. But to what?

Thanks
Mint 7 full install off 16GB SD card in EEE PC 701 4GB. Mint 7 full install on Acer TravelMate 3200.
Mintman
Level 1
Level 1
 
Posts: 15
Joined: Sun Jun 14, 2009 6:53 am

Re: Installed to SD - Error 21 selected disk does not exist

Postby Mintman on Fri Jul 17, 2009 9:08 am

Solved.

I edited the entry against the Mint Linux line (as defined exactly below) so I now have

root (hd0,0)
kernel /boot/vmlinux-2.6.28-11-generic root=/dev/sdb1 ro quiet splash
initrd /boot/initrd.img-2.6.28-generic
quiet

It works a treat.

Thanks all for your help and guidance. I am learning a bit more all the time. :D
Mint 7 full install off 16GB SD card in EEE PC 701 4GB. Mint 7 full install on Acer TravelMate 3200.
Mintman
Level 1
Level 1
 
Posts: 15
Joined: Sun Jun 14, 2009 6:53 am

Re: Installed to SD - Error 21 selected disk does not exist

Postby Mintman on Fri Jul 17, 2009 3:00 pm

Okay. So the editing works, but the changes are not permanent. I can't seem to permanently save the changes. I edit it both, the enter 'b' to boot and it boots. But when I start the laptop up again, press ESC, select my SD card, I get error 21.

How do I make permanent changes? After editing, what command saves them?
Mint 7 full install off 16GB SD card in EEE PC 701 4GB. Mint 7 full install on Acer TravelMate 3200.
Mintman
Level 1
Level 1
 
Posts: 15
Joined: Sun Jun 14, 2009 6:53 am

Re: Installed to SD - Error 21 selected disk does not exist

Postby DrHu on Fri Jul 17, 2009 9:08 pm

To make changes permanent, edit the menu.1st file..

In the terminal
  • sudo gedit /boot/grub/menu.1st
    --in a terminal
  • gksudo gedit /boot/grub/menu.1st
    --on the desktop, via the gui..
--edit your changes and save the file
User avatar
DrHu
Level 16
Level 16
 
Posts: 6792
Joined: Wed Jun 17, 2009 8:20 pm

Re: Installed to SD - Error 21 selected disk does not exist

Postby Mintman on Mon Jul 20, 2009 12:59 pm

Done. Thanks. Works a treat. Recommended for the EEE PC 710 4GB.

Only fault at the moment is that if you turn off wireless networking using the assigned function key, when you turn it back on it can't see any wireless networks. You have to turn the notebook off, with wireless networking on, and when you start up again, it discovers them. Not sure why this should happen. I giess all I need is the terminal line to tell the machine to look for wireless networks, although I did try 'ifup -a' and got nothing. As always, any alternative commands are appreciated.

Thanks. :)
Mint 7 full install off 16GB SD card in EEE PC 701 4GB. Mint 7 full install on Acer TravelMate 3200.
Mintman
Level 1
Level 1
 
Posts: 15
Joined: Sun Jun 14, 2009 6:53 am

Linux Mint is funded by ads and donations.
 

Return to Installation & Boot

Who is online

Users browsing this forum: Google Adsense [Bot] and 12 guests