New issues with setup storage - disc too small

David Dreezer dave at socialstrata.com
Thu Mar 17 06:05:04 CET 2011


We have a winner, and the winner is parted :)

On Mar 16, 2011, at 7:51 PM, Michael Tautschnig wrote:

> 
> 
> - add some exit 1; to usr/sbin/setup-storage in the first lines to make it abort
>  right away to get setup-storage out of the game.
> - manually execute the following commands in the shell:
> 
> parted -s /dev/sdb mklabel msdos
> parted -s /dev/sdb mkpart primary "" 32256B 134249471B
> parted -s /dev/sdb mkpart extended "" 134249472B 60022480895B
> parted -s /dev/sdb mkpart logical "" 134249984B 2281724927B
> 


root at fw1dv:~# parted -s /dev/sdb mklabel msdos
root at fw1dv:~# parted -s /dev/sdb mkpart primary "" 32256B 13424947
Error: The location 13424947 is outside of the device /dev/sdb.
root at fw1dv:~# parted -s /dev/sdb mkpart primary "" 32256B 134249471B
Warning: The resulting partition is not properly aligned for best performance.
root at fw1dv:~# parted -s /dev/sdb mkpart extended "" 134249472B 60022480895B
Warning: The resulting partition is not properly aligned for best performance.
root at fw1dv:~# parted -s /dev/sdb mkpart logical "" 134249984B 2281724927B
Warning: The resulting partition is not properly aligned for best performance.
Error: Error informing the kernel about modifications to partition /dev/sdb5 -- Device or resource busy.  This means Linux won't know about any changes you made to /dev/sdb5 until you reboot -- so you shouldn't mount it or use it in any way before rebooting.
Error: Failed to add partition 5 (Device or resource busy)
root at fw1dv:~# parted -v
parted (GNU parted) 2.3
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by <http://git.debian.org/?p=parted/parted.git;a=blob_plain;f=AUTHORS>.

root at fw1dv:~# dpkg -l | grep parted
ii  libparted0debian1                   2.3-5                               The GNU Parted disk partitioning shared library
ii  parted                              2.3-5                               The GNU Parted disk partition resizing progra


More information about the linux-fai mailing list