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.
Thanks for the responce but still getting the same error
Quote:
title=Windows Vista
rootnoverify (hd0,3)
makeactive
error 12 : invalid device requested
I am desperate now nothing seems to work.
This might be helpful:
I am also using a 160 gb SATA drive with a totaly different installtion of XP
I select form BIOS boot menu from which one to boot.
Now I'm confused. Are you telling me that your XP installation is located on a different HD?
Or do you have two installations of XP on the same computer?
Can you do a "fdisk -l" and post the result here?
I need to know how many physical harddrives are present, and how many partitions are on each HD?
And tell me how big the partition with XP on is (not the harddrive, but the partition)?
Damn! I totally overlooked the fact that you're trying to dualboot VISTA, not XP.
I'm not using VISTA my self, so I'm not really the best person to ask...
It looks as if the procedure is the same, unless you resized a VISTA partition when installing linux.
Just remember to use sd0,0 instead of hd0,0 when VISTA/XP is running on a SATA disc.
Hi, I have gone to that link, but no go.........
I am not able to understand whats the problem.
Things have been working for so many people, but I don't understand whats the problem with my installation.
Hey Thanks for responce, let me know if i can do anything else
1. What kind of partition is VISTA installed on?
Is it a volume, virtual-drive (as mentioned in the article I linked before) or a normal NTFS partition?
2. Also, do you have XP AND VISTA installed on the same computer?
3. If so, in what order did you install them?
Was it XP, VISTA and then Linux? This should help pinpoint what boot loader you're using (for XP/Vista).
4. Also post the result of "fdisk -l" and mark what partitions each OS is installed on.
5. Do you have any kind of RAID setup?
I could also mention that the NTFS modules are irrelevant for anything but reading NTFS partitions. So if you're trying to access the VISTA partition from Linux, you should know you'll only get read access (unless you formated the Vista partition during install, then I'm not sure if you can access it at all. Vista uses a new version of NTFS, so I'm not sure if linux supports that yet).
To get both read and write access to the XP version of NTFS, you should use ntfs-3g (google it).
Before actually accessing a NTFS partition, I suggest you disable the System-Restore service in XP though. Or you might get a scan-disc msg everytime you boot XP.
[root@localhost ~]# fdisk -l
Disk /dev/hdb: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hdb1 * 1 1661 13341951 83 Linux
/dev/hdb2 1662 1916 2048287+ 82 Linux swap
/dev/hdb3 1917 9729 62757922+ f W95 Ext'd (LBA)
/dev/hdb5 1917 4466 20482843+ 7 HPFS/NTFS(vista)
/dev/hdb6 4467 5741 10241406 b W95 FAT32
/dev/hdb7 5742 7016 10241406 7 HPFS/NTFS
/dev/hdb8 7017 8291 10241406 b W95 FAT32
/dev/hdb9 8292 9729 11550703+ 7 HPFS/NTFS
[root@localhost ~]#
-->/dev/hdb1 Linux (10 gb)
-->/dev/hdb2 Linux Swap (2 gb)
-->Vista is installed on /dev/hdb5 (20 gb normal NTFS partition)
--> XP is not installed on the same disk
I have 2 hard drive
1) 80 GB PATA with Linux and Vista
2) 160 GB SATA with XP only
XP does not know about Linux or Vista and Vice versa. During the installtion of vista and linux I disconnected the XP hard drive, so that if I get into some trouble I still have a running pc.
It just hit me that your trying to boot Vista off an extended partition!
Maybe Vista doesn't like booting from those?
If that's not the problem, then I'm not sure what might help you.
With a quick Google, I came up with a LOT of problems with the Vista bootloader and Linux, but most of the solutions have been covered here. The only difference from your setup seem to be that they all install Vista to a Primary Partition. So all I can suggest is to reinstall Vista to either a new HD, or at least a primary partition on your current hd.
This is not a simple solution, but it's all I can come up with.
Hopefully someone in here can confirm if Vista has a problem booting off an extended partition?
When you install Vista, it writes a disk serial number in the Master Boot Record (MBR). That's the first sector of the hard disk that contains the partition table. When you install anything else like GRUB or LILO to the MBR that will write over the disk serial number (with zeroes) and then Vista will not boot. You can repair the Vista MBR but then you won't be able to boot GRUB or LILO.
Microsoft made that change to the Vista bootloader at some point and not all of the earlier (beta / release candidate) versions care if you change the MBR. The officially released version of Vista does care about changes to the MBR. The Vista boot loader generates some kind of UUID (Universally Unique Identifier) based on the disk serial number and uses that to verify if it can access the boot volume. Windows XP doesn't check the disk serial number when it boots, and later will write some kind of disk serial number back in the MBR (probably saying that it detected a new disk volume).
There are a couple of ways to solve the problem. One way is to install GRUB or LILO to the Linux partition boot sector instead of the MBR. Then you have to make a copy of the Linux partition boot sector into a file using "dd". Copy the boot sector file to Vista, and then add a Vista boot manager entry using the "bcedit" command in Vista.
NOTE:
ID is a very long number (UUID) that you get after using the first command.
The file "bootsect.lnx" can have any name providing that it contains a copy of the Linux partition boot sector (that loads GRUB).
You should be able to use "/addfirst" instead of "/addlast" if you want Linux to appear in the boot menu before Vista.
If you're familiar with creating a bootsector file to add Linux into the Windows XP boot menu, you create the "bootsect.lnx" file for Vista in exactly the same way. Use a "dd" command similar to this in Linux.
Code:
dd if=/dev/hda2 of=bootsect.lnx bs=512 count=1
How you copy the "bootsect.lnx" file to the Vista NTFS root directory is up to you. You can use an MS-DOS floppy, a FAT32 partition, or a version of Linux with NTFS write support.
If you don't mind dumping and editing disk sectors you can also do this.
Install or repair Vista so that it boots.
Dump out the Vista MBR and note the disk serial number bytes at offset 0x1B8. The disk serial number is four bytes (0x1B8 through 0x1BB) stored in Little-Endian order.
Install GRUB or LILO to the MBR (I recommend GRUB).
Patch the MBR written by GRUB or LILO to have the correct disk serial number bytes.
NOTE: Neither GRUB nor LILO has any code or other needed information in those bytes.
The reason that I recommend using GRUB is so that you will only need to do this once. If you use LILO you will have to do this every time you change the LILO boot menu and run the "lilo" command.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.