Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Hi. I'm sure this is basic stuff, but I can't find anything about it in google, or in the forum here. I have a DVD RAM which has been written to once by a linux system, but now the linux system does not recognise it. I want to use it for my backups, and as I understand it it should just appear as another volume. I'm assuming that the disk is corrupt ( I think I might have written to it using k3b in desperation in the middle of the night trying to back up my system some time ago! )
So, my questions are
How do I find which device my DVD drive is, /hda/... whatever so I can do something to it?
Once I know which one it is, how do I format it?
Once I have formatted it how do I mount it so I can find it if the system doesn't do it automatically?
I am running Fedora 6.
Another thing I don't understand is that fdisk, mkfs, and format all give me command not found.
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Check (as root) the /var/log/messages file for you device, maybe type something like;
cat /var/log/messages | grep DVD
As far as your other query, maybe you have a pathing issue. The two Linux commands can be found/used by typing the path where they are located. Try using 'su -' instead of 'su' so you get root's pathing and not inherit the user's pathing.
Thanks for that Lenard. I have been trying to delete the files, but without success, which is why in desperation I thought it would be simpler to format the disk - I spent several hours trying to delete files! The files seem to be a mixture of ownerships, some owned by root, and some by me as an ordinary user. Every time I use rm on a directory I get an endless series of 'cannot delete files as you do not have permission to delete the file., or '... you do not have permission to alter files in this directory'. This happens even when I am logged in as root, though, of course, it happens for different files than when I am logged in as an ordinary user. I can't go through the disk manually, there are tens of thousands of files on it. I don't understand why root can't delete everything, from my long ago unix experience I expected to be able to ride roughshod over permissions as root, but on this system root doesn't seem to be able to do anything with files it doesn't own, or files in directories it doesn't have permissions to alter files in.
I have tried chmod and chown to just change all of the files on the disk so I can delete them, but these commands don't recognise wild cards. I just get
chmod: cannot access `*.*': No such file or directory
chmod: cannot access `*': No such file or directory
Once again, it seems as if there must be a simple solution, but I have literlly spent hours on this one stupid problem, poring over the rm man pages, and googling for solutions. If there were a corner shop which sold DVD RAMS I would long ago have moved on!
Last edited by triplemaya; 11-15-2006 at 11:27 PM.
Now the medium can be simply attached to the file system with 'mount' then recorded. Do not forget to remove the medium from the system with umount. Otherwise some data loss might occur. You may use a different file system if you want to read data under other operating systems, too.
Thanks for that bigrigdriver. My one last query is about the device. I am a bit nervous about using mkfs without being able to confirm that hda is indeed the dvd and not the hard drive! Is there any way to check this?
Thanks Lenard. Did that, ( doh, so simple! ) and yes, it is hda.
( I found out why I couldn't delete the files, they didn't have an owner. Not even root can do anything with them it seems. )
mke2fs -b 2048 /dev/hda
which worked. Unfortunately, the disk cannot now be mounted from the graphical interface, because it is the wrong kind of file system. That's what the error message says " wrong fs type, bad option, ..."
However, I can mount it from the command line ok.
I'm guessing that some automatic process, automount?, no longer works with this disk, so it won't be so useful as a daily backup. I'm also guessing that it would need to be a udf file system for automount to work.
There is no mkudffs on this system, it doesn't seem to exist in fedora.
I tried making a dos file system, but it just produced a segmentation fault.
I've googled for how to make a udf file system under fedora, but I'm not finding anything, maybe it doesn't exist?
Please could someone tell me what to do next so I can use this disk the way I used to be able to.
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
You formatted the media as ext2 from what you posted once, is it still ext2 or did you change this??? If the media is formatted as ext2 then is OK and you should be able to read/write/delete files on the media with the proper permissions of course. You might want to edit the /etc/fstab and change the entry to allow writing (see man mount for the details) to the ext2 formatted and mounted media.
I'm not sure if the Fedora Core 6 kernel supports writing to udf formatted media or not, but it is possible (still a bit experimental but does work). Please check your /boot/config-<kernel_version#> file for udf (or packet) write support, your looking for something like;
The format command is mkudffs. In the Ubuntu repository it is part of the package udftools (I think). Perhaps there is something similar in the Fedora repository.
If you work with DVD-RAM you should use UDF.
UDF is more suitable for DVD-RAM: The number of times you can rewrite a DVD-RAM is limited. If you delete and rewrite a file UDF tries to spread the writes equally over the media, ext2/3 does not.
In other words: DVD-RAMs live longer with UDF :-)
Thanks Lenard. This was what I wanted to do, but I could find no way of formatting a disk with UDF in fedora. I got a bit discouraged in the end. I could write to it as it was, but all my automount stuff was gone, so mounting disks or usb keys was a real pain. Since the whole project was centered around moving off that computer I eventually abandoned that pc and moved on, according to plan. I feel a bit the wiser, but in general I feel like leaving well alone in future!
Last edited by triplemaya; 11-26-2006 at 04:24 AM.
Thanks vimico. I have done a fair bit of googling, and fedora doesn't seem to have an equivalent of mkudffs, though it certainly uses a UDF disk ok, new disks seem to come formatted in UDF. Each distro certainly has its quirks! I was considering going over to ubuntu, since it is so highly regarded, but it fell at the first hurdle. I did a nice new install of Dapper Drake, changed the screen resolution to 1280x800 to match my widescreen monitor - pttt, total freeze! Had to switch off at the mains. Surely I thought, a momentary glitch, but no. It was a consistent problem. I decided to stay with fedora for the time being!