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:
 Post subject: Root partition full
PostPosted: Tue Oct 11, 2005 2:19 pm 
Offline
Joined: Tue Oct 11, 2005 2:08 pm
Posts: 10
I am using a HIGHLY modified install of Knoppmyth v4r5 (or v5r4 whatever makes sense)

The problem is the 2gb root partition is about full with all the extra plugins and dependancies I have been forced to add.

My question is this.

How best to extend this partition without losing anything. Backup is a huge issue as I am more or less can't. I do have a spare 20gb drive i can load in but it is not identical to the one in the drive. It is slightly smaller (about 20-30 clusters) so a direct drive clone does not work.

here is my drive topography.

Code:
Device Boot    Start       End    Blocks   Id  System
/dev/hda1             1       273   2192841   83  Linux
/dev/hda2           274       369    771120   82  Linux swap
/dev/hda3           370       762   3156772+  83  Linux
/dev/hda4           763      2491  13888192+  83  Linux


hda3 is my live tv buffer partition. hda4 is used for composing dvd and can probably where I would like to steal disk space.

here is how my disks are filled.. Probably useless informatino but here it is anyway

Code:
Filesystem            Size  Used Avail Use% Mounted on
/dev/hda1             2.1G  1.9G  101M  96% /
/dev/root.old         2.2M  342K  1.8M  16% /initrd
/dev/hda3             3.1G   12K  3.1G   1% /cache
/dev/mythvg/mythvid   112G  102G   10G  92% /myth
/dev/hda4              14G   44M   14G   1% /myth/mythtvburn


Also, I would like to get my mysql databases and/or my logs off this filesystem since the DBs VERY corrupted when something blows up and the log files decide to fill up my root partition.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 12, 2005 5:41 am 
Offline
Joined: Wed Feb 18, 2004 9:07 pm
Posts: 89
It's not at all uncommon to have some of the root directories (/usr and /home are common choices) on a separate partition in some distributions.

Have you considered moving /usr (your MySQL database is here) to /dev/hda4? This move would free up 1.5G on my system.

At the root, as root, issue the command
Code:
df -h --max-depth=1

to see which root directories are taking up the most space. Pick one and move it. Much more sensible than extending the root partition, in my opinion.

_________________
R5Fxx

Home-Brewed Mythic Dragon Clone
200GB WD IDE /myth
2x250GB WD IDE (lvm) /myth/tv


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 12, 2005 7:01 am 
Offline
Joined: Tue Oct 11, 2005 2:08 pm
Posts: 10
I thought about that. Let me make sure i am doing this right and not missing any critical steps.

1: Move dvd burner data in hda4 to /myth/backup
cp -rp /myth/mythtvburn/* /myth/backup

2: delete hda4 partition

3: Recreate partitions (hda4=2gb and hda5=rest for example)

4: recreate filesystems

5: mount hda4 as /mnt/whatever and hda5 as /myth/mythtvburn

5: move dvd burner data back to hda5

6: move data from /usr (or whatever) to new /mnt/whatever

7: umound and remount hda4 as /usr

think thats about it

derrr hmm .. question can I make more that 4 partitions per disk in linux? Do i have to muck around with extended partitions? would it be better to use lvm to split the current partition? LVM would make it easier to move the partions around again in the future if need be.

thanks


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 12, 2005 1:01 pm 
Offline
Joined: Mon Oct 06, 2003 10:38 am
Posts: 4978
Location: Nashville, TN
you can't have more than 4 primary partition on any x86 os, but yes linux supports more than 4 partitions you just have to go to extended partitions.

_________________
Have a question search the forum and have a look at the KnoppMythWiki.

Xsecrets


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 12, 2005 1:10 pm 
Offline
Joined: Tue Oct 11, 2005 2:08 pm
Posts: 10
df -h --max-depth=1

my copy of df does not have that option. I assume you mean du.

also, am I correct in that /proc does not exist and does not really consume disk space. or is it that its rebuilt every boot.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 12, 2005 1:27 pm 
Offline
Joined: Tue Oct 11, 2005 2:08 pm
Posts: 10
would I even have to break the partition? couldn't i copy the directory in question to hda4 and hard link it to that?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 12, 2005 2:49 pm 
Offline
Joined: Tue Oct 11, 2005 2:08 pm
Posts: 10
Ok i did it. I moved /usr and now X will not start. Also, ivtv doesn't seem to be loading


I assume a permission isn't set properly somewhere even though i used cp -rp


The logs sayL
Code:
Oct 12 16:44:13 mythtv modprobe: modprobe: Can't locate module fb0
Oct 12 16:44:14 mythtv gdm[768]: gdm_slave_xioerror_handler: Fatal X error - Restarting :0
Oct 12 16:44:14 mythtv modprobe: modprobe: Can't locate module fb0
Oct 12 16:44:15 mythtv gdm[803]: gdm_slave_xioerror_handler: Fatal X error - Restarting :0
Oct 12 16:44:19 mythtv modprobe: modprobe: Can't locate module fb0
Oct 12 16:44:20 mythtv gdm[806]: gdm_slave_xioerror_handler: Fatal X error - Restarting :0
Oct 12 16:44:23 mythtv modprobe: modprobe: Can't locate module fb0
Oct 12 16:44:24 mythtv gdm[809]: gdm_slave_xioerror_handler: Fatal X error - Restarting :0
Oct 12 16:44:24 mythtv gdm[760]: deal_with_x_crashes: Running the XKeepsCrashing script
Oct 12 16:44:24 mythtv dialog: /dev/gpmctl: No such file or directory



Here is info that NO LONGER appears in the log starting. there is alot more that usually appears but i dont think it is relevant.
Code:
Oct 11 21:37:00 mythtv kernel: Linux video capture interface: v1.00
Oct 11 21:37:00 mythtv kernel: i2c-core.o: i2c core module version 2.6.1 (20010830)
Oct 11 21:37:00 mythtv kernel: i2c-algo-bit.o: i2c bit algorithm module
Oct 11 21:37:00 mythtv kernel: ivtv: ==================== START INIT IVTV ====================
Oct 11 21:37:00 mythtv kernel: ivtv: version 0.3.7 (i) loading
Oct 11 21:37:00 mythtv kernel: ivtv: Linux version: 2.4.25-chw


any ideas? 


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 12, 2005 8:14 pm 
Offline
Joined: Tue Oct 11, 2005 2:08 pm
Posts: 10
ok I'm 90% sure the /usr partition isn't mounting early enough.. it tries to detect the card before mounting the extra partitions

how do i fix?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 12, 2005 8:34 pm 
Offline
Joined: Tue Oct 11, 2005 2:08 pm
Posts: 10
The only skill i employed in this fix was counting. I moved the S19Knoppmyth-tv link to S37Knoppmyth-tv after the S35Mountall script.

It workd

i can watch tv.

I can watch recordings.

but i cannot seem to delete them. the file goes away but the entry in the database stays. since i moved the database ive got something else to fix it looks like. Is it that im loading mysql too early now also?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 12, 2005 9:17 pm 
Offline
Joined: Tue Oct 11, 2005 2:08 pm
Posts: 10
enough kludging for tonight.. apparently mythtv .17 inserts the program data into the database but doesn't create a file when it tries to record a program without hardware. I am rebooting to test stuff.

It silently fails to the end user but leave a log entry saying to the effect "file doesn't exist leaving entry in database incase video drive blew up."

you need to "touch" that file to create it so you can delete it. sure the government didn't write this program :) j/k

...still rebooting. I hope its just the manditory mount scan of my vid drive. i have rebooted ALOT today.

i was going to say microsoft but i would have probably been banned from the forum and my ISP melted down by the DoS :)

Ahh rebooted. strange. it didn't continue recording the program stopped mid record

but anyway don't hurt me :)

although it does look like im talking to my self .....


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 12, 2005 9:40 pm 
Offline
Joined: Tue Oct 11, 2005 2:08 pm
Posts: 10
blah. final question.. I will probably let you answer this one :) since its late, and work calls.

How are the rc directories executed? my box goes to initlevel 5 automatically. so are the rc folders executed as follows in order? or is there some multitasking going on?

rcS.d
rc1.d
rc2.d
rc3.d
rc4.d
rc5.d
<gui comes up and ready to rock>

Reason I am saying this is because my sql database is coming up late and going away early from what i can gather from logs. the program that didnt record above was because of a failed sql query that happened before mysql was ready for connections. mysql starts at s20 and mythbackend starts at s25 in rc2-5.

Also on reboot I am getting a couple of errors that appear to be coming from the rc5.d script

Code:
051012 23:14:53  Error at /etc/rc5.d/S20mysql\n/usr/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)'
Check that mysqld is running and that the socket: '/var/run/mysqld/mysqld.sock' exists!


These errors may have been caused by something I did last night because thats when the errors started showing up. (before i ravaged the harddrive) I was installing java and projectx for the new mythburn. I also burnt a couple of dvds. Other than that I have no clue.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 12, 2005 11:42 pm 
Offline
Joined: Wed Feb 18, 2004 9:07 pm
Posts: 89
That's a lot of replies in a brief time... sorry I haven't caught up.

You're right, "du" is the correct command, not "df"

When I originally posted the suggestion, I wasn't anticipating that you'd mount /usr from /dev/hda4 -- I intended to tell you to move /usr to /dev/hda4, then create a symlink to that folder in root:

ln -s /myth/mythtvburn/usr /usr

This approach eliminates the need to modify fstab, and lets you keep all of your other mythtvburn stuff in place. It's also the most easily reversible, in case the approach doesn't work. Sorry for not being clear.

Now that you've done it, however, it should certainly work. I can't see any obvious faults in your approach, and your problems sound like permission problems.

(I'll be unwired and on the prairie for the next five days, sorry in advance for the impending silence on my part)

_________________
R5Fxx

Home-Brewed Mythic Dragon Clone
200GB WD IDE /myth
2x250GB WD IDE (lvm) /myth/tv


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: Bing [Bot] and 21 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