Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
So I am trying to install Slackware 12.0 and it's locking up hard at the keyboard selection during boot. I am going to assume a bad burn to dvd.
Here is the run down:
1. Downloaded the iso via torrent.
2. Checked the .iso against the .md5 (not that it's needed using torrents)
3. # growisofs -dvd-compat -speed=4 -Z /dev/dvd=slackware-12.0-install-dvd.iso
4. {several failed install attempts}
5. dd if=/dev/dvd of=rip.iso bs=1M
This results in rip.iso being slightly larger than slackware-12.0-install-dvd.iso, most likely due to the use of -dvd-compat during growisofs.
So I need something to trim rip.iso to the same size as slackware-12.0-install-dvd.iso and then check the md5sum to determine a good burn.
I am currently trying to dd rip.iso to another file using bs=1 and count={exact size of slackware-12.0-install-dvd.iso} but it is painfully slow.
I think that dvds use block sizes of either 1024 or 2048. The problem was probably caused but using 1M as the block size.
Use split to break up the file into parts. Use the length of the slackware-12.0-install-dvd.iso as the slice size. Then delete the excess.
There is a truncate function in C but I don't know how you would access it unless you created a program to do it. Maybe a perl library function exists.
Split!
I knew there was something to do it.
man -k trim & google linux+trim+file were useless.
I thought dd would just give up on the last read block (writing the part it had) if it couldn't fill the whole blocksize. I guess there is only one way to find out though.
After burning the DVD, you could have used the md5sum program on the device (as root) instead of copying the disk to a file. Alternately you could use dd to copy from the device and pipe the output into "md5sum --"
It always fails and I believe it's the -dvd-compat option causing it. Probably does something similar to cdrecord -pad. Larger file should never have the same md5.
I guess the obvious answer is to not use the -dvd-compat flag then md5sum /dev/dvd would actually work.
BTW, here is the results of the dd rip from earlier:
Code:
root@amd1200:~# dd if=/dev/dvd of=a bs=1M
3714+1 records in
3714+1 records out
3894542336 bytes (3.9 GB) copied, 512.879 seconds, 7.6 MB/s
root@amd1200:~# dd if=/dev/dvd of=b bs=2048
1901632+0 records in
1901632+0 records out
3894542336 bytes (3.9 GB) copied, 513.959 seconds, 7.6 MB/s
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.