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.
Strange behaviour with HD and CD/DVD drives
Since a recent update, I don't actually know which one,about 4 weeks back, which may not be related either. I have lost the proper function of the DVD\CD-WR units in my computer. I can write a disk using K3b or Brasero, but they always come back as locked disks, (not appendable) no matter the amount of files on the disks. I also seem to have lost the ability to Drag and Drop files to DVD\CD drives. Even if the disk is formatted as 'appendable' in another computer. The drives also lock up not enabling me to eject the disks when using the above programs or after reading them in Nautilus. I get a 'Not Mounted' message each time. The only way to eject the disks is to restart the computer. It is as if the drives are no longer a part of the computer but can be seen in Nautilus I have moved these DVD\CD-WR drives to a second computer and they work as one would expect. Writing and reading and ejecting of the disks. One can rule out a fault witht he drives. That computer by the way has Ubuntu 8.04 on it.
I am also seeing some strange locking of files on the HD partitions. (All those files have a lock over the icon.) I found this happening on the two hard disks. It sometimes shows up in the File System folder as well, Leaving me no alternative but to restart the computer so as to access some of these files again. Though it is most frequently in my own files in other partitions.
I am so far unable to resolve this issue though it is not for the want of trying. I have re-built the Fstab file numerous times, which MAY resolve the issue for a day or so and provided there is no DVD\CD access,but as soon as I try using the DVD\CD the problem can but not always return. I am using Ubuntu 8.10 and have thought to upgrade, but before I do I wnat to know a solution to this on going problem.
Has anyone else experienced these starnge things or can anyone help me resolve them.
I have looked through the forums and can find somethings but nothing that seems to actually resolve the issues.
You want to be able to add files to a writable optical media disk.
... K3B and brasero may be defaulting to "locked mode" - or "fixating" the disk at the end of a burn. What this means is that a table of contents has been burned to the disk. I cannot speculate for disks burned on proprietary systems, anything can happen.
The way to make sure is to use the CLI tool: Wodim.
wodim -tao -multi track1 track2 ...
K3B and brasero are gui frontends for wodim. There is usually a setting someplace for multi-session disks.
Note - if the other system burned the disk with -multi, you still won't be able to get this system to add a file unless it is also set to multi. See the wodim man page for details.
"Drive not mounted" error on eject from K3B or Brasero.
... have you tried using the eject command from a terminal? Try this, and past the exact command you used with the output.
eject -v /media/cdrom0
Files which are supposed to be read/writable by you, are "locked". Reboot clears the lock.
... when you see that next time, go to a commandline and get a long listing of the directory the folder is in. For instance, if you see locked files in your home folder:
ls -l ~
have a look at the permissions.
You can also do this by rt-clicking the locked file and selecting properties > permissions
If this were windows, I'd want you to run AV software. If you have some form of compatability interface, like WINE, then you probably should. apt-get install clamav
A burned disk
Last edited by Simon Bridge; 08-07-2009 at 04:03 AM.
Many thanks Simon,
I have at least discovered the reason for the locked files and the strange behaviour. I had to take the computer apart to find out, but it actually comes down to a faulty second HD on the computer. What I do find strange even about this the S.M.A.R.T system check was not showing a fault with this WD drive on an Asus M2V board. Yet removing the drive to another Asus m/board showed there was a fault. I would suggest to all users to be aware that the S.M.A.R.T technology is not that smart, at least in some circumstances. Simply go back to basics and check those drives out.
As to the Drag and Drop. I would wish this to be on the computer, as I think it is a vauable tool. Having done some more Internet reading the program to use is Udftools. I have taken your notes and will try those out. I had set multi-session in K3b But it still did not allow me to drag and drop. If one can do it with USB drives etc. we should be able to do it with DVD and CD disks.
It means one has to do a little fiddling with Udftools in the files but at least it works once set up, or so I have read. It would be nice if there was a GUI for the program, but at least I hope to get it working.
For those that wish to follow this path here is a link to look at.
In my Ubuntu 8.10 and 9.04 systems, when I insert blank media, the nautilus cd-burner window opens automagically. I can drag and drop files to/from this. Then I click "burn". This defaults to fixating the disk. There is no way to get it to make a multi-session cd.
The burner is brasero, and it defaults to fixating the disk.
You can drag and drop items in the disk creation dialog.
You can get it to use the nautilus cd-burner window to source it's files.
The burn dialog has a checkbox for "leave disk open" - you have to have this checked even if the cd was created as a multi-session cd already.
AFAIK: K3B is similar. Last time I used k3b, iirc, it had a text box in which you could write the cli arguments you wanted it to run for wodim (then it was cdrecord).
In other words, the functionality you ask for is available out of the box.
Why you, personally, don't have it now, is the issue.
One of the curious aspects of your first post is the language. You keep saying "appendable" instead of "multisession" and "locked" instead of "fixated". I have been assuming that these terms are synonimous. However, it may be that you have some burning tool which has a check box marked "make appendable disk" which does something undisclosed which is not the same as the standard multisession recording mode. In which case, it may be that only certain programs will be able to append files to that disk.
This is part of the reason I advocated making a multisession cd in wodim, directly. The cli is very clear about what is going on.
You were right to check the drive though - random file-system stuff-ups are either viruses or the early stages of disk failure. Note: you can also use fsck to check the drive integrety. SMART is pretty basic, yes.
Last edited by Simon Bridge; 08-08-2009 at 12:16 AM.
Simon, Many thanks agin.
As to the HD. THis drive is without doubt faulty, and has been the cause of some problems, affecting other aspects of Ubuntu as well. I used the check feature of Partition Editor and the disk check out fine, many times. I believe that command is fsck is it not?
As to the words re DVD\CD The 'Appendable comes form K3B. A disk is noted as such under the drive header on the left hand side of the program window.When one inserts a disk. 'Locked' I do mean fixated. or in my ternms no longer writable to.
What I was looking for is the same function Windows offers with the use of Nero INCD. Where one can simply drag the files to a disk as one can with a floppy or memory stick. Instead we have a program(s) that appears to want to 'close' the disk even with one file on it. I have tried many times to get the read write function like INCD but it seems this UDF write feature is not really a feature yet available on Unbuntu.
I am doing some more testing of my drives. to see what you are saying works for me.
I will get back to you in this thread if I may.
Nero has similar behaviour to the nautilus burner - a window opens representing the disk, and you drag items to it - except nautilus fixates by default. I have not tried dragging items to the blank disk icon on the desktop - that would be interesting.
If you run brasero with the -n flag, you can use the nautilus burner window to set the disk content by drag and drop, then use brasero to make a multisession disk. However, you can also drag and drop files to the brasero dialog. It is not clear how this is a disadvantage over the Nero behavior.
You will notice that FOSS applications are either very simple indeed, or heavily over-powered, with nothing in between. This is usually a sign of a mature FOSS project: if an app is popular, the users add all the features they can think of. The only way this does not happen is if the project is designed to be limited - so you get K3B or NBurner. You were expecting something close to nburner, but in the middle ground.
... the mod would involve an alteration to the gui from end to wodim - a check box can "append files to existing session" and pass a -multi option on the cli. Getting it to check for data, and display the icons, would make it quite elegant.
There is a seperate source package for nautilus-burner in ubuntu, I may have a look at this if I get a chance.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.