Page 1 of 1 [ 6 posts ] 

Madbones
Veteran
Veteran

User avatar

Joined: 7 Mar 2010
Age: 27
Gender: Male
Posts: 777
Location: In the zone

01 Nov 2011, 4:43 pm

I have recently installed Windows and Linux onto my new VAIO.
To get Windows to show up on GRUB I went into terminal and typed sudo update-gub.
And it gave me this error:

Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.35-22-generic
Found initrd image: /boot/initrd.img-2.6.35-22-generic
Found memtest86+ image: /boot/memtest86+.bin
ls: cannot access /var/lib/os-prober/mount/boot
Boot: No such file or directory
done

Whats this about?



Cornflake
Administrator
Administrator

User avatar

Joined: 30 Oct 2010
Gender: Male
Posts: 65,665
Location: Over there

01 Nov 2011, 7:41 pm

On two of my systems (one multi-boots with WinXP, the other to another Linux installation) /var/lib/os-prober/ is empty.
On another system (actually a different drive on the same multi-boot machine) it contains the file 'labels'.
Yours sounds like you've tried to mount/had something mounted there at some point and grub-update is trying to use the remains of it (it's done via /etc/grub.d/30_os-prober).

First check that you don't actually have something mounted there with: mount and check to see that directory isn't referenced. If it is, then that's a separate issue which needs to be resolved first.
Otherwise, as root, do: cp -a /var/lib/os-prober /var/lib/was-os-prober then delete what's in the original os-prober directory, then try grub-update again.


_________________
Giraffe: a ruminant with a view.


Madbones
Veteran
Veteran

User avatar

Joined: 7 Mar 2010
Age: 27
Gender: Male
Posts: 777
Location: In the zone

03 Nov 2011, 5:30 am

Hm...
Well for abosolutly no reason this morning GRUB has worked for me.
Wierd.
Anyway, now Windows is not showing up in it.
I have done update-grub but not scince i did this post.



Cornflake
Administrator
Administrator

User avatar

Joined: 30 Oct 2010
Gender: Male
Posts: 65,665
Location: Over there

03 Nov 2011, 3:37 pm

Can you post the output of: sudo fdisk -l
(that's "l" for list)


_________________
Giraffe: a ruminant with a view.


DC
Veteran
Veteran

User avatar

Joined: 15 Aug 2011
Age: 45
Gender: Male
Posts: 1,477

03 Nov 2011, 3:53 pm

Madbones
Veteran
Veteran

User avatar

Joined: 7 Mar 2010
Age: 27
Gender: Male
Posts: 777
Location: In the zone

09 Nov 2011, 12:23 pm

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0006cc37

Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 102400 7 HPFS/NTFS
Partition 1 does not end on cylinder boundary.
/dev/sda2 13 12158 97552384 7 HPFS/NTFS
/dev/sda3 12158 24316 97655808 83 Linux
/dev/sda4 24316 38914 117259264 83 Linux

Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x24ad677e

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 121601 976760001 b W95 FAT32

@cornflake
Done.