LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 12-13-2020, 02:00 PM   #16
whois1230
Member
 
Registered: Sep 2018
Posts: 214

Original Poster
Rep: Reputation: Disabled

Quote:
Originally Posted by colorpurple21859 View Post
I guess I should have asked what guide did you follow to encrypt the drive?
I used the built-in encryption from the Fedora installer. If I remember correct, it was LUKS
 
Old 12-13-2020, 09:58 PM   #17
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,346

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
boot into linux on one of your systems
plug in the usb,
run the following, using /dev/sdb, the parted command is to make sure sdb is correct for the usb. Change accordingly if the usb is not /dev/sdb
Code:
user$ sudo parted -l
user$ sudo fdisk /dev/sdb
Command (m for help):o 
Command (m for help): w
user$
The o will create a new dos partition table for the usb, it will give you info about it being encrypted and ask if your sure. After entering w fdisk will write the new empty partition table to the usb and exit. After that you should be able to re-partition the usb.

Last edited by colorpurple21859; 12-13-2020 at 10:00 PM.
 
1 members found this post helpful.
Old 12-14-2020, 04:09 AM   #18
whois1230
Member
 
Registered: Sep 2018
Posts: 214

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by colorpurple21859 View Post
boot into linux on one of your systems
plug in the usb,
run the following, using /dev/sdb, the parted command is to make sure sdb is correct for the usb. Change accordingly if the usb is not /dev/sdb
Code:
user$ sudo parted -l
user$ sudo fdisk /dev/sdb
Command (m for help):o 
Command (m for help): w
user$
The o will create a new dos partition table for the usb, it will give you info about it being encrypted and ask if your sure. After entering w fdisk will write the new empty partition table to the usb and exit. After that you should be able to re-partition the usb.
Code:
user@Lenovo-ideapad-110-17IKB:~$ sudo parted -l
[sudo] password for user: 
Model: ATA WDC WD10JPCX-24U (scsi)
Disk /dev/sda: 1000GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags: 

Number  Start   End    Size    File system  Name                          Flags
 1      1049kB  274MB  273MB   fat32        EFI System Partition          boot, esp
 2      274MB   290MB  16,8MB               Microsoft reserved partition  msftres
 3      290MB   331GB  330GB   ntfs         Basic data partition          msftdata
 5      331GB   332GB  1074MB  ext4
 4      332GB   333GB  1074MB  ext4
10      333GB   650GB  317GB   btrfs
 9      650GB   957GB  307GB   ext4
 6      957GB   984GB  26,8GB  ntfs         Basic data partition          msftdata
 7      984GB   985GB  1049MB  ntfs         Basic data partition          hidden, diag
 8      985GB   999GB  14,2GB  ntfs         Basic data partition          hidden, diag


Error: /dev/sdb: unrecognised disk label
Model: Intenso Ultra Line (scsi)                                          
Disk /dev/sdb: 124GB
Sector size (logical/physical): 512B/512B
Partition Table: unknown
Disk Flags: 

user@Lenovo-ideapad-110-17IKB:~$ sudo fdisk /dev/sdb

Welcome to fdisk (util-linux 2.31.1).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.

fdisk: cannot open /dev/sdb: Input/output error
user@Lenovo-ideapad-110-17IKB:~$ Command (m for help):o
bash: syntax error near unexpected token `m'
user@Lenovo-ideapad-110-17IKB:~$ Command :o
Command: command not found
user@Lenovo-ideapad-110-17IKB:~$ Command (m for help): w
bash: syntax error near unexpected token `m'
 
Old 12-14-2020, 05:27 AM   #19
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,346

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
Code:
fdisk: cannot open /dev/sdb: Input/output error
fdisk shut back down after the error. You don't have to type "Command (m for help):"when fdisk is open. Did a check in a vm, fedora install by default, doesn't encrypt the whole drive. You have something else going on here.

Last edited by colorpurple21859; 12-14-2020 at 05:49 AM.
 
1 members found this post helpful.
Old 12-14-2020, 05:53 AM   #20
whois1230
Member
 
Registered: Sep 2018
Posts: 214

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by colorpurple21859 View Post
Code:
fdisk: cannot open /dev/sdb: Input/output error
fdisk shut back down after the error. You don't have to type "Command (m for help):"when fdisk is open. Did a check in a vm, fedora install by default, doesn't encrypt the whole drive. You have something else going on here.
Maybe I should run it as root?
 
Old 12-14-2020, 06:03 AM   #21
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,346

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
yes run as root.
 
1 members found this post helpful.
Old 12-14-2020, 01:21 PM   #22
whois1230
Member
 
Registered: Sep 2018
Posts: 214

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by colorpurple21859 View Post
yes run as root.
Code:
user@Lenovo-ideapad-110-17IKB:~$ su
Password: 
root@Lenovo-ideapad-110-17IKB:/home/user# sudo parted -l
Model: ATA WDC WD10JPCX-24U (scsi)
Disk /dev/sda: 1000GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags: 

Number  Start   End    Size    File system  Name                          Flags
 1      1049kB  274MB  273MB   fat32        EFI System Partition          boot, esp
 2      274MB   290MB  16,8MB               Microsoft reserved partition  msftres
 3      290MB   331GB  330GB   ntfs         Basic data partition          msftdata
 5      331GB   332GB  1074MB  ext4
 4      332GB   333GB  1074MB  ext4
10      333GB   650GB  317GB   btrfs
 9      650GB   957GB  307GB   ext4
 6      957GB   984GB  26,8GB  ntfs         Basic data partition          msftdata
 7      984GB   985GB  1049MB  ntfs         Basic data partition          hidden, diag
 8      985GB   999GB  14,2GB  ntfs         Basic data partition          hidden, diag


Error: /dev/sdb: unrecognised disk label
Model: Intenso Ultra Line (scsi)                                          
Disk /dev/sdb: 124GB
Sector size (logical/physical): 512B/512B
Partition Table: unknown
Disk Flags: 

root@Lenovo-ideapad-110-17IKB:/home/user# sudo fdisk /dev/sdb

Welcome to fdisk (util-linux 2.31.1).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.

fdisk: cannot open /dev/sdb: Input/output error
root@Lenovo-ideapad-110-17IKB:/home/user# exit
exit
user@Lenovo-ideapad-110-17IKB:~$
 
1 members found this post helpful.
Old 12-14-2020, 01:43 PM   #23
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by whois1230 View Post
Code:
root@Lenovo-ideapad-110-17IKB:/home/user# sudo parted -l
Not related to your problem, but when you're already root you don't need sudo (which defaults to the root user).
 
1 members found this post helpful.
Old 12-14-2020, 01:59 PM   #24
whois1230
Member
 
Registered: Sep 2018
Posts: 214

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ondoho View Post
Not related to your problem, but when you're already root you don't need sudo (which defaults to the root user).
Ah yes, I forgot
 
Old 12-14-2020, 02:49 PM   #25
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,978

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
Thoughts.

Partition Table: unknown

Error: /dev/sdb: unrecognised disk label

Makes me wonder why gparted doesn't see it on it's drop down menu at upper right of gui??

Commad dd may have already been used to wipe it or it's failed.
 
1 members found this post helpful.
Old 12-14-2020, 06:41 PM   #26
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,346

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
what happen if your run this command on it?
Code:
sudo dd if=/dev/null of=/dev/sdb conv=notrunc
again assuming it is /dev/sdb change accordingly if it isn't
 
1 members found this post helpful.
Old 12-18-2020, 05:29 AM   #27
whois1230
Member
 
Registered: Sep 2018
Posts: 214

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by colorpurple21859 View Post
what happen if your run this command on it?
Code:
sudo dd if=/dev/null of=/dev/sdb conv=notrunc
again assuming it is /dev/sdb change accordingly if it isn't
Code:
user@Lenovo-ideapad-110-17IKB:~$ sudo dd if=/dev/null of=/dev/sdb conv=notrunc
[sudo] password for user: 
0+0 records in
0+0 records out
0 bytes copied, 0,00020122 s, 0,0 kB/s
user@Lenovo-ideapad-110-17IKB:~$
 
Old 12-20-2020, 06:01 PM   #28
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,346

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
At least you not getting a read-only error. Lets see if you can clear out the mbr.
Run
Code:
 sudo parted -l
to make sure the usb is /still dev/sdb
Code:
sudo dd if=/dev/zero of=/dev/sdb bs=512 count=1.
again assuming it is still /dev/sdb change accordingly if it isn't. Shutdown, pull out usb. You should be able to create a new partition table on the usb.

Last edited by colorpurple21859; 12-20-2020 at 06:05 PM.
 
1 members found this post helpful.
Old 12-21-2020, 10:57 AM   #29
whois1230
Member
 
Registered: Sep 2018
Posts: 214

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by colorpurple21859 View Post
At least you not getting a read-only error. Lets see if you can clear out the mbr.
Run
Code:
 sudo parted -l
to make sure the usb is /still dev/sdb
Code:
sudo dd if=/dev/zero of=/dev/sdb bs=512 count=1.
again assuming it is still /dev/sdb change accordingly if it isn't. Shutdown, pull out usb. You should be able to create a new partition table on the usb.
Code:
user@Lenovo-ideapad-110-17IKB:~$  sudo parted -l
[sudo] password for user: 
Model: ATA WDC WD10JPCX-24U (scsi)
Disk /dev/sda: 1000GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags: 

Number  Start   End    Size    File system  Name                          Flags
 1      1049kB  274MB  273MB   fat32        EFI System Partition          boot, esp
 2      274MB   290MB  16,8MB               Microsoft reserved partition  msftres
 3      290MB   331GB  330GB   ntfs         Basic data partition          msftdata
 5      331GB   332GB  1074MB  ext4
 4      332GB   333GB  1074MB  ext4
10      333GB   650GB  317GB   btrfs
 9      650GB   957GB  307GB   ext4
 6      957GB   984GB  26,8GB  ntfs         Basic data partition          msftdata
 7      984GB   985GB  1049MB  ntfs         Basic data partition          hidden, diag
 8      985GB   999GB  14,2GB  ntfs         Basic data partition          hidden, diag


Error: /dev/sdb: unrecognised disk label
Model: Intenso Ultra Line (scsi)                                          
Disk /dev/sdb: 124GB
Sector size (logical/physical): 512B/512B
Partition Table: unknown
Disk Flags: 

user@Lenovo-ideapad-110-17IKB:~$ sudo dd if=/dev/zero of=/dev/sdb bs=512 count=1.
dd: invalid number: ‘1.’
user@Lenovo-ideapad-110-17IKB:~$ sudo dd if=/dev/zero of=/dev/sdb bs=512 count=1dd: error writing '/dev/sdb': Input/output error
1+0 records in
0+0 records out
0 bytes copied, 0,00124183 s, 0,0 kB/s
user@Lenovo-ideapad-110-17IKB:~$
I did what you said, but I still cannot format it

Last edited by whois1230; 12-21-2020 at 11:02 AM.
 
Old 12-21-2020, 11:37 AM   #30
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,346

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
Them typos, Suppose to be
Code:
sudo dd if=/dev/zero of=/dev/sdb bs=512 count=1

Last edited by colorpurple21859; 12-21-2020 at 11:38 AM.
 
1 members found this post helpful.
  


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
Trying to boot to Linux Mint USB. First Booted from USB and couldn't see HD. Now won't boot at all. dbanks77 Linux - Newbie 5 04-12-2018 12:56 PM
[SOLVED] Changed fstab, won't boot from HD, won't boot from USB swilsy Linux - Newbie 3 11-30-2012 02:35 PM
duel-boot using a usb external hard drive without usb boot option Cabtech Linux - Newbie 4 04-22-2012 05:15 PM
Drive won't boot. Used Clonezilla to restore Linux partitions from good drive Jimdsi Linux - Newbie 1 02-21-2012 09:35 PM
Boot from USB external drive, from laptop without USB boot support. darirod Linux - Newbie 2 12-19-2006 10:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:06 AM.

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