LinuxQuestions.org
Visit Jeremy's Blog.
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 03-31-2023, 07:55 PM   #16
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

Base on what you have posted this should work
Code:
mount /dev/sda2 /mnt
mount /dev/sda1 /mnt/boot/efi    
mount -o bind /dev /mnt/dev
mount -o bind /proc /mnt/proc
mount -o bind /sys /mnt/sys
chroot /mnt
grub-install
grub-mkconfig -o /boot/grub/grub.cfg
exit
If you prefer elilo run eliloconfig instead of the grub commands.
reboot
 
Old 04-01-2023, 04:21 AM   #17
SAJM
Member
 
Registered: Nov 2012
Location: Essex UK
Distribution: Slackware 15
Posts: 269

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by colorpurple21859 View Post
Base on what you have posted this should work
Code:
mount /dev/sda2 /mnt
mount /dev/sda1 /mnt/boot/efi    
mount -o bind /dev /mnt/dev
mount -o bind /proc /mnt/proc
mount -o bind /sys /mnt/sys
chroot /mnt
grub-install
grub-mkconfig -o /boot/grub/grub.cfg
exit
That worked and returned no errors.

The efi boot directory now look like this:

Code:
bash-5.1# cd efi
bash-5.1# ls -l
total 433
drwxrwxrwx 1 root root   4096 Sep 15  2013 Bin
drwxrwxrwx 1 root root      0 Feb 19  2022 Recovery
drwxrwxrwx 1 root root   4096 Sep 15  2013 RicaTools
drwxrwxrwx 1 root root      0 Nov 20  2013 System\ Volume\ Information
drwxrwxrwx 1 root root      0 Sep 15  2013 TFR
-rwxrwxrwx 2 root root     88 Nov 21  2013 WinRePartition.ini
drwxrwxrwx 1 root root   4096 Sep 15  2013 boot
-rwxrwxrwx 1 root root 427680 Aug 22  2013 bootmgr
bash-5.1# cd boot
bash-5.1# ls
bcd  boot.sdi  bootsect.exe  en-us  etfsboot.com  fonts  memtest.exe  resources
bash-5.1#
but still no ../EFI directory.

Just out of interest why would there be windows files on a linux system. I've never seen such a thing?
 
Old 04-01-2023, 04:38 AM   #18
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,680
Blog Entries: 19

Rep: Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492
Quote:
Originally Posted by SAJM View Post
Just out of interest why would there be windows files on a linux system. I've never seen such a thing?
The EFI System Partition belongs to the computer rather than to any particular OS. Windows keeps all its boot files there and, if you want to boot Linux in UEFI mode, the Linux boot files must be copied there too. The vfat filesystem on this disc is basically the Windows95 filesystem.
 
Old 04-01-2023, 05:30 AM   #19
SAJM
Member
 
Registered: Nov 2012
Location: Essex UK
Distribution: Slackware 15
Posts: 269

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by SAJM View Post
That worked and returned no errors.

The efi boot directory now look like this:

Code:
bash-5.1# cd efi
bash-5.1# ls -l
total 433
drwxrwxrwx 1 root root   4096 Sep 15  2013 Bin
drwxrwxrwx 1 root root      0 Feb 19  2022 Recovery
drwxrwxrwx 1 root root   4096 Sep 15  2013 RicaTools
drwxrwxrwx 1 root root      0 Nov 20  2013 System\ Volume\ Information
drwxrwxrwx 1 root root      0 Sep 15  2013 TFR
-rwxrwxrwx 2 root root     88 Nov 21  2013 WinRePartition.ini
drwxrwxrwx 1 root root   4096 Sep 15  2013 boot
-rwxrwxrwx 1 root root 427680 Aug 22  2013 bootmgr
bash-5.1# cd boot
bash-5.1# ls
bcd  boot.sdi  bootsect.exe  en-us  etfsboot.com  fonts  memtest.exe  resources
bash-5.1#
but still no ../EFI directory.

Just out of interest why would there be windows files on a linux system. I've never seen such a thing?
I rebooted the laptop and everything I carried out earlier disappeared. No sda mount points and /boot/efi is now empty.

What did I miss that the changes were not written to the disk?
 
Old 04-01-2023, 08:17 AM   #20
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
Is this a duel boot with windows where there are two drives? Boot the slackware dvd, what is the output of
Code:
parted -l

Last edited by colorpurple21859; 04-01-2023 at 08:19 AM.
 
Old 04-01-2023, 08:22 AM   #21
SAJM
Member
 
Registered: Nov 2012
Location: Essex UK
Distribution: Slackware 15
Posts: 269

Original Poster
Rep: Reputation: Disabled
It is not dual boot.
 
Old 04-01-2023, 09:05 AM   #22
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
chroot back into slackware and along with "parted -l" what is output of efibootmgr ?

Last edited by colorpurple21859; 04-01-2023 at 09:11 AM.
 
Old 04-01-2023, 10:20 AM   #23
SAJM
Member
 
Registered: Nov 2012
Location: Essex UK
Distribution: Slackware 15
Posts: 269

Original Poster
Rep: Reputation: Disabled
I was getting into a mess so I reloaded the install.
This time I did not reboot at the end of the install but went back to the prompt and loaded grub from there

grub-install returned an error:

/boot/efi doesn't look like an EFI partition.

or words to that effect.

I seem to recall seeing this error previously as well.

I know I set up the drive as ef00
 
Old 04-01-2023, 10:23 AM   #24
SAJM
Member
 
Registered: Nov 2012
Location: Essex UK
Distribution: Slackware 15
Posts: 269

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by colorpurple21859 View Post
chroot back into slackware and along with "parted -l" what is output of efibootmgr ?
Code:
bash-5.1# efibootmgr
BootCurrent: 0000
Timeout: 0 seconds
BootOrder: 2002,2003,2001
Boot0000* EFI DVD/CDROM (TSSTcorp CDDVDW SU-208DB)      PciRoot(0x0)/Pci(0x1f,0x2)/Sata(2,0,0)/CDROM(1,0x344,0xb40)RC
Boot0001* EFI Network 0 for IPv6 (0C-54-A5-2A-C5-18)    PciRoot(0x0)/Pci(0x1c,0x2)/Pci(0x0,0x0)/MAC(0c54a52ac518,0)/IPv6([::]:<->[::]:,0,0)RC
Boot0002* EFI Network 0 for IPv4 (0C-54-A5-2A-C5-18)    PciRoot(0x0)/Pci(0x1c,0x2)/Pci(0x0,0x0)/MAC(0c54a52ac518,0)/IPv4(0.0.0.00.0.0.0,0,0)RC
Boot2001* EFI USB Device        RC
Boot2002* EFI DVD/CDROM RC
Boot2003* EFI Network   RC
bash-5.1#
 
Old 04-01-2023, 10:24 AM   #25
SAJM
Member
 
Registered: Nov 2012
Location: Essex UK
Distribution: Slackware 15
Posts: 269

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by colorpurple21859 View Post
Is this a duel boot with windows where there are two drives? Boot the slackware dvd, what is the output of
Code:
parted -l
Code:
bash-5.1# parted -l
Model: ATA TOSHIBA MQ01ABD1 (scsi)
Disk /dev/sda: 1000GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags: 

Number  Start   End     Size    File system     Name  Flags
 1      1049kB  538MB   537MB   ntfs                  boot, esp
 2      538MB   5907MB  5369MB  linux-swap(v1)        swap
 3      5907MB  1000GB  994GB   ext4


Warning: Unable to open /dev/sr0 read-write (Read-only file system).  /dev/sr0
has been opened read-only.
Model: TSSTcorp CDDVDW SU-208DB (scsi)                                    
Disk /dev/sr0: 3781MB
Sector size (logical/physical): 2048B/2048B
Partition Table: msdos
Disk Flags: 

Number  Start   End     Size    Type     File system  Flags
 2      6849kB  12.7MB  5898kB  primary               esp


bash-5.1#
 
Old 04-01-2023, 10:52 AM   #26
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
your partition layout is different from what you posted earlier and the efi partition is now ntfs not vfat.
This is based on your last post.
Code:
mount /dev/sda3 /mnt
mount -o bind /dev /mnt/dev
mount -o bind /proc /mnt/proc
mount -o bind /sys /mnt/sys
chroot /mnt
mkfs.vfat /dev/sda1
mount /dev/sda1 /boot/efi
grub-install
grub-mkconfig -o /boot/grub/grub.cfg
exit
 
Old 04-01-2023, 11:12 AM   #27
SAJM
Member
 
Registered: Nov 2012
Location: Essex UK
Distribution: Slackware 15
Posts: 269

Original Poster
Rep: Reputation: Disabled
I was getting in a mess so I reloaded everything
ntfs is a problem isn't it?
 
Old 04-01-2023, 11:13 AM   #28
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,680
Blog Entries: 19

Rep: Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492
Quote:
Originally Posted by SAJM View Post
I was getting in a mess so I reloaded everything
ntfs is a problem isn't it?
Yes, it is. An EFI system partition has to have a vfat filesystem on it. UEFI chips can't read any other kind of filesystem.
 
Old 04-01-2023, 04:54 PM   #29
SAJM
Member
 
Registered: Nov 2012
Location: Essex UK
Distribution: Slackware 15
Posts: 269

Original Poster
Rep: Reputation: Disabled
Well something has gone very wrong.
Somehow I changed the file system to ntfs.
There is nothing I can do to change it.
If I change it with cfdisk or gdisk it appears to have changed but reverts back to ntfs time after time.

I fear I may have bricked the laptop!
 
Old 04-01-2023, 05:01 PM   #30
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
Quote:
If I change it with cfdisk or gdisk it appears to have changed but reverts back to ntfs time after time.
Unlike gparted, cfdisk/gdisk doesn't format partitions only sets the partition type. After exiting cfdisk/gdisk partitions have to be formated. Format the efi partition with the mkfs.vfat command in post 26.

Last edited by colorpurple21859; 04-01-2023 at 05:04 PM.
 
  


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
install canon mg8620 on Toshiba c55 via usb cable running fedora 28 XFCE nix84 Fedora 3 10-20-2019 05:42 PM
Battery always stuck at 100% in a Toshiba C55-B5200 with Deepin 15.4 alucardx_ Linux Deepin 1 08-20-2017 02:17 PM
Centos 6.6 on Toshiba Satellite C55 screen only uses upper left corner laurat Linux - Laptop and Netbook 1 06-25-2015 10:22 PM
[SOLVED] Trying to disable HDD on Toshiba C55-A5126 nix84 Linux - Hardware 6 06-14-2015 07:20 PM

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

All times are GMT -5. The time now is 07:28 PM.

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