Skip to content

Instantly share code, notes, and snippets.

@hernad
Last active December 30, 2015 18:49
Show Gist options
  • Save hernad/7869624 to your computer and use it in GitHub Desktop.
Save hernad/7869624 to your computer and use it in GitHub Desktop.
macbook pro multiple boot

Ubuntu 12.04, grub2

...
insmod part_gpt
set root='(hd0,gpt4)'
...
linux /boot/vmlinuz-3.2.0-29
initrd /boot/initrd.img-3.2.0-29-generic

...

ext4 UB1204 particija (/, /boot)

Command (? for help): p
Disk /dev/sda: 976773168 sectors, 465.8 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): F5DF7694-BA21-435F-BFAD-E00960AB28F3
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 976773134
Partitions will be aligned on 8-sector boundaries
Total free space is 408468461 sectors (194.8 GiB)

Number  Start (sector)    End (sector)  Size       Code  Name
   1              40          409639   200.0 MiB   EF00  EFI System Partition
   2          409640       195722143   93.1 GiB    AF00  SysOSX
   3       195984288       528120871   158.4 GiB   AF00  DataOSX
   4       528384000       568567807   19.2 GiB    8300  UB1204
  99       528120872       528383015   128.0 MiB   EF02  BIOS boot partition

sredi mbr

Command (? for help): x

Expert command (? for help): o

Disk size is 976773168 sectors (465.8 GiB)
MBR disk identifier: 0x00000000
MBR partitions:

Number  Boot  Start Sector   End Sector   Status      Code
   1                     1       409639   primary     0xEE
   2      *         409640    195722143   primary     0xAF
   3             195984288    528120871   primary     0xAF
   4             528384000    568567807   primary     0x83

Expert command (? for help): n

Expert command (? for help): o

Disk size is 976773168 sectors (465.8 GiB)
MBR disk identifier: 0x00000000
MBR partitions:

Number  Boot  Start Sector   End Sector   Status      Code
   1                     1    976773167   primary     0xEE

Nakon promjene na MBR-u ne mogu više bootati ubuntu sa sda4 !

root@bringout-MacBookPro:/boot/grub# lsmod
Module                  Size  Used by
lib80211_crypt_tkip    17390  0 
wl                   3074856  0 
lib80211               14381  2 lib80211_crypt_tkip,wl
kvm_intel             137721  0 
kvm                   415549  1 kvm_intel
parport_pc             32866  0 
ppdev                  17113  0 
rfcomm                 47604  12 
bnep                   18281  2 
snd_hda_codec_hdmi     32474  1 
joydev                 17693  0 
snd_hda_codec_cirrus    24002  1 
arc4                   12529  0 
mac80211              506816  0 
cfg80211              205544  2 wl,mac80211
applesmc               19554  0 
input_polldev          13896  1 applesmc
dm_multipath           23230  0 
snd_hda_intel          33773  5 
snd_hda_codec         127706  3 snd_hda_codec_hdmi,snd_hda_codec_cirrus,snd_hda_intel
snd_hwdep              13668  1 snd_hda_codec
snd_pcm                97188  3 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec
snd_seq_midi           13324  0 
snd_rawmidi            30748  1 snd_seq_midi
btusb                  18288  2 
bluetooth             180104  23 rfcomm,bnep,btusb
snd_seq_midi_event     14899  1 snd_seq_midi
uvcvideo               72627  0 
videodev               98259  1 uvcvideo
v4l2_compat_ioctl32    17128  1 videodev
snd_seq                61896  2 snd_seq_midi,snd_seq_midi_event
bcm5974                17399  0 
radeon                804372  3 
snd_timer              29990  2 snd_pcm,snd_seq
snd_seq_device         14540  3 snd_seq_midi,snd_rawmidi,snd_seq
ttm                    76949  1 radeon
snd                    78855  20 snd_hda_codec_hdmi,snd_hda_codec_cirrus,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
drm_kms_helper         46978  1 radeon
drm                   242038  5 radeon,ttm,drm_kms_helper
mei                    41616  0 
soundcore              15091  1 snd
snd_page_alloc         18529  2 snd_hda_intel,snd_pcm
lp                     17799  0 
i2c_algo_bit           13423  1 radeon
apple_gmux             12751  0 
parport                46562  3 parport_pc,ppdev,lp
video                  19596  1 apple_gmux
apple_bl               13673  0 
mac_hid                13253  0 
hid_apple              13375  0 
sdhci_pci              18826  0 
sdhci                  33205  1 sdhci_pci
tg3                   152032  0 
firewire_ohci          41000  0 
usbhid                 47199  0 
firewire_core          63558  1 firewire_ohci
hid                    99559  2 hid_apple,usbhid
crc_itu_t              12707  1 firewire_core
btrfs                 652957  0 
zlib_deflate           27139  1 btrfs
libcrc32c              12644  1 btrfs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment