LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 10-04-2023, 06:16 PM   #1
kleinde66
Member
 
Registered: Nov 2008
Location: Mid Atlantic
Distribution: debian cbpp11 mabox.22.09
Posts: 97
Blog Entries: 9

Rep: Reputation: 2
grub i386-pc bios gpt posable


good evening
i have an old laptop 2008 acer aspire 7720.
it ran crunchbang 11 fine but i had it on a ms dos partition.
i re partitioned the hdd gpt so i could install other iso's.
am i going to have to go back to ms dos partitioned ?
 
Old 10-04-2023, 06:44 PM   #2
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,660
Blog Entries: 33

Rep: Reputation: 283Reputation: 283Reputation: 283
Hi, I think it should be fine to use GPT. I think it is tidier aswell, easier to manage multiple partitions.

All the best.
 
Old 10-04-2023, 08:25 PM   #3
kleinde66
Member
 
Registered: Nov 2008
Location: Mid Atlantic
Distribution: debian cbpp11 mabox.22.09
Posts: 97

Original Poster
Blog Entries: 9

Rep: Reputation: 2
i went back in the install with the live iso .
the directory /boot/grub
does not contain i386-pc dir
but it is in the directory /usr/lib/grub/i386-pc
so i copied /usr/lib/grub/i386-pc to /boot/grub

Code:
sudo grub-install --target=i386-pc /dev/sda
sudo: grub-install: command not found
ls of the bin dir gives me

Code:
grub-editenv
grub-file
grub-fstest
grub-glue-efi
grub-kbdcomp
grub-menulst2cfg
grub-mkfont
grub-mkimage
grub-mklayout
grub-mknetdir
grub-mkpasswd-pbkdf2
grub-mkrelpath
grub-mkrescue
grub-mkstandalone
grub-mount
grub-ntldr-img
grub-render-label
grub-script-check
grub-syslinux2cfg
grub-install does not exist


so i'm lost at this point
 
Old 10-04-2023, 08:44 PM   #4
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,392

Rep: Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594
What distro are you currently using? It may be grub2-install or you may to actually need to be root to run grub-install. A side note, to install grub in legacy mode on a gpt drive a 1mb partition flagged bios-grub is needed.

Last edited by colorpurple21859; 10-04-2023 at 08:48 PM.
 
Old 10-04-2023, 09:03 PM   #5
chrisretusn
Senior Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware64-current
Posts: 2,986

Rep: Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556
Quote:
Originally Posted by kleinde66 View Post
good evening
i have an old laptop 2008 acer aspire 7720.
it ran crunchbang 11 fine but i had it on a ms dos partition.
i re partitioned the hdd gpt so i could install other iso's.
am i going to have to go back to ms dos partitioned ?
No, you will need to install a BIOS Boot Partition.

https://www.gnu.org/software/grub/ma...S-installation

This is my current setup note partition 4.
Code:
# gdisk -l /dev/sda
GPT fdisk (gdisk) version 1.0.9.1

Partition table scan:
  MBR: protective
  BSD: not present
  APM: not present
  GPT: present

Found valid GPT with protective MBR; using GPT.
Disk /dev/sda: 1953525168 sectors, 931.5 GiB
Model: WDC WD10EZEX-22M
Sector size (logical/physical): 512/4096 bytes
Disk identifier (GUID): E307DE8A-10A1-4215-9A8C-1F81F2F84C8A
Partition table holds up to 128 entries
Main partition table begins at sector 2 and ends at sector 33
First usable sector is 34, last usable sector is 1953525134
Partitions will be aligned on 2048-sector boundaries
Total free space is 3437 sectors (1.7 MiB)

Number  Start (sector)    End (sector)  Size       Code  Name
   1        17045504       211453951   92.7 GiB    8300  Linux filesystem
   2            2048        17043455   8.1 GiB     8200  
   3       211453952      1953523711   830.7 GiB   8300  Linux filesystem
   4        17043456        17045503   1024.0 KiB  EF02
If you are lucky you will have a free space to add one, cgdisk is useful in this case. My setup again with cgdisk.
Code:
# cgdisk /dev/sda

                                        cgdisk 1.0.9.1

                                     Disk Drive: /dev/sda
                                  Size: 1953525168, 931.5 GiB

Part. #     Size        Partition Type            Partition Name
----------------------------------------------------------------
>           1007.0 KiB  free space
   2        8.1 GiB     Linux swap
   4        1024.0 KiB  BIOS boot partition
   1        92.7 GiB    Linux filesystem          Linux filesystem
   3        830.7 GiB   Linux filesystem          Linux filesystem
            711.5 KiB   free space

    [ Align  ]  [ Backup ]  [  Help  ]  [  Load  ]  [  New   ]  [  Quit  ]  [ Verify ]
    [ Write  ]

                             Create new partition from free space

Last edited by chrisretusn; 10-04-2023 at 09:53 PM.
 
1 members found this post helpful.
Old 10-04-2023, 09:41 PM   #6
kleinde66
Member
 
Registered: Nov 2008
Location: Mid Atlantic
Distribution: debian cbpp11 mabox.22.09
Posts: 97

Original Poster
Blog Entries: 9

Rep: Reputation: 2
at this point i will reinstall it if i need too.
crunchbang++12 witch should be the debain 12 iso with open box configured.
i will work on it tomorrow and post back.
 
Old 10-07-2023, 10:09 AM   #7
kleinde66
Member
 
Registered: Nov 2008
Location: Mid Atlantic
Distribution: debian cbpp11 mabox.22.09
Posts: 97

Original Poster
Blog Entries: 9

Rep: Reputation: 2
good day

Click image for larger version

Name:	2023-10-07_10-46.png
Views:	17
Size:	116.7 KB
ID:	41803

as you can see , in the above pic.

i have install cbpp11 = no boot device -- insert boot disk and press any key

i have install cbpp12 = no boot device -- insert boot disk and press any key

i have install debian-live-12.1.0-amd64-lxde.iso = no boot device -- insert boot disk and press any key

the next thing is to go back to msdos partitioning ?

hopefully some one has an answer to this problem.

bios + gpt install

or maybe this bios just don't work with grub and gpt.
 
Old 10-07-2023, 11:02 AM   #8
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,392

Rep: Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594
You may need to set the bootflag on the protective mbr partition with this:
Code:
parted /dev/sda disk_set pmbr_boot on
 
Old 10-07-2023, 12:27 PM   #9
kleinde66
Member
 
Registered: Nov 2008
Location: Mid Atlantic
Distribution: debian cbpp11 mabox.22.09
Posts: 97

Original Poster
Blog Entries: 9

Rep: Reputation: 2
thank you colorpurple21859 it worked!
should it be left on or changed to off ?
 
Old 10-07-2023, 12:43 PM   #10
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,392

Rep: Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594
Leave it if it’s working.
 
Old 10-08-2023, 08:14 AM   #11
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,922

Rep: Reputation: 1565Reputation: 1565Reputation: 1565Reputation: 1565Reputation: 1565Reputation: 1565Reputation: 1565Reputation: 1565Reputation: 1565Reputation: 1565Reputation: 1565
You made the EF02 partition 1000 times larger than required.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] GPT table corrupted (again @%36372 GPT) BW-userx Linux - Hardware 5 08-29-2018 04:14 PM
Using a rack server as a gaming pc? Is this posable? LinuxSparkles General 8 09-02-2014 11:10 PM
Infinite Grub Loop: GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB... beeblequix MEPIS 2 11-02-2013 10:56 PM
Is it posable to make a deb, with a bash script to execute? Droa Linux - Software 2 09-10-2012 11:52 AM
[SOLVED] Slackware 13.37 - gdisk choices, MBR, GPT or Blank GPT CFet Slackware - Installation 3 04-01-2011 04:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 09:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration