Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Parted suddenly acting strange...
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
The_Great_Sephiroth
Veteran
Veteran


Joined: 03 Oct 2014
Posts: 1403
Location: Fayetteville, NC, USA

PostPosted: Tue Jan 21, 2020 11:06 pm    Post subject: Parted suddenly acting strange... Reply with quote

I've been using parted to deal with external drives (flash and hard) for ages. Recently I started getting strange crap after I do a blkdiscard on a flash stick or after I wipe the first 4MiB with dd on said flash stick.
Code:

parted -a optimal /dev/sdb
WARNING: You are not superuser.  Watch out for permissions.
GNU Parted 3.2
Using /dev/sdb
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) unit mib                                                         
(parted) mklabel msdos                                                   
Error: Partition(s) 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17,
18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37,
38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57,
58, 59, 60, 61, 62, 63, 64 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) mkpart primary 4 100%                                                   
Error: Partition(s) 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17,
18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37,
38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57,
58, 59, 60, 61, 62, 63, 64 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) p                                                               
Model: Lexar USB Flash Drive (scsi)
Disk /dev/sdb: 15276MiB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:

Number  Start    End       Size      Type     File system  Flags
 1      4.00MiB  15276MiB  15272MiB  primary               lba

(parted) q                                                               
Information: You may need to update /etc/fstab.

What's going on? It was blank, I created a label and a partition. Never seen this before, ever.
_________________
Ever picture systemd as what runs "The Borg"?
Back to top
View user's profile Send private message
fturco
l33t
l33t


Joined: 08 Dec 2010
Posts: 901
Location: Italy

PostPosted: Mon Jan 27, 2020 8:36 am    Post subject: Reply with quote

The_Great_Sephiroth wrote:
Code:
WARNING: You are not superuser.  Watch out for permissions.

Did you try running parted as root?
Back to top
View user's profile Send private message
The_Great_Sephiroth
Veteran
Veteran


Joined: 03 Oct 2014
Posts: 1403
Location: Fayetteville, NC, USA

PostPosted: Mon Feb 17, 2020 9:26 pm    Post subject: Reply with quote

Yes, I get the message either way. Also, I never needed to run it as root in the past to work on my USB disks or USB HDDs.
_________________
Ever picture systemd as what runs "The Borg"?
Back to top
View user's profile Send private message
etnull
Apprentice
Apprentice


Joined: 26 Mar 2019
Posts: 289

PostPosted: Tue Feb 18, 2020 12:32 am    Post subject: Reply with quote

I had this couple of times when I didn't sync before unmounting.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum