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.
Hola, I've installed Hardy recently (wanted to dualboot with XP), and after a reboot, grub gave error 17. I've tried to edit devices.map, reinstalled grub (trough livecd, to hd0) without luck (error 17 remained). Then I tried supergrub - it could boot into windows, but it didn't found my ubuntu installation at all. When choosing Grub&Linux option from main menu, grub gave error 21 (disk not found).
I did not yet dare to use more advanced options of supergrub to find my ubuntu partition... (which is installed for sure, I can see the partition from livecd)
I can't understand what could go wrong, my partition list is simple as a stick:
Code:
sda
1. win system
2. ---
3. linux system
sdb
1 ---
sdc
1 ---
Anyone any ideas? Maybe supegrub could fix it with some advanced option, but I fear of breaking something.. Thanks.
Last edited by poisonborz; 04-26-2008 at 07:45 AM.
Error 17 : Cannot mount selected partition
This error is returned if the partition requested exists, but the
filesystem type cannot be recognized by GRUB.
The problem seems to be that grub doesn't recognize the filesystem type of the Ubuntu partition.
Please post the output of 'fdisk -l' , the contents of /etc/fstab, and the Ubuntu menu entry from /boot/grub/menu.lst.
EDIT: I should have given more complete instructions.
Boot Ubuntu from the installation cd. Mount the partition in which you installed Ubuntu in order to get the information from /etc/fstab and /boot/grub/menu.lst. Then run fdisk -l.
You should be able to establish an internet connection from the booted cd to post the information I've requested.
Last edited by bigrigdriver; 04-26-2008 at 08:42 AM.
At boot time when you edit the Grub menu.lst all changes are temp.
When you edit from the grub console keep a log of what you have done, when you find the right combo and boot into the system edit /boot/grub/menu.lst to make the changes permanent.
Don't know if it means something, but sometimes if I go into livecd grub shell, it says grub is installed on a different hd (hd0, or hd1) I did not remove/attached any drives...
Anyway, grub is surely installed on both now, but gives error 17 if I install it from livecd, and error 21 if from supergrub.
UPDATE: I guess bigrigdriver is right, the linux partition is simply not recognized by grub (even if it can be installed on it?) I looked at the partitions from supegrub, and the linux partition was displayed as unrecognized (can't read any data). What should I do? I've reinstalled ubuntu 2 times with the same results. From both livecd and WinXP I can see that it's a proper ext2 drive...
Last edited by poisonborz; 04-26-2008 at 09:17 AM.
I don't know if this will work or not, but here goes.
I've read of instances in which people were having boot problems. Their fstab and menu.lst files used UUID strings to name devices instead of /dev names. Editing fstab and menu.lst to replace UUID with /dev names fixed their problems.
So, I'd suggest commenting out the UUID line in /etc/fstab, and immediately beneath it, enter the same infomation, but using /dev/sda3 instead of the UUID string, like so:
Quote:
/dev/sda3 / ext2 relatime,errors=remount-ro 0 1
Then make a similar edit in /boot/grub/menu.lst. Comment out the existing kernel line, and make a new one:
By commenting out the existing lines, it's much easier to go back to the original config if necessary. Just delete lines you've added and uncomment the original line.
Hola, here is the fdisk result - I've removed the unnecessary disk info - the boot drive is the second one.
As you can see, first and second partitions swapped places again: grub is also reported to be installed on hd1... (?) Although I don't think this has to do anything with my problem (maybe it will once the linux partition is recognized, but maybe it's just because of the livecd), is rather strange.
As you can see, the main problem is, that as it seems, linux drive is not recognized (?) ('Linux' is the partition label - this is the same result that supergrub boot disk gives).
This is strange, since I can browse it.. What can I do now? Modifying menu.lst, or grub files on that drive seems to be of no use, since at boot, grub won't read anything off of it anyway.
Could the fact, that initially, when I partitioned the drive in windows, I've formatted the linux drive with paragon partitioner to ext2 anything to do with this? Ubuntu installer formatted the drive again later on
Code:
Device Boot Start End Blocks Id System
/dev/sda1 * 1 36482 293036152 7 HPFS/NTFS
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 284445 143360248+ 7 HPFS/NTFS
/dev/sdb2 284446 751747 235520208 7 HPFS/NTFS
/dev/sdb3 751748 775216 11828376 83 Linux
Device Boot Start End Blocks Id System
/dev/sdc1 2 24792 199133707+ f W95 Ext'd (LBA)
/dev/sdc5 2 24792 199133676 7 HPFS/NTFS
(just to recap: reinstall gives the same result, I can never boot into ubuntu)
Last edited by poisonborz; 04-26-2008 at 11:38 AM.
Okay, for anyone interested, I've finally found the solution, partly by mistake. In the bios, AHCPI mode (so in fact, SATA itself) was not turned on, this caused GRUB somehow not to see any Linux partitions. So, if you install to SATA drives, remember to check in the BIOS if they're set as SATA.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.