LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-03-2016, 09:07 PM   #16
BW-userx
Senior Member
 
Registered: Sep 2013
Location: MID-SOUTH USA
Distribution: Void Linux / Slackware 14.2
Posts: 2,091

Rep: Reputation: Disabled

that is why I use Gparted
 
Old 02-03-2016, 11:30 PM   #17
MrTux
Member
 
Registered: Dec 2015
Posts: 131

Rep: Reputation: Disabled
you may need to run partprobe -s for the partition table to update.
 
Old 02-04-2016, 09:59 PM   #18
MrTux
Member
 
Registered: Dec 2015
Posts: 131

Rep: Reputation: Disabled
-1 does not work, so it is a bunch of BS
 
Old 02-04-2016, 10:11 PM   #19
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,258

Rep: Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947
Quote:
Originally Posted by cellranking View Post
hello
I following steps by steps ran the command on my test BOX (my LIVE SERVER Disk /dev/sdb: 15998.8 GB, 15998753177600 bytes) following error on my output please help
thank you

root@localhost ~]# parted /dev/sdb
GNU Parted 3.1
Using /dev/sdb
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted)
-----------------------------------------------------------------------------
[root@localhost ~]# parted /dev/sdb
GNU Parted 3.1
Using /dev/sdb
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) mklabel gpt
Warning: Partition(s) on /dev/sdb are being used.
Ignore/Cancel? I
Warning: The existing disk label on /dev/sdb will be destroyed and all data on this disk will be lost. Do you want to continue?
Yes/No? yes
Error: Partition(s) 1, 2 on /dev/sdb 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? I
(parted) ^C
(parted)
---------------------------------------------------------------------------------------------------
(parted) mkpart primary ext4 2048s -1
Error: Partition(s) 1, 2 on /dev/sdb 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? I
(parted)
----------------------------------------------------------------------------------------------------------
mkfs.ext4 /dev/sdb1
mke2fs 1.42.9 (28-Dec-2013)
/dev/sdb1 is mounted; will not make a filesystem here!
[root@localhost ~]#




fdisk -l

Disk /dev/sda: 200.0 GB, 200049647616 bytes, 390721968 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0xa5fb4e2a

Device Boot Start End Blocks Id System
/dev/sda1 2048 390721967 195359960 83 Linux
WARNING: fdisk GPT support is currently new, and therefore in an experimental phase. Use at your own discretion.

Disk /dev/sdb: 320.1 GB, 320072933376 bytes, 625142448 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: gpt


# Start End Size Type Name

Disk /dev/mapper/centos-swap: 10.5 GB, 10485760000 bytes, 20480000 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mapper/centos-usr: 52.4 GB, 52428800000 bytes, 102400000 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mapper/centos-root: 52.4 GB, 52424605696 bytes, 102391808 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mapper/centos-var: 31.5 GB, 31457280000 bytes, 61440000 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mapper/centos-home: 157.3 GB, 157286400000 bytes, 307200000 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

[root@localhost ~]# pvs
PV VG Fmt Attr PSize PFree
/dev/sdb2 centos lvm2 a-- 283.20g 4.00m
[root@localhost ~]#
You have NUMEROUS errors telling you the partition is in use! You can't format a partition that is currently in use. You did not explain the situation to us correctly or completely. Back up, and tell us what is going on.
 
Old 02-04-2016, 10:15 PM   #20
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,258

Rep: Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947
Quote:
Originally Posted by MrTux View Post
-1 does not work, so it is a bunch of BS
Care to provide some supporting evidence instead of spreading FUD for no reason?
http://ultips.kuntzmann.info/2011/08...d-gpt-support/
https://sakafi.wordpress.com/2008/08...ger-that-2-tb/
 
Old 02-04-2016, 10:17 PM   #21
MrTux
Member
 
Registered: Dec 2015
Posts: 131

Rep: Reputation: Disabled
Quote:
Originally Posted by suicidaleggroll View Post
Care to provide some supporting evidence instead of spreading FUD for no reason?
http://ultips.kuntzmann.info/2011/08...d-gpt-support/
https://sakafi.wordpress.com/2008/08...ger-that-2-tb/
I can confirm it doesn't work with -s
 
Old 02-04-2016, 10:19 PM   #22
BW-userx
Senior Member
 
Registered: Sep 2013
Location: MID-SOUTH USA
Distribution: Void Linux / Slackware 14.2
Posts: 2,091

Rep: Reputation: Disabled
Quote:
Originally Posted by suicidaleggroll View Post
Care to provide some supporting evidence instead of spreading FUD for no reason?
http://ultips.kuntzmann.info/2011/08...d-gpt-support/
https://sakafi.wordpress.com/2008/08...ger-that-2-tb/
it may have been that first number that was wrong if it was a formating error... maybe..

I said MAYBE
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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




All times are GMT -5. The time now is 03:00 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration