Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux? |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
09-06-2023, 09:27 AM
|
#1
|
Member
Registered: Jul 2019
Location: China
Distribution: UnionTech OS Desktop Home (64-bit)
Posts: 228
Rep:
|
Installation always gets stuck. What is wrong with the USB drive?
This topic involves three USB flash drives:
(1) A 64-GB SanDisk Ventoy device containing ISO files for installation.
(2) A 64-GB Xiaomi device.
(3) A 128-GB LanKxin device.
I failed to install SparkyLinux, Linux Mint, and UnionTech OS on LanKxin because the installation got stuck at some point in all cases.
I successfully installed SparkyLinux on Xiaomi by using the same method and settings.
I successfully installed Linux Mint and UnionTech OS on my SATA HDD, which is irrelevant to this topic.
Therefore, I believe a problem lies in LanKxin but don’t know what the problem is.
"FakeFlashTest" showed that the capacity was "117.1GiB" as shown below:
https://forums.linuxmint.com/download/file.php?id=89253
“CrystalDiskMark” showed that the read/write speeds were normal as shown below:
https://www.tenforums.com/attachment...speed-test.jpg
I can always access LanKxin without any problems. So, what is the problem with LanKxin? Can anyone help me pinpoint the problem? I asked the same question on Linux Mint Forums, but no one there has provided an answer.
|
|
|
09-06-2023, 09:59 AM
|
#2
|
Senior Member
Registered: Aug 2018
Location: Atlanta, GA - USA
Distribution: CentOS/RHEL, openSuSE/SLES, Ubuntu
Posts: 1,005
|
Quote:
Originally Posted by Matthew Wai
This topic involves three USB flash drives:
(1) A 64-GB SanDisk Ventoy device containing ISO files for installation.
(2) A 64-GB Xiaomi device.
(3) A 128-GB LanKxin device.
I failed to install SparkyLinux, Linux Mint, and UnionTech OS on LanKxin because the installation got stuck at some point in all cases.
I successfully installed SparkyLinux on Xiaomi by using the same method and settings.
I successfully installed Linux Mint and UnionTech OS on my SATA HDD, which is irrelevant to this topic.
Therefore, I believe a problem lies in LanKxin but don’t know what the problem is.
"FakeFlashTest" showed that the capacity was "117.1GiB" as shown below:
https://forums.linuxmint.com/download/file.php?id=89253
“CrystalDiskMark” showed that the read/write speeds were normal as shown below:
https://www.tenforums.com/attachment...speed-test.jpg
I can always access LanKxin without any problems. So, what is the problem with LanKxin? Can anyone help me pinpoint the problem? I asked the same question on Linux Mint Forums, but no one there has provided an answer.
|
Could it be possible the USB port is a problem? If you have ruled this out then:
Couple of things you can do...
On a machine that is already running Linux (any distribution will work) plugin the LanKxin and test with dd
Check dmesg output to get sdX of LanKxin after you insert it.
Open 2 terminals:
Run this will scroll new messages.
In second terminal run test dd
First write test - this will delete whatever is on the drive.
Code:
dd if=/dev/zero of=/dev/<whatever device LanKxin shows up with> oflag=direct bs=65536
This will run for a while until it runs out of space
Now do a read test:
Code:
dd if=/dev/<whatever device LanKxin shows up with> of=/dev/null bs=65536
Did you see any errors on dmesg?
|
|
|
09-07-2023, 03:23 AM
|
#3
|
Member
Registered: Jul 2019
Location: China
Distribution: UnionTech OS Desktop Home (64-bit)
Posts: 228
Original Poster
Rep:
|
Quote:
Originally Posted by dc.901
Did you see any errors on dmesg?
|
I inserted LanKxin, ran " dmesg -T -w", and got the following:
Code:
[Thu Sep 7 15:11:01 2023] sdb: sdb1 sdb2 sdb3
[Thu Sep 7 15:11:01 2023] sd 4:0:0:0: [sdb] Attached SCSI removable disk
[Thu Sep 7 15:11:01 2023] EXT4-fs (sdb2): mounted filesystem with ordered data mode. Opts: (null)
[Thu Sep 7 15:11:02 2023] EXT4-fs (sdb2): re-mounted. Opts: (null)
At this moment, the following test is in progress:
Code:
Matthew_Wai@My-PC:~$ sudo dd if=/dev/zero of=/dev/sdb oflag=direct bs=65536
[sudo] password for Matthew_Wai:
Verification successful
The device " /dev/zero" does not actually exist.
Is it intended to write zeros onto the whole LanKxin device?
What will happen if bad sectors are found?
Last edited by Matthew Wai; 09-07-2023 at 03:48 AM.
|
|
|
09-07-2023, 06:33 AM
|
#4
|
Member
Registered: Jul 2019
Location: China
Distribution: UnionTech OS Desktop Home (64-bit)
Posts: 228
Original Poster
Rep:
|
Quote:
Originally Posted by dc.901
First write test - this will delete whatever is on the drive.
|
I have just discovered that the test was already completed as shown below:
Code:
Matthew_Wai@My-PC:~$ sudo dd if=/dev/zero of=/dev/sdb oflag=direct bs=65536
[sudo] password for Matthew_Wai:
Verification successful
dd: error writing '/dev/sdb': No space left on device
1920001+0 records in
1920000+0 records out
125829120000 bytes (126 GB, 117 GiB) copied, 6510.16 s, 19.3 MB/s
Matthew_Wai@My-PC:~$
The following image is a screenshot of System Monitor:
https://lh3.googleusercontent.com/pw...-no?authuser=0
Last edited by Matthew Wai; 09-07-2023 at 06:34 AM.
|
|
|
09-07-2023, 08:12 AM
|
#5
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 23,450
|
this can be a power supply issue too, but you need to check it
|
|
|
09-07-2023, 08:27 AM
|
#6
|
Member
Registered: Jul 2019
Location: China
Distribution: UnionTech OS Desktop Home (64-bit)
Posts: 228
Original Poster
Rep:
|
Quote:
Originally Posted by pan64
this can be a power supply issue too, but you need to check it
|
I have successfully installed Linux and Windows many times over the years without a power supply issue. I am quite sure that the problem lies in the LanKxin USB device.
|
|
|
09-07-2023, 09:49 AM
|
#7
|
LQ Guru
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: One main distro, & some smaller ones casually.
Posts: 5,744
Rep:
|
I bought 3x (supposedly) 128GB pendrives, 2 were actually only 32GB, & reformatted to ext4 - the third would not reformat, & it was stuck with an exFAT header!
Today, I took another look at this '128GB' pendrive, with OpenBSD, & so far, it looks like it may be usable with an ffs filesystem on it - (presently copying a load of files to it, on my OpenBSD machine).
For a USB3 pendrive, it is remarkably slow!
EDIT: It too failed to use it fully! - Heading for the bin!
Last edited by fatmac; 09-12-2023 at 04:45 AM.
|
|
|
09-12-2023, 03:31 AM
|
#8
|
Member
Registered: Jul 2019
Location: China
Distribution: UnionTech OS Desktop Home (64-bit)
Posts: 228
Original Poster
Rep:
|
Quote:
Originally Posted by dc.901
Now do a read test:
Code:
dd if=/dev/<whatever device LanKxin shows up with> of=/dev/null bs=65536
|
The following is the test results:
Code:
Matthew_Wai@My-PC:~$ sudo dd if=/dev/sdb of=/dev/null bs=65536
[sudo] password for Matthew_Wai:
Verification successful
1920000+0 records in
1920000+0 records out
125829120000 bytes (126 GB, 117 GiB) copied, 2896.72 s, 43.4 MB/s
Matthew_Wai@My-PC:~$
The following image is a screenshot of System Monitor.
https://lh3.googleusercontent.com/pw...-no?authuser=0
The read test and write test found nothing wrong. What else can be done?
|
|
|
09-12-2023, 03:53 PM
|
#9
|
LQ Guru
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,205
|
They're small repurposed usb-2.0 drives. You'd be all year trying to fill them. I junked mine, and didn't return it because the seller was gone.
|
|
|
All times are GMT -5. The time now is 10:56 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|