View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 12 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Tue May 29, 2007 11:58 am 
Offline
Joined: Sun May 27, 2007 11:51 am
Posts: 33
Location: Kentucky, USA
I just restarted MythTV and noticed that the show I had previously recored was no longer there. I went into [Manage>>Delete Recordings] and it says that I have 0% Used and 0GB free and I know this can't be true.

I also went into [Information>>System Status>>Machine Status] and its says that I have 69GB total, 689MB used, 69GB (or 99%) free. They can't both be right.

I know that MythTV uses 3 partitions. 1 for the OS, 1 Swap file, and 1 for everything else. Could one of the partitions somehow gotten mixed up with another? Should I reformat/reinstall again?

After I rebooted a couple time I noticed that I had the following error but I don't know if its related or not.
Code:
"Mounting local filesystems...mount: sysfs already mounted or /sys busy"
"failed"

Could somebody please give me some insight into whats going on?
Please understand that I am still new to linux so be gentle with me.
Thanks in advance

_________________
LinuxTips - Introduction to terminology
http://www.knoppmythwiki.org/index.php?page=LinuxTips


Last edited by mojoJOJO on Fri Jun 01, 2007 12:12 am, edited 4 times in total.


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 29, 2007 12:29 pm 
Offline
Joined: Sun May 27, 2007 11:51 am
Posts: 33
Location: Kentucky, USA
Near as I can tell, the only thing that I did recently that could have possibly had any affect on this whatsoever was that yesterday I fixed my choppy DVD playback issue by doing the following...................

These are the steps I took as best as I can remember them.

1 = First opened up the console by pressing CTRL+ALT+F1 then logged in as "root"
2 = At the console typeed in "nano /etc/hdparm.conf" to open the file with the text editor.
3 = At the very bottom of the file added the command to enable DMA by typing in the following..................................
Code:
command_line {
   hdparm -d1 /dev/dvd
}


4 = Then saveed the file by pressing CTRL+O and exit by pressing CTRL+X
5 = Then made the file update by typing in "update-rc.d hdparm defaults"
6 = Then restarted the file to make the settings take effect by typing in "/etc/init.d/hdparm restart"

I went through the hdparm.conf and looked again, but didn't see anything that could have caused this problem. Again, I don't think that this had anything to do with it, but its the only thing I can think of that could have even had a possibility of causing me to loose my disk space.

Any help or insight would be greatly appreciated.
Thanks

_________________
LinuxTips - Introduction to terminology
http://www.knoppmythwiki.org/index.php?page=LinuxTips


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 29, 2007 9:41 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
Are the drives detected at boot? What does this show?
Code:
dmesg | grep hd[abcd]

Are they mounted in the right place? What do these show?
Code:
mount
df


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 30, 2007 4:53 am 
Offline
Joined: Sun May 27, 2007 11:51 am
Posts: 33
Location: Kentucky, USA
Quote:
dmesg | grep hd[abcd]

The above shows a bunch of stuff that scrolls by too fast to catch it all. But what I do see shows a bunch of errors.

Code:
Adding 674720k swap on /dev/hda2. Priority:-1 extents:1 across:674720k
EXT FS on hda1, internal journal
EXT FS on hda3, internal journal

then the following repeated over and over again..................................
Code:
hda: dma_intr: status=0x51 { DriveReady SeekComplete Error }
hda: dma_intr: error=0x84 { DriveStatusError BadCRC }

I also see 1 listing of the following in between the repeated lines listed above.
Code:
hdb: DMA disabled


Mount shows the following.........................
Code:
/dev/hda1 on / type ext3 (rw,errors=remount-ro)
/dev/hda3 on /myth type ext3 (rw)
usbfs on /proc/bus/usb type usbfs (rw,devmode=0666)
tmpfs on /dev/shm type tmpfs (rw)
/dev/hdb on /cdrom type iso9660 (ro,noexec,nosuid,nodev,user=mythtv)


df shows the following..............................
Code:
Filesystem      1K-blocks       Used      Available    Use%      Mounted on
/dev/hda1       4828768     1773256    2810924       39%       /
/dev/hda3      72574708    1037944   71536764        2%       /myth
tmpfs               223584                4      223580        1%       /dev/shm
/dev/hdb         570628       570628               0     100%      /cdrom


Thanks for the help, if you need to know anything else please let me know.

_________________
LinuxTips - Introduction to terminology
http://www.knoppmythwiki.org/index.php?page=LinuxTips


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 30, 2007 9:46 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
I really don't like those DMA errors associated with /dev/hda and I strongly suspect that the problem is between the init script you enabled and the config file not being properly setup up for your hard drive. My first move would be to try disabling it to see if the problem goes awy.

Also try changing the config file for the hdparm init script to use the real drive device /dev/hdb instead of the symlink.


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 31, 2007 4:13 am 
Offline
Joined: Sun May 27, 2007 11:51 am
Posts: 33
Location: Kentucky, USA
Thanks for the reply.
I have absolutely no idea how to go about doing any of that. Like I said I am still new to linux.
Could you give me some more detail about what I need to type? I have only just learned how to even change directories with linux much less anything more complex than that.
I know a Symlink is a Symbolic Link that points from one file or directory to another, but I don't really know how to go about making any changes to them. What files do I need to open and what should I type in those files once I get to them?

I'm just guessing, but I am guessing that I need to edit "/etc/hdparm.conf"
Instead of it saying..............
Code:
command_line {
   hdparm -d1 /dev/dvd
}

You are telling me to have it say............
Code:
command_line {
   hdparm -d1 /dev/hdb
}

I am guessing that /dev/dvd is a symbolic link for /dev/hdb
Am I guessing correct or am I totally missing the point?

_________________
LinuxTips - Introduction to terminology
http://www.knoppmythwiki.org/index.php?page=LinuxTips


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 31, 2007 7:31 am 
Offline
Joined: Wed Nov 16, 2005 8:55 pm
Posts: 1381
Location: Farmington, MI USA
mojoJOJO wrote:
I'm just guessing, but I am guessing that I need to edit "/etc/hdparm.conf"
Instead of it saying..............
Code:
command_line {
   hdparm -d1 /dev/dvd
}

You are telling me to have it say............
Code:
command_line {
   hdparm -d1 /dev/hdb
}

I am guessing that /dev/dvd is a symbolic link for /dev/hdb
Am I guessing correct or am I totally missing the point?
Correct, assuming /dev/hdb is your DVD drive.

If that doesn't work, note tjc's first suggestion:
tjc wrote:
I really don't like those DMA errors associated with /dev/hda and I strongly suspect that the problem is between the init script you enabled and the config file not being properly setup up for your hard drive. My first move would be to try disabling it to see if the problem goes awy.
in which he is saying to revert whatever changes you have made (get back to square one).


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 31, 2007 7:52 am 
Offline
Joined: Sun May 27, 2007 11:51 am
Posts: 33
Location: Kentucky, USA
In oder to undo the changes I made do I have to simply delete............
Code:
command_line {
   hdparm -d1 /dev/dvd
}

............from the file "/etc/hdparm.conf" and save?
Or is there more to it?
Exactly what does "update-rc.d hdparm defaults" do to the system?

_________________
LinuxTips - Introduction to terminology
http://www.knoppmythwiki.org/index.php?page=LinuxTips


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 31, 2007 8:17 am 
Offline
Joined: Wed Nov 16, 2005 8:55 pm
Posts: 1381
Location: Farmington, MI USA
mojoJOJO wrote:
In oder to undo the changes I made do I have to simply delete............
Code:
command_line {
   hdparm -d1 /dev/dvd
}

............from the file "/etc/hdparm.conf" and save?
Or is there more to it?
I don't know the extent of the changes you have made, but that would stop hdparm from running on /dev/dvd. Did you try changing that to /dev/hdb and rebooting first?

mojoJOJO wrote:
Exactly what does "update-rc.d hdparm defaults" do to the system?
It adds startup scripts to the /etc/rcX.d directories. man update-rc.d for more information. The following command would remove the hdparm startup scripts:
Code:
update-rc.d -f hdparm remove


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 31, 2007 6:44 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
mojoJOJO wrote:
Code:
command_line {
   hdparm -d1 /dev/hdb
}

Yes. that's what I meant. To verify that the smlinks are point to the right place do this (only type the first bit after the # prompt, the rest is sample output):
Code:
root@black2:~# ls -al /dev/dvd* /dev/cdr*
lrwxrwxrwx 1 root root 3 May 23 21:38 /dev/cdrom -> hdc
lrwxrwxrwx 1 root root 3 May 23 21:38 /dev/cdrw -> hdc
lrwxrwxrwx 1 root root 3 May 23 21:38 /dev/dvd -> hdc
lrwxrwxrwx 1 root root 3 May 23 21:38 /dev/dvdrw -> hdc

You should see all of these names pointing to hdb.

As for disabling the init script, use the command slowtolearn already provided:
slowtolearn wrote:
Code:
update-rc.d -f hdparm remove

Which removes another set of symlinks which point to the init script from the directories for the various run levels.

FWIW, KM uses what is called a SysV (pronounced "system five") init, where the directory /etc/init.d contains all the real scripts, and there are a number of "run level" directories /etc/rc0.d -> /etc/rc6.d which contain ordered "link farms" which point to the scripts. When you boot the system it comes up to a particular level and it gets there by going down the sorted list of scripts in the associated directory and running them one after another with "start" as the argument. It's somewhat more complcated than that but not hugely.


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 31, 2007 8:32 pm 
Offline
Joined: Sun May 27, 2007 11:51 am
Posts: 33
Location: Kentucky, USA
Thanks for the help guys, this info is going to be a great help both now and in the future. I have only been using linux for a few days now and I am already beginning to feel more comfortable with it thanks to your help.
Now if they would just make World of Warcraft and Battlefield 2142 linux compatible I would switch every system in my house over to Linux and kiss Micro$oft goodbye forever.
Soon as I get back from work I'll give your suggestions a try and see how if goes.
Thanks again for the assist.

_________________
LinuxTips - Introduction to terminology
http://www.knoppmythwiki.org/index.php?page=LinuxTips


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 01, 2007 12:03 am 
Offline
Joined: Sun May 27, 2007 11:51 am
Posts: 33
Location: Kentucky, USA
Again, thanks for the assist. I just added a new TV Tuner to my setup and decided it would be best if I just reformatted/reinstalled the entire OS. After I restarted I did everything as I did before with the exception of changing "hdparm -d1 /dev/dvd" to "hdparm -d1 /dev/hdb" as per your suggestions. After I rebooted from this, my DVD playback was perfect and my Hard Drive is still where it should be.
So either changing dvd to hdb did the trick, or there was some other random mistake I made that I did not remember doing.
Thanks for the help, the problem now seems to have been solved.

_________________
LinuxTips - Introduction to terminology
http://www.knoppmythwiki.org/index.php?page=LinuxTips


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 12 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu