Results 1 to 7 of 7
i was updating my grub.cfg, by running sudo update-grub, i get a lot of errors:
error: cannot open `/dev/sdf' while attempting to get disk size
error: cannot open `/dev/sdf' while ...
- 01-21-2010 #1Just Joined!
- Join Date
- Jan 2010
- Location
- United States
- Posts
- 8
update-grub doesn't work
i was updating my grub.cfg, by running sudo update-grub, i get a lot of errors:
error: cannot open `/dev/sdf' while attempting to get disk size
error: cannot open `/dev/sdf' while attempting to get disk size
Generating grub.cfg ...
error: cannot open `/dev/sdf' while attempting to get disk size
error: cannot open `/dev/sdf' while attempting to get disk size
error: cannot open `/dev/sdf' while attempting to get disk size
error: cannot open `/dev/sdf' while attempting to get disk size
Found Debian background: 050817-N-3488C-028.tga
error: cannot open `/dev/sdf' while attempting to get disk size
error: cannot open `/dev/sdf' while attempting to get disk size
error: cannot open `/dev/sdf' while attempting to get disk size
error: cannot open `/dev/sdf' while attempting to get disk size
done
how do i make it so it can open /dev/sdf and ge it's disk size so my grub will update correctly? (how do i fix)
--thanks
please help me
- 01-21-2010 #2
Post the output of sudo fdisk -l command here.
It is amazing what you can accomplish if you do not care who gets the credit.
New Users: Read This First
- 01-22-2010 #3Just Joined!
- Join Date
- Jan 2010
- Location
- United States
- Posts
- 8
kelvin@kelvin-desktop:~$ sudo fdisk -l
[sudo] password for kelvin:
Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x1549f232
Device Boot Start End Blocks Id System
/dev/sda1 * 1 30679 246425684 7 HPFS/NTFS
Partition 1 does not end on cylinder boundary.
/dev/sda2 33943 37767 30718976 7 HPFS/NTFS
Partition 2 does not end on cylinder boundary.
/dev/sda3 37767 38913 9208080 7 HPFS/NTFS
Partition 3 does not end on cylinder boundary.
/dev/sda4 30680 33942 26210047+ 5 Extended
/dev/sda5 30680 33802 25085466 83 Linux
/dev/sda6 33803 33942 1124518+ 82 Linux swap / Solaris
Partition table entries are not in disk order
Disk /dev/sdb: 4007 MB, 4007657472 bytes
5 heads, 32 sectors/track, 48921 cylinders
Units = cylinders of 160 * 512 = 81920 bytes
Disk identifier: 0xe7ded343
Device Boot Start End Blocks Id System
/dev/sdb1 51 48922 3909696 c W95 FAT32 (LBA)
Disk /dev/sde: 1030 MB, 1030225920 bytes
4 heads, 3 sectors/track, 167680 cylinders
Units = cylinders of 12 * 512 = 6144 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sde1 21 167680 1005958+ 6 FAT16
kelvin@kelvin-desktop:~$
-----------------------------------
oh and i also have the ubuntu triple booted with vista, and windows 7!
---thanks
- 01-23-2010 #4
There isn't any sdf partition in output of fdisk -l command. Did you edit any file in /etc/grub folder?
It is amazing what you can accomplish if you do not care who gets the credit.
New Users: Read This First
- 01-23-2010 #5Just Joined!
- Join Date
- Jan 2010
- Location
- United States
- Posts
- 8
Yes i made a custom grub page (/etc/grub.d/40_custom) the custom_40 one. Here is what it says:
#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
menuentry "Load Ubuntu" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
set quiet=1
insmod ext2
set root=(hd0,5)
search --no-floppy --fs-uuid --set 362bdee1-e8ea-4ae0-9ed1-3457cc1e0d03
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=362bdee1-e8ea-4ae0-9ed1-3457cc1e0d03 ro quiet splash
initrd /boot/initrd.img-2.6.31-14-generic
}
menuentry "Load Windows" {
insmod ntfs
set root=(hd0,0)
search --no-floppy --fs-uuid --set e4909be4909bbb8c
chainloader +1
}
menuentry "Factory Condition Reset, Recovery, Emergencies only" {
insmod ntfs
set root=(hd0,3)
search --no-floppy --fs-uuid --set 2c88743c8874071c
chainloader +1
}
----------------------------------------------------------------
and i also ran the commands to change the default entry (some of them didn't work so i tried other kinds of comands):
GRUB_DEFAULT="Load Windows"
and
sudo grub-set-default 1
and
sudo grub-set-default "Load Windows"
---------------
oh and i also have a splash image of an airplane for grub.
sorry if i sound noobish i just started using ubuntu
----------thanks
- 01-23-2010 #6
What about 10_linux and 30_os-prober? Did you change anything in those files?
First of all, unset execution bit of 40_custom file and check if update-grub works.
In case it doesn't work, post the contents of /boot/grub/grub.conf and /etc/grub/30_os-prober files here.Code:cd /etc/grub sudo chmod -x 40_custom sudo update-grub
It is amazing what you can accomplish if you do not care who gets the credit.
New Users: Read This First
- 01-23-2010 #7Just Joined!
- Join Date
- Jan 2010
- Location
- United States
- Posts
- 8
i ran the codes that u gave me, but update-grub still says
error: cannot open `/dev/sdf' while attempting to get disk size
--------------
so here is my grub.d folder in zip format
----thanks


Reply With Quote