Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Installing Gentoo
  • Search

[SOLVED] Parted can't change partition table

Having problems with the Gentoo Handbook? If you're still working your way through it, or just need some info before you start your install, this is the place. All other questions go elsewhere.
Post Reply
Advanced search
6 posts • Page 1 of 1
Author
Message
jody
l33t
l33t
User avatar
Posts: 682
Joined: Tue Oct 16, 2007 12:50 pm
Location: Switzerland

[SOLVED] Parted can't change partition table

  • Quote

Post by jody » Fri Mar 20, 2020 5:30 pm

I want to install gentoo on a new HP pavilion laptop with preinstalled FreeDOS.
I boot the minimal install from a usb stick without problems.

But parted gives me error messages for every action which would change something:

Code: Select all

 livecd ~ # parted -a optimal /dev/sda
GNU Parted 3.2
Using /dev/sda
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) p                                                                
Model:   (scsi)
Disk /dev/sda: 3901MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags: 

Number  Start   End     Size    Type     File system  Flags
 2      98.3kB  6689kB  6590kB  primary               esp

(parted) rm 2                                                             
Error: Partition(s) 1 on /dev/sda have been written, but we have been unable to inform the kernel of the change, probably because
it/they are in use.  As a result, the old partition(s) will remain in use.  You should reboot now before making further changes.
Ignore/Cancel?                                                            
When i type 'Ignore' then quit parted and reboot, it seems that i can't boot from the usb stick anymore.

With fdisk it is similar: i can do all the commands but after leaving fdiisk with "w" i get this

Code: Select all

Command (m for help): w
The partition table has been altered.
Failed to add partition 1 to system: Device or resource busy
Failed to add partition 2 to system: Device or resource busy
Failed to add partition 3 to system: Device or resource busy

The kernel still uses the old partitions. The new table will be used at the next reboot. 
Syncing disks.
How can i 'force' a new partition table?

Thanks
Last edited by jody on Sun Mar 22, 2020 11:07 am, edited 1 time in total.
Top
Jaglover
Watchman
Watchman
User avatar
Posts: 8291
Joined: Sun May 29, 2005 1:57 am
Location: Saint Amant, Acadiana

  • Quote

Post by Jaglover » Fri Mar 20, 2020 6:07 pm

Disk /dev/sda: 3901MB

What is this, your USB stick? My guess is you are not working on correct block device.
My Gentoo installation notes.
Please learn how to denote units correctly!
Top
fturco
Veteran
Veteran
Posts: 1181
Joined: Wed Dec 08, 2010 8:38 pm

  • Quote

Post by fturco » Fri Mar 20, 2020 6:25 pm

@jody: what's the output of the lsblk command when you boot from the minimal usb stick?
Top
jody
l33t
l33t
User avatar
Posts: 682
Joined: Tue Oct 16, 2007 12:50 pm
Location: Switzerland

  • Quote

Post by jody » Fri Mar 20, 2020 7:00 pm

the output of lsblk:

Code: Select all

 livecd ~ # lsblk
NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
loop0         7:0    0 314.7M  1 loop /mnt/livecd
sda           8:0    1   3.6G  0 disk 
|-sda1        8:1    1   349M  0 part /mnt/cdrom
`-sda2        8:2    1   6.3M  0 part 
nvme0n1     259:0    0   477G  0 disk 
|-nvme0n1p1 259:1    0   512M  0 part 
|-nvme0n1p2 259:2    0   4.9G  0 part 
`-nvme0n1p3 259:3    0   510M  0 part 
So it seems that sda is the stick and 'nveme0n1' is the laptop's drives?
Can i then call parted for /dev/nvme0n1?
(why are these called 'nvme0n1' and not sdaXXX?)
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56077
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Fri Mar 20, 2020 7:09 pm

jody,

nvme0n1 is a solid state HDD connected directly to your PCIe bus.
The first device is /dev/nvme0n1, the second /dev/nvme0n2 ...
nvme0n1p1 is partition 1 on nvme0n1.

You can't boot your usb stick because you destroyed its partition table.

As you say, use parted on /dev/nvme0n1.

When you make your kernel, be sure to include nvme support.
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
jody
l33t
l33t
User avatar
Posts: 682
Joined: Tue Oct 16, 2007 12:50 pm
Location: Switzerland

  • Quote

Post by jody » Sun Mar 22, 2020 11:07 am

Partitioning nvme0n1 worked!
Thanks for your help!
Top
Post Reply

6 posts • Page 1 of 1

Return to “Installing Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy