Linux - HardwareThis 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.
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.
I use debian 9.1.0 and it's software repository. I am able to install some packages. But when I try to install blender, wesnoth, some other packages,
Quote:
E: Read error - read (5: Input/output error)
so I copied repository and settings to /a. I get the same error. I guess this means the problem is not the hard drive. When I run
Code:
mount -a; apt-get update;
I see no errors. I guess this means the problem is not a corrupt file. It is strange that blkid lists each file twice. I renamed my old folders to avoid this. If I had the hardware, I could try another system, or external hard drive. How can I find the source of the error? Below is how I set up my system, with install notes at the bottom. This method worked for debian 9.0.0.
How I created a local repository in debian 9.1.0.
1. Get debian 9.1.0 software repository. I use a dvd vendor that is listed on the debian website.
2. adjust bios.
file> apply defaults and exit. do this first to prevent suprises.
security> network boot> disable. I never boot from the network.
security> system security> virtualization technology> enable. required for virtual machine.
security> secure boot> legacy support> enable. required by debian?
security> secure boot> secure boot> disable. required by debian?
security> secure boot> fast boot> disable. required by debian?
advanced> power-on> post messages> enable. helpful.
advanced> power-on> post delay> 5. helpful.
3. gparted> device> create partition table> msdos.
4. Install debian 9.1.0.
5. Change some permissions to liberal.
6. Create target directory structure.
This code requires super user privledge, su.
7. convert repository into iso format. I use brasero to copy dvd. Brasero is on dvd1 and is installed by default.
8. Copy and rename repository to target directory.
9. remove repository from home directory.
10. copy and paste this into the bottom of /etc/fstab.
11. copy and paste this into all of /etc/apt/sources.list
Code:
deb file:/mnt/extract/01/ stretch main contrib
deb file:/mnt/extract/02/ stretch main contrib
deb file:/mnt/extract/03/ stretch main contrib
deb file:/mnt/extract/04/ stretch main contrib
deb file:/mnt/extract/05/ stretch main contrib
deb file:/mnt/extract/06/ stretch main contrib
deb file:/mnt/extract/07/ stretch main contrib
deb file:/mnt/extract/08/ stretch main contrib
deb file:/mnt/extract/09/ stretch main contrib
deb file:/mnt/extract/10/ stretch main contrib
deb file:/mnt/extract/11/ stretch main contrib
deb file:/mnt/extract/12/ stretch main contrib
deb file:/mnt/extract/13/ stretch main contrib
deb file:/mnt/extract/14/ stretch main contrib
12. Mount all filesystems mentioned in fstab. As directed in /etc/fstab, extract from /mnt/iso/*.iso into /mnt/extract/*/.
13. Tell system about new repository.
This code requires super user privledge, su.
Here are some messages that are displayed after running the code.
Quote:
mount: /dev/loop1 is write-protected, mounting read-only
W: The repository 'file:/mnt/extract/01 stretch Release' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
warning. Some permissions were changed to liberal.
warning. on debian 9.1.0, apt-update is on dvd2.
question. apt-secure(8) manpage says insecure repositories are strongly discouraged. So offline, how do I make it secure? I hear this can not be done.
warning. do not disable legacy support. do not use gpt partition table.
bios> security> secure boot> legacy support> disable.
gparted> device> create partition table> gpt.
error: no boot disk has been detected or the disk has failed.
question. packages that are installed by default, that create iso image from dvd are brasero, genisoimage, growisofs.
Can these packages use script to create iso image from dvd?
i cannot help much with your repository problems but saying that error
number 5 "input/output error" is normally due to bad storage medium or
due to incompletely written storage medium.
Said that, your question how to create an ISO image file from a DVD
is simple to answer. You need no burn program or ISO 9660 producer program
because you simply need to read the ISO 9660 filesystem image from the
Debian DVDs. Assumed that the DVD is accessible as /dev/sr0:
Code:
dd if=/dev/sr0 bs=1M of=/mnt/iso/01.iso
(I am not overly happy with the directory /mnt/iso/ where you put your
DVD images. That's an old address for _mounting_ ISOs, not for putting
copies of ISOs. But this should not hamper your success.)
The peculiar observation that each copied ISO appears twice in blkid is
due to the fact that each of them is mounted twice by two different
/dev/loop* devices. Possibly each such pair is mounted to the same
directory.
So try what happens if you umount each /mnt/extract/* directory twice
and then run again mount -a to mount each once.
If this still yields doubly mounted *.iso files, then the duplication
is probably due to double mentioning of the *.iso files in /etc/fstab.
It sounds like I might need a new system. I am now looking for a read-write test for my internal 500gb hard drive. If needed, I will be happy to reinstall everything. Test with with what software? dd seems to be the most common. And I suppose I will need to run it from a live distribution. Here are some instructions I found. Erase all the disk content by resetting data to 0 with the following.
Code:
dd if=/dev/zero of=/dev/sda
But how to read and make sure everything is zero? Can I replace zero with one, and repeat the test? Here are more instructions I found, but I do not completly understand them. To make drive benchmark test and analyze the sequential (and usually single-threaded) system read and write performance for 1024-byte blocks:
I think backtrack does this, I have a copy in storage. I remember format or fdisk from msdos, which marks bad sectors. Can bonnie++ do this? What test should I run? Thank you for telling me about dd. It did not show up when I searched debian for iso. I asked for a directory in which to put ISO, in my thread https://www.linuxquestions.org/quest...ry-4175606285/
If you have an opinion on this, please tell me. What do you think about /a?
Code:
umount -a; umount -a; mount -a; blkid; apt-get update;
The origional output has about 14 lines of each type. I deleted most of the lines for the sample below.
Do you really want to erase all content of your first hard disk ?
(This might fail in the middle if the running operating system has its
files on that disk.)
The input file of this program run, device /dev/zero, hands out as many
bytes of value 0 as any program wants to read from it.
The output file /dev/sda is the address of the first hard disk.
A further disk, e.g. an USB stick, would show up as /dev/sdb.
and your swap space (which can be created again easily).
Do you really want to ?
What operating system will run at that time ?
> But how to read and make sure everything is zero?
Only if you really want to do the above:
You would read all available bytes from /dev/sda and check whether they
are all zero. The program "od" has the habit to abbreviate repeated output
lines by a "*" line.
So
Code:
dd if=/dev/sda bs=1M | od -c | less
should yield a short result after very long readingi with blank terminal,
like:
Code:
500000+0 records in
500000+0 records out
512000000000 bytes (512.0 GB) copied, 5000 s, 100 MB/s
0000000 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0
*
7346545000000
If there appear other lines like
Code:
1000000 250 g m 344 237 345 ? 006 300 227 \v 245 003 Z 225 272
then it's not all zero. In this case you can abort the reading by pressing
the keys Ctrl and "c" at the same time.
That's not a good benchmark.
(I began to criticise it in detail, but finally it is useless because of
RAM buffers, RAM cache, and the potential of a sparse file content
representation if all bytes are 0.)
I cannot advise a good disk benchmark. Maybe others can.
In general, you should first find out from which device the i/o error
came: hard disk, DVD, ... ?
Command "dmesg" can be used to view system log messages after such error
events.
Code:
dmesg | less
could show among others a group of lines like
Code:
[...743615] sr2: CDROM (ioctl) error, command: Read TOC/PMA/ATIP 43 00 00 00 00 00 00 00 0c 40
[...743625] sr: Sense Key : Medium Error [current]
[...743628] sr: Add. Sense: Medium format corrupted
(This was when nosy systemd tried to inspect an unformatted BD-RE.)
The decisive info is "sr2". I.e. the error happened at the third optical drive.
Leave program "less" by pressing key "q".
> Thank you for telling me about dd. It did not show up when I searched
> debian for iso.
That's because dd is not specific to ISO 9660 filesystem but just reads
any data that are available from a file. It offers a few options to cut
out data from a file or to convert the data. So it's a kind of programming
language which can do nothing but perform one copy job.
The DVD drive with its inserted medium appears as device file /dev/sr0.
Any program that can read data can read the bytes from there. And because
you want an "image" of the DVD as data file, this simple job is exactly
what fulfills your wish. ISO, UDF, FAT, ext4, it would work with any
filesystem.
> umount -a;
This was overdone. You should only umount the /mnt/extract/* directories
(twice if they appear twice in the list).
> The origional output has about 14 lines of each type
Does that mean you have 14 lines of TYPE="iso9660" ?
That would mean each of the ISO images is mounted once now. Right ?
> I deleted most of the lines for the sample below.
Not good if you need advice. Now i need to ask you what you see.
> umount: /dev: target is busy
Didn't you get at least one such message about "/: target is busy" ?
Be warned that the activities you plan are for experienced users of
GNU/Linux in general and Debian in particular. I know about disks and
drives, but get my Debian packages from the internet, not from a large
set of DVDs.
Do you really want to erase all content of your first hard disk ?
Yes. I think that would the simplest, surest, most complete thing to do.
(This might fail in the middle if the running operating system has its files on that disk.)
Good warning. So I will boot from external source.
The victim of dd if=/dev/zero of=/dev/sda; would be the device, internal hard disk, /dev/sda, and everything on it, including filesystems and swap space and mbr.
Do you really want to ? Yes, unless you have a better idea how to fix the system. As it is now, it is nearing trash status. If it completely breaks, no big loss.
What operating system will run at that time ? The external os that I boot from. Or later, if fixed, the os I will install.
Code:
dd if=/dev/zero of=/dev/sda; dd if=/dev/sda bs=1M | od -c | less
sounds good to me. So I need an external live boot source with dd and od.
That's not a good benchmark. I want to test for accuracy, not speed.
find out from which device the i/o error came. I highly suspect the hard disk. But it is nice to run a test when easy. Hash Sum mismatch. This means bad hard disk?
root@debian:/home/stretch# umount /mnt/extract/01/; umount /mnt/extract/02/; umount /mnt/extract/03/; umount /mnt/extract/04/; umount /mnt/extract/05/; umount /mnt/extract/06/; umount /mnt/extract/07/; umount /mnt/extract/08/; umount /mnt/extract/09/; umount /mnt/extract/10/; umount /mnt/extract/11/; umount /mnt/extract/12/; umount /mnt/extract/13/; umount /mnt/extract/14/; umount /mnt/extract/01/; umount /mnt/extract/02/; umount /mnt/extract/03/; umount /mnt/extract/04/; umount /mnt/extract/05/; umount /mnt/extract/06/; umount /mnt/extract/07/; umount /mnt/extract/08/; umount /mnt/extract/09/; umount /mnt/extract/10/; umount /mnt/extract/11/; umount /mnt/extract/12/; umount /mnt/extract/13/; umount /mnt/extract/14/; mount -a; blkid; apt-get update;
umount: /mnt/extract/01/: mountpoint not found
umount: /mnt/extract/02/: mountpoint not found
umount: /mnt/extract/03/: mountpoint not found
umount: /mnt/extract/04/: mountpoint not found
umount: /mnt/extract/05/: mountpoint not found
umount: /mnt/extract/06/: mountpoint not found
umount: /mnt/extract/07/: mountpoint not found
umount: /mnt/extract/08/: mountpoint not found
umount: /mnt/extract/09/: mountpoint not found
umount: /mnt/extract/10/: mountpoint not found
umount: /mnt/extract/11/: mountpoint not found
umount: /mnt/extract/12/: mountpoint not found
umount: /mnt/extract/13/: mountpoint not found
umount: /mnt/extract/14/: mountpoint not found
umount: /mnt/extract/01/: mountpoint not found
umount: /mnt/extract/02/: mountpoint not found
umount: /mnt/extract/03/: mountpoint not found
umount: /mnt/extract/04/: mountpoint not found
umount: /mnt/extract/05/: mountpoint not found
umount: /mnt/extract/06/: mountpoint not found
umount: /mnt/extract/07/: mountpoint not found
umount: /mnt/extract/08/: mountpoint not found
umount: /mnt/extract/09/: mountpoint not found
umount: /mnt/extract/10/: mountpoint not found
umount: /mnt/extract/11/: mountpoint not found
umount: /mnt/extract/12/: mountpoint not found
umount: /mnt/extract/13/: mountpoint not found
umount: /mnt/extract/14/: mountpoint not found
/dev/sda1: UUID="67ed7f20-f11a-41e9-809f-348882809142" TYPE="ext4" PARTUUID="620b48d0-01"
/dev/sda5: UUID="79f81718-f0f3-4a1c-9ea1-935bbce8212e" TYPE="swap" PARTUUID="620b48d0-05"
/dev/loop0: UUID="2017-07-22-11-57-38-00" LABEL="Debian 9.1.0 amd64 1" TYPE="iso9660" PTUUID="019c8ef2" PTTYPE="dos"
/dev/loop1: UUID="2017-07-22-12-15-38-00" LABEL="Debian 9.1.0 amd64 2" TYPE="iso9660"
/dev/loop2: UUID="2017-07-22-12-18-49-00" LABEL="Debian 9.1.0 amd64 3" TYPE="iso9660"
/dev/loop3: UUID="2017-07-22-12-22-01-00" LABEL="Debian 9.1.0 amd64 4" TYPE="iso9660"
/dev/loop4: UUID="2017-07-22-12-25-09-00" LABEL="Debian 9.1.0 amd64 5" TYPE="iso9660"
/dev/loop5: UUID="2017-07-22-12-28-13-00" LABEL="Debian 9.1.0 amd64 6" TYPE="iso9660"
/dev/loop6: UUID="2017-07-22-12-31-13-00" LABEL="Debian 9.1.0 amd64 7" TYPE="iso9660"
/dev/loop7: UUID="2017-07-22-12-34-13-00" LABEL="Debian 9.1.0 amd64 8" TYPE="iso9660"
/dev/loop8: UUID="2017-07-22-12-37-52-00" LABEL="Debian 9.1.0 amd64 9" TYPE="iso9660"
/dev/loop9: UUID="2017-07-22-11-59-43-00" LABEL="Debian 9.1.0 amd64 10" TYPE="iso9660"
/dev/loop10: UUID="2017-07-22-12-03-50-00" LABEL="Debian 9.1.0 amd64 11" TYPE="iso9660"
/dev/loop11: UUID="2017-07-22-12-07-51-00" LABEL="Debian 9.1.0 amd64 12" TYPE="iso9660"
/dev/loop12: UUID="2017-07-22-12-11-40-00" LABEL="Debian 9.1.0 amd64 13" TYPE="iso9660"
/dev/loop13: UUID="2017-07-22-12-15-08-00" LABEL="Debian 9.1.0 amd64 14" TYPE="iso9660"
Get:1 file:/a/extract/01 stretch InRelease
Ign:1 file:/a/extract/01 stretch InRelease
Get:2 file:/a/extract/02 stretch InRelease
Ign:2 file:/a/extract/02 stretch InRelease
Get:3 file:/a/extract/03 stretch InRelease
Ign:3 file:/a/extract/03 stretch InRelease
Get:4 file:/a/extract/04 stretch InRelease
Ign:4 file:/a/extract/04 stretch InRelease
Get:5 file:/a/extract/05 stretch InRelease
Ign:5 file:/a/extract/05 stretch InRelease
Get:6 file:/a/extract/06 stretch InRelease
Ign:6 file:/a/extract/06 stretch InRelease
Get:7 file:/a/extract/07 stretch InRelease
Ign:7 file:/a/extract/07 stretch InRelease
Get:8 file:/a/extract/08 stretch InRelease
Ign:8 file:/a/extract/08 stretch InRelease
Get:9 file:/a/extract/09 stretch InRelease
Ign:9 file:/a/extract/09 stretch InRelease
Get:10 file:/a/extract/10 stretch InRelease
Ign:10 file:/a/extract/10 stretch InRelease
Get:11 file:/a/extract/11 stretch InRelease
Ign:11 file:/a/extract/11 stretch InRelease
Get:12 file:/a/extract/12 stretch InRelease
Ign:12 file:/a/extract/12 stretch InRelease
Get:13 file:/a/extract/13 stretch InRelease
Ign:13 file:/a/extract/13 stretch InRelease
Get:14 file:/a/extract/14 stretch InRelease
Ign:14 file:/a/extract/14 stretch InRelease
Get:15 file:/a/extract/01 stretch Release [19.1 kB]
Get:16 file:/a/extract/02 stretch Release [16.9 kB]
Get:17 file:/a/extract/03 stretch Release [13.9 kB]
Get:15 file:/a/extract/01 stretch Release [19.1 kB]
Get:18 file:/a/extract/04 stretch Release [13.1 kB]
Get:19 file:/a/extract/05 stretch Release [13.9 kB]
Get:20 file:/a/extract/06 stretch Release [13.5 kB]
Get:16 file:/a/extract/02 stretch Release [16.9 kB]
Get:21 file:/a/extract/07 stretch Release [13.9 kB]
Get:22 file:/a/extract/08 stretch Release [13.5 kB]
Get:17 file:/a/extract/03 stretch Release [13.9 kB]
Get:23 file:/a/extract/09 stretch Release [13.9 kB]
Get:24 file:/a/extract/10 stretch Release [14.3 kB]
Get:18 file:/a/extract/04 stretch Release [13.1 kB]
Get:25 file:/a/extract/11 stretch Release [14.4 kB]
Get:19 file:/a/extract/05 stretch Release [13.9 kB]
Get:26 file:/a/extract/12 stretch Release [13.1 kB]
Get:20 file:/a/extract/06 stretch Release [13.5 kB]
Get:27 file:/a/extract/13 stretch Release [11.8 kB]
Get:28 file:/a/extract/14 stretch Release [7,549 B]
Get:29 file:/a/extract/01 stretch Release.gpg
Ign:29 file:/a/extract/01 stretch Release.gpg
Get:21 file:/a/extract/07 stretch Release [13.9 kB]
Get:30 file:/a/extract/02 stretch Release.gpg
Ign:30 file:/a/extract/02 stretch Release.gpg
Get:22 file:/a/extract/08 stretch Release [13.5 kB]
Get:31 file:/a/extract/03 stretch Release.gpg
Ign:31 file:/a/extract/03 stretch Release.gpg
Get:23 file:/a/extract/09 stretch Release [13.9 kB]
Get:32 file:/a/extract/04 stretch Release.gpg
Ign:32 file:/a/extract/04 stretch Release.gpg
Get:24 file:/a/extract/10 stretch Release [14.3 kB]
Get:33 file:/a/extract/05 stretch Release.gpg
Ign:33 file:/a/extract/05 stretch Release.gpg
Get:25 file:/a/extract/11 stretch Release [14.4 kB]
Get:34 file:/a/extract/06 stretch Release.gpg
Ign:34 file:/a/extract/06 stretch Release.gpg
Get:26 file:/a/extract/12 stretch Release [13.1 kB]
Get:35 file:/a/extract/07 stretch Release.gpg
Ign:35 file:/a/extract/07 stretch Release.gpg
Get:27 file:/a/extract/13 stretch Release [11.8 kB]
Get:36 file:/a/extract/08 stretch Release.gpg
Ign:36 file:/a/extract/08 stretch Release.gpg
Get:28 file:/a/extract/14 stretch Release [7,549 B]
Get:37 file:/a/extract/09 stretch Release.gpg
Ign:37 file:/a/extract/09 stretch Release.gpg
Get:38 file:/a/extract/10 stretch Release.gpg
Ign:38 file:/a/extract/10 stretch Release.gpg
Get:39 file:/a/extract/11 stretch Release.gpg
Ign:39 file:/a/extract/11 stretch Release.gpg
Get:40 file:/a/extract/12 stretch Release.gpg
Ign:40 file:/a/extract/12 stretch Release.gpg
Get:41 file:/a/extract/13 stretch Release.gpg
Ign:41 file:/a/extract/13 stretch Release.gpg
Get:42 file:/a/extract/14 stretch Release.gpg
Ign:42 file:/a/extract/14 stretch Release.gpg
Reading package lists... Done
W: The repository 'file:/a/extract/01 stretch Release' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: The repository 'file:/a/extract/02 stretch Release' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: The repository 'file:/a/extract/03 stretch Release' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: The repository 'file:/a/extract/04 stretch Release' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: The repository 'file:/a/extract/05 stretch Release' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: The repository 'file:/a/extract/06 stretch Release' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: The repository 'file:/a/extract/07 stretch Release' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: The repository 'file:/a/extract/08 stretch Release' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: The repository 'file:/a/extract/09 stretch Release' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: The repository 'file:/a/extract/10 stretch Release' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: The repository 'file:/a/extract/11 stretch Release' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: The repository 'file:/a/extract/12 stretch Release' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: The repository 'file:/a/extract/13 stretch Release' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: The repository 'file:/a/extract/14 stretch Release' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
root@debian:/home/stretch#
Suppose we prove the hard disk is bad. Then what? Is there software to mark the bad parts?
> > Do you really want to erase all content of your first hard disk ?
> Yes. I think that would the simplest, surest, most complete thing to do.
You did not show the reason yet why you think that your hard disk is bad.
The input/output error was with reading during package installation.
It could well be the DVD drive or the DVD medium which is to blame.
When copying to hard disk, the problem may have been copied, too.
> So I need an external live boot source with dd and od.
Both are very elementary programs. Any Live-CD is supposed to have them.
> I want to test for accuracy, not speed.
The problem with the two-dd benchmark is that the machine's RAM buffers
the written data. If there is enough RAM, then the reading will not
happen from hard disk but from (much faster) RAM.
So you would have to run the first dd, which creates the big file.
Then shut down the computer regularly. Then boot again and try to read
the file. The shutdown-reboot cycle will have erased the RAM content.
But if you only want to know whether all bytes of /dev/sda are readable, do
Code:
dd if=/dev/sda bs=1M | wc -c
This will silently read all data from /dev/sda and in the end "wc -c"
will print the number of seen bytes. If no input/output error appears
and the number of bytes matches your expectations, then the disk did well.
> Get:1 file:/a/extract/08 stretch/main amd64 zzuf amd64 0.15-1+b1 [62.2 kB]
> Hash Sum mismatch
> E: Read error - read (5: Input/output error)
> [... no error in dmesg ...]
My best guess is that the copy of DVD 8 is truncated or damaged.
How large is file /mnt/iso/08.iso ?
If it is too short, then trying to read from the missing part would yield
an input/output error, although the hard disk itself is ok. This would explain
why there is no matching error message in dmesg.
> apt-get update;
This probably tries to update the system's package management by the
content of your DVD copies.
The copies are found, but all are not in the state that apt-get expects.
The lack of file signatures indicates damaged content of the copies.
(Or a fat bug in apt-get, which many people use sucessfully.)
> > I use brasero to copy dvd.
This step could be a cause of the problem. It is exotic at least.
You should verify your DVD copies by the checksums
Code:
/sbin/isosize -x /mnt/iso/08.iso
will tell how many blocks should be there. E.g.:
Code:
sector count: 2286235 sector size: 2048
With these numbers pipe the bytes of the ISO filesystem into md5sum
The result will be a string of 32 characters and digits. Compare it
with the corresponding string in https://cdimage.debian.org/debian-cd...so-dvd/MD5SUMS
In case of DVD 8 it should be "41d593aa442979a3229127608e0475f7".
If it is not, then the file /mnt/iso/08.iso is damaged.
You may do the same test with DVD 8 in the DVD drive and file address
if=/dev/sr0 instead of if=/mnt/iso/08.iso.
If both checksums do not match the one from the Debian list, then you need
better DVDs or ISO images.
The organisation behind "smartmontools" has a list of Live CD systems which
contain the tools: https://www.smartmontools.org/wiki/LiveCDs
(Some links don't work any more or lead to sites in non-english languages.)
Have a nice day
Thomas
Last edited by scdbackup; 09-09-2017 at 06:18 AM.
Reason: Inserted real size number of DVD 8 as of debian-9.1.0-amd64-DVD-8.jigdo
Thank you. It seems to work.
How I created a local repository, on 500gb internal hard disk, in debian 9.1.0.
1. Get debian 9.1.0 software repository. I use a dvd vendor that is listed on the debian website.
2. adjust bios.
Code:
file> apply defaults and exit. do this first to prevent suprises.
security> network boot> disable. I never boot from the network.
security> system security> virtualization technology> enable. required for virtual machine.
security> secure boot> legacy support> enable. required by debian?
security> secure boot> secure boot> disable. required by debian?
security> secure boot> fast boot> disable. required by debian?
advanced> power-on> post messages> enable. helpful.
advanced> power-on> post delay> 5. helpful.
3. gparted> device> create partition table> msdos.
4. Install debian 9.1.0.
5. Create target directory structure.
6. Change some permissions to liberal.
This code requires super user privledge, su.
11. copy and paste this into all of /etc/apt/sources.list
Code:
deb file:/09.1/extract/01/ stretch main contrib
deb file:/09.1/extract/02/ stretch main contrib
deb file:/09.1/extract/03/ stretch main contrib
deb file:/09.1/extract/04/ stretch main contrib
deb file:/09.1/extract/05/ stretch main contrib
deb file:/09.1/extract/06/ stretch main contrib
deb file:/09.1/extract/07/ stretch main contrib
deb file:/09.1/extract/08/ stretch main contrib
deb file:/09.1/extract/09/ stretch main contrib
deb file:/09.1/extract/10/ stretch main contrib
deb file:/09.1/extract/11/ stretch main contrib
deb file:/09.1/extract/12/ stretch main contrib
deb file:/09.1/extract/13/ stretch main contrib
deb file:/09.1/extract/14/ stretch main contrib
12. Mount all filesystems mentioned in fstab. As directed in /etc/fstab, extract from /mnt/iso/*.iso into /mnt/extract/*/.
13. Tell system about new repository.
This code requires super user privledge, su.
Code:
mount -a; apt-get update;
result from above.
Quote:
mount: /dev/loop14 is write-protected, mounting read-only
mount: /dev/loop15 is write-protected, mounting read-only
mount: /dev/loop16 is write-protected, mounting read-only
mount: /dev/loop17 is write-protected, mounting read-only
mount: /dev/loop18 is write-protected, mounting read-only
mount: /dev/loop19 is write-protected, mounting read-only
mount: /dev/loop20 is write-protected, mounting read-only
mount: /dev/loop21 is write-protected, mounting read-only
mount: /dev/loop22 is write-protected, mounting read-only
mount: /dev/loop23 is write-protected, mounting read-only
mount: /dev/loop24 is write-protected, mounting read-only
mount: /dev/loop25 is write-protected, mounting read-only
mount: /dev/loop26 is write-protected, mounting read-only
mount: /dev/loop27 is write-protected, mounting read-only
Get:1 file:/09.1/extract/01 stretch InRelease
Ign:1 file:/09.1/extract/01 stretch InRelease
Get:2 file:/09.1/extract/02 stretch InRelease
Ign:2 file:/09.1/extract/02 stretch InRelease
Get:3 file:/09.1/extract/03 stretch InRelease
Ign:3 file:/09.1/extract/03 stretch InRelease
Get:4 file:/09.1/extract/04 stretch InRelease
Ign:4 file:/09.1/extract/04 stretch InRelease
Get:5 file:/09.1/extract/05 stretch InRelease
Ign:5 file:/09.1/extract/05 stretch InRelease
Get:6 file:/09.1/extract/06 stretch InRelease
Ign:6 file:/09.1/extract/06 stretch InRelease
Get:7 file:/09.1/extract/07 stretch InRelease
Ign:7 file:/09.1/extract/07 stretch InRelease
Get:8 file:/09.1/extract/08 stretch InRelease
Ign:8 file:/09.1/extract/08 stretch InRelease
Get:9 file:/09.1/extract/09 stretch InRelease
Ign:9 file:/09.1/extract/09 stretch InRelease
Get:10 file:/09.1/extract/10 stretch InRelease
Ign:10 file:/09.1/extract/10 stretch InRelease
Get:11 file:/09.1/extract/11 stretch InRelease
Ign:11 file:/09.1/extract/11 stretch InRelease
Get:12 file:/09.1/extract/12 stretch InRelease
Ign:12 file:/09.1/extract/12 stretch InRelease
Get:13 file:/09.1/extract/13 stretch InRelease
Ign:13 file:/09.1/extract/13 stretch InRelease
Get:14 file:/09.1/extract/14 stretch InRelease
Ign:14 file:/09.1/extract/14 stretch InRelease
Get:15 file:/09.1/extract/01 stretch Release [19.1 kB]
Get:15 file:/09.1/extract/01 stretch Release [19.1 kB]
Get:16 file:/09.1/extract/02 stretch Release [16.9 kB]
Get:16 file:/09.1/extract/02 stretch Release [16.9 kB]
Get:17 file:/09.1/extract/03 stretch Release [13.9 kB]
Get:17 file:/09.1/extract/03 stretch Release [13.9 kB]
Get:18 file:/09.1/extract/04 stretch Release [13.1 kB]
Get:19 file:/09.1/extract/05 stretch Release [13.9 kB]
Get:18 file:/09.1/extract/04 stretch Release [13.1 kB]
Get:19 file:/09.1/extract/05 stretch Release [13.9 kB]
Get:20 file:/09.1/extract/06 stretch Release [13.5 kB]
Get:20 file:/09.1/extract/06 stretch Release [13.5 kB]
Get:21 file:/09.1/extract/07 stretch Release [13.9 kB]
Get:21 file:/09.1/extract/07 stretch Release [13.9 kB]
Get:22 file:/09.1/extract/08 stretch Release [13.5 kB]
Get:22 file:/09.1/extract/08 stretch Release [13.5 kB]
Get:23 file:/09.1/extract/09 stretch Release [13.9 kB]
Get:23 file:/09.1/extract/09 stretch Release [13.9 kB]
Get:24 file:/09.1/extract/10 stretch Release [14.3 kB]
Get:24 file:/09.1/extract/10 stretch Release [14.3 kB]
Get:25 file:/09.1/extract/11 stretch Release [14.4 kB]
Get:25 file:/09.1/extract/11 stretch Release [14.4 kB]
Get:26 file:/09.1/extract/12 stretch Release [13.1 kB]
Get:26 file:/09.1/extract/12 stretch Release [13.1 kB]
Get:27 file:/09.1/extract/13 stretch Release [11.8 kB]
Get:27 file:/09.1/extract/13 stretch Release [11.8 kB]
Get:28 file:/09.1/extract/14 stretch Release [7,549 B]
Get:28 file:/09.1/extract/14 stretch Release [7,549 B]
Get:29 file:/09.1/extract/01 stretch Release.gpg
Ign:29 file:/09.1/extract/01 stretch Release.gpg
Get:30 file:/09.1/extract/02 stretch Release.gpg
Ign:30 file:/09.1/extract/02 stretch Release.gpg
Get:31 file:/09.1/extract/03 stretch Release.gpg
Ign:31 file:/09.1/extract/03 stretch Release.gpg
Get:32 file:/09.1/extract/04 stretch Release.gpg
Ign:32 file:/09.1/extract/04 stretch Release.gpg
Get:33 file:/09.1/extract/05 stretch Release.gpg
Ign:33 file:/09.1/extract/05 stretch Release.gpg
Get:34 file:/09.1/extract/06 stretch Release.gpg
Ign:34 file:/09.1/extract/06 stretch Release.gpg
Get:35 file:/09.1/extract/07 stretch Release.gpg
Ign:35 file:/09.1/extract/07 stretch Release.gpg
Get:36 file:/09.1/extract/08 stretch Release.gpg
Ign:36 file:/09.1/extract/08 stretch Release.gpg
Get:37 file:/09.1/extract/09 stretch Release.gpg
Ign:37 file:/09.1/extract/09 stretch Release.gpg
Get:38 file:/09.1/extract/10 stretch Release.gpg
Ign:38 file:/09.1/extract/10 stretch Release.gpg
Get:39 file:/09.1/extract/11 stretch Release.gpg
Ign:39 file:/09.1/extract/11 stretch Release.gpg
Get:40 file:/09.1/extract/12 stretch Release.gpg
Ign:40 file:/09.1/extract/12 stretch Release.gpg
Get:41 file:/09.1/extract/13 stretch Release.gpg
Ign:41 file:/09.1/extract/13 stretch Release.gpg
Get:42 file:/09.1/extract/14 stretch Release.gpg
Ign:42 file:/09.1/extract/14 stretch Release.gpg
Get:43 file:/09.1/extract/01 stretch/main amd64 Packages [897 kB]
Ign:43 file:/09.1/extract/01 stretch/main amd64 Packages
Get:44 file:/09.1/extract/01 stretch/contrib amd64 Packages [400 B]
Ign:44 file:/09.1/extract/01 stretch/contrib amd64 Packages
Get:45 file:/09.1/extract/02 stretch/main amd64 Packages [708 kB]
Ign:45 file:/09.1/extract/02 stretch/main amd64 Packages
Get:46 file:/09.1/extract/02 stretch/contrib amd64 Packages [3,567 B]
Ign:46 file:/09.1/extract/02 stretch/contrib amd64 Packages
Get:47 file:/09.1/extract/03 stretch/main amd64 Packages [544 kB]
Ign:47 file:/09.1/extract/03 stretch/main amd64 Packages
Get:48 file:/09.1/extract/03 stretch/contrib amd64 Packages [3,641 B]
Ign:48 file:/09.1/extract/03 stretch/contrib amd64 Packages
Get:49 file:/09.1/extract/04 stretch/main amd64 Packages [608 kB]
Ign:49 file:/09.1/extract/04 stretch/main amd64 Packages
Get:50 file:/09.1/extract/04 stretch/contrib amd64 Packages [2,532 B]
Ign:50 file:/09.1/extract/04 stretch/contrib amd64 Packages
Get:51 file:/09.1/extract/05 stretch/main amd64 Packages [613 kB]
Ign:51 file:/09.1/extract/05 stretch/main amd64 Packages
Get:52 file:/09.1/extract/05 stretch/contrib amd64 Packages [2,062 B]
Ign:52 file:/09.1/extract/05 stretch/contrib amd64 Packages
Get:53 file:/09.1/extract/06 stretch/main amd64 Packages [601 kB]
Ign:53 file:/09.1/extract/06 stretch/main amd64 Packages
Get:54 file:/09.1/extract/06 stretch/contrib amd64 Packages [2,353 B]
Ign:54 file:/09.1/extract/06 stretch/contrib amd64 Packages
Get:55 file:/09.1/extract/07 stretch/main amd64 Packages [523 kB]
Ign:55 file:/09.1/extract/07 stretch/main amd64 Packages
Get:56 file:/09.1/extract/07 stretch/contrib amd64 Packages [3,209 B]
Ign:56 file:/09.1/extract/07 stretch/contrib amd64 Packages
Get:57 file:/09.1/extract/08 stretch/main amd64 Packages [950 kB]
Ign:57 file:/09.1/extract/08 stretch/main amd64 Packages
Get:58 file:/09.1/extract/08 stretch/contrib amd64 Packages [4,214 B]
Ign:58 file:/09.1/extract/08 stretch/contrib amd64 Packages
Get:59 file:/09.1/extract/09 stretch/main amd64 Packages [940 kB]
Ign:59 file:/09.1/extract/09 stretch/main amd64 Packages
Get:60 file:/09.1/extract/09 stretch/contrib amd64 Packages [5,326 B]
Ign:60 file:/09.1/extract/09 stretch/contrib amd64 Packages
Get:61 file:/09.1/extract/10 stretch/main amd64 Packages [1,486 kB]
Ign:61 file:/09.1/extract/10 stretch/main amd64 Packages
Get:62 file:/09.1/extract/10 stretch/contrib amd64 Packages [8,405 B]
Ign:62 file:/09.1/extract/10 stretch/contrib amd64 Packages
Get:63 file:/09.1/extract/11 stretch/main amd64 Packages [1,547 kB]
Ign:63 file:/09.1/extract/11 stretch/main amd64 Packages
Get:64 file:/09.1/extract/11 stretch/contrib amd64 Packages [6,196 B]
Ign:64 file:/09.1/extract/11 stretch/contrib amd64 Packages
Get:65 file:/09.1/extract/12 stretch/main amd64 Packages [1,069 kB]
Ign:65 file:/09.1/extract/12 stretch/main amd64 Packages
Get:66 file:/09.1/extract/12 stretch/contrib amd64 Packages [4,055 B]
Ign:66 file:/09.1/extract/12 stretch/contrib amd64 Packages
Get:67 file:/09.1/extract/13 stretch/main amd64 Packages [642 kB]
Ign:67 file:/09.1/extract/13 stretch/main amd64 Packages
Get:68 file:/09.1/extract/13 stretch/contrib amd64 Packages [8,099 B]
Ign:68 file:/09.1/extract/13 stretch/contrib amd64 Packages
Get:69 file:/09.1/extract/14 stretch/main amd64 Packages [101 kB]
Ign:69 file:/09.1/extract/14 stretch/main amd64 Packages
Get:43 file:/09.1/extract/01 stretch/main amd64 Packages [897 kB]
Get:44 file:/09.1/extract/01 stretch/contrib amd64 Packages [400 B]
Get:45 file:/09.1/extract/02 stretch/main amd64 Packages [708 kB]
Get:46 file:/09.1/extract/02 stretch/contrib amd64 Packages [3,567 B]
Get:47 file:/09.1/extract/03 stretch/main amd64 Packages [544 kB]
Get:48 file:/09.1/extract/03 stretch/contrib amd64 Packages [3,641 B]
Get:49 file:/09.1/extract/04 stretch/main amd64 Packages [608 kB]
Get:50 file:/09.1/extract/04 stretch/contrib amd64 Packages [2,532 B]
Get:51 file:/09.1/extract/05 stretch/main amd64 Packages [613 kB]
Get:52 file:/09.1/extract/05 stretch/contrib amd64 Packages [2,062 B]
Get:53 file:/09.1/extract/06 stretch/main amd64 Packages [601 kB]
Get:54 file:/09.1/extract/06 stretch/contrib amd64 Packages [2,353 B]
Get:55 file:/09.1/extract/07 stretch/main amd64 Packages [523 kB]
Get:56 file:/09.1/extract/07 stretch/contrib amd64 Packages [3,209 B]
Get:57 file:/09.1/extract/08 stretch/main amd64 Packages [950 kB]
Get:58 file:/09.1/extract/08 stretch/contrib amd64 Packages [4,214 B]
Get:59 file:/09.1/extract/09 stretch/main amd64 Packages [940 kB]
Get:60 file:/09.1/extract/09 stretch/contrib amd64 Packages [5,326 B]
Get:61 file:/09.1/extract/10 stretch/main amd64 Packages [1,486 kB]
Get:62 file:/09.1/extract/10 stretch/contrib amd64 Packages [8,405 B]
Get:63 file:/09.1/extract/11 stretch/main amd64 Packages [1,547 kB]
Get:64 file:/09.1/extract/11 stretch/contrib amd64 Packages [6,196 B]
Get:65 file:/09.1/extract/12 stretch/main amd64 Packages [1,069 kB]
Get:66 file:/09.1/extract/12 stretch/contrib amd64 Packages [4,055 B]
Get:67 file:/09.1/extract/13 stretch/main amd64 Packages [642 kB]
Get:68 file:/09.1/extract/13 stretch/contrib amd64 Packages [8,099 B]
Get:69 file:/09.1/extract/14 stretch/main amd64 Packages [101 kB]
Reading package lists... Done
W: The repository 'file:/09.1/extract/01 stretch Release' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: The repository 'file:/09.1/extract/02 stretch Release' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: The repository 'file:/09.1/extract/03 stretch Release' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: The repository 'file:/09.1/extract/04 stretch Release' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: The repository 'file:/09.1/extract/05 stretch Release' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: The repository 'file:/09.1/extract/06 stretch Release' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: The repository 'file:/09.1/extract/07 stretch Release' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: The repository 'file:/09.1/extract/08 stretch Release' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: The repository 'file:/09.1/extract/09 stretch Release' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: The repository 'file:/09.1/extract/10 stretch Release' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: The repository 'file:/09.1/extract/11 stretch Release' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: The repository 'file:/09.1/extract/12 stretch Release' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: The repository 'file:/09.1/extract/13 stretch Release' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: The repository 'file:/09.1/extract/14 stretch Release' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
optional. the followng is to test physical dvd.
verify each physical DVD by the checksums. with DVD in the DVD drive.
Code:
/sbin/isosize -x /dev/sr1;
will tell how many blocks should be there.With these numbers pipe the bytes of the physical DVD filesystem into md5sum. with DVD in the DVD drive.
The result will be a string of 32 characters and digits.edit the above for easy viewing.Compare it with the corresponding string in https://cdimage.debian.org/debian-cd...so-dvd/MD5SUMS.If the two strings are diffrent, then the dvd is damaged.
Many of the old iso files had incorrect md5 sums, according to the test you gave me to do. So I used dd to copy dvd to new iso. Then I re-did everything, and posted the good results.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.