LinHES Forums http://forum.linhes.org/ |
|
Mount a hard drive http://forum.linhes.org/viewtopic.php?f=2&t=12267 |
Page 1 of 1 |
Author: | Fizzy [ Sat Oct 21, 2006 9:17 pm ] |
Post subject: | Mount a hard drive |
Hoping that someone can help me here. I am trying to mount a 320gb ATA 100 drive in R5D1. I dont want to do LVM because i dont really need the space that is on drive one. I tried mount -t ext3 /dev/sda1 /myth/tv but I keep getting an error that says dev/sda1 is not a valid block device what am i doing wrong? |
Author: | mjl [ Sat Oct 21, 2006 9:44 pm ] |
Post subject: | |
Hi, Is it a serial drive / usb drive? Quote: mount -t ext3 /dev/sda1 /myth/tv ATA is usually an ide drive. What position is really in?
Did you format it? Did you make a special home for it in /myth? Looks like you want to mount it over the the original tv folder. Did you tell /etc/fstab that it has a new hard drive that it can use and how? LVM is not a requirement for a second drive. Again, check the wiki as there is guidence to most of the above questions. Mike |
Author: | tjc [ Sat Oct 21, 2006 10:21 pm ] |
Post subject: | |
Back to the dmesg output which we used to identify your optical drives. This time you're looking for "DISK drive". Code: root@black2:~# dmesg | grep 'DISK drive'
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize hda: ST3250823A, ATA DISK drive hdb: ST3250823A, ATA DISK drive If it's a PATA drive you should see something like that, for a SATA or SCSI drive the lines will start with sd. As mjl noted you need to format the drive. and create an empty filesystem on it. There are directions around here somewhere if you search for "format" (or possibly "cformat") and "mkfs". |
Author: | mjl [ Sat Oct 21, 2006 11:05 pm ] |
Post subject: | |
Hi, Go with the "force" follow the wiki ... http://knoppmythwiki.org/index.php?id=K ... ualinstall Mike |
Author: | Fizzy [ Sat Oct 21, 2006 11:28 pm ] |
Post subject: | Solved? |
OK here is what I did dmesg | grep 'DISK drive' and it showed two disks (i left that numbers out) hda: Maxtor , ATA DISK drive hdb: , ATA DISK drive hdb was the one i had just added. so I cfdisk /ddv/hdb choose to make one partition and hit W to write it then mkfs -t ext3 /dev/hdb1 then mount -t ext3 /dev/hdb1 /myth/tv so, it did not complain. Did I do this right? was looking for just one large partition to store media for KM on hdb. how would I check if I have the space I hope i do? |
Author: | Fizzy [ Sat Oct 21, 2006 11:35 pm ] |
Post subject: | |
looking back at this, will I be able to use samba to move files to myth/videos and use the hdb space? I was thinking that since I told it to send everything to myth/tv that I may not be able to use hdb for storage for files in myth/videos |
Author: | tjc [ Sun Oct 22, 2006 1:20 am ] |
Post subject: | |
For best results folks usually create the filesystem with "sparse supeblocks", i.e. setting it up for a relatively few large files, however what you did should work just fine. |
Author: | mjl [ Sun Oct 22, 2006 11:16 am ] |
Post subject: | |
Hi, The original Pamphlet that Cecil created handles many of the install methods. That was the reason for suggesting a visit to that great reference document. Grabing a line from it which was used in days of old: Quote: # mke2fs -j -O sparse_super -m0 -i8000000 -L myth -M /myth /dev/hda4 note:previously was /myth partition, versions BCD, it is xd3
(I highly recommend a journalling fs for /dev/hda4) With a moment to examine it, this was recommended because of the large video files, and the method of handling them. Maybe it even saves a few bytes of space for an extra recording because of the lower number of inodes.. don't know but better minds than mine suggest it, then it works for me. Manually for a second drive just change a couple of things and it still works. # mke2fs -j -O sparse_super -m0 -i8000000 -L store -M /myth/store /dev/hdb1 (you can make up your own name ![]() After reviewing the man mke2fs I think this is valid. Then I would do a: #mkdir /myth/store #chown mythtv:mythtv /myth/store Now add to: #echo "/etc/fstab /dev/hdb1 /myth/store ext3 auto,users,exec 0 0" >> /etc/fstab If you have current recordings to keep, cp them into /myth/video (with matching png) and then properly remove the /myth/tv files before switching area. This way you would have all the space on the /myth partition useable for everything except live recordings which would have it's own private drive /myth/store At this point I would suspect that all would be remaining is to tell KM that you want to use that area as your record area storage alt s > General > change /myth/tv to /myth/store #mount /myth/store Hopefully some of the visually alert folks will check for errors, but this should work. I have done this, just not for the main tv records. Simple short cut, you will loose a couple of gig, but remove hda, swap hdb into be primary, auto install KM. when it goes for the reboot, switch back. It would be formatted and ready with the only thing that would change is the drive partition number. #echo "/etc/fstab /dev/hdb3 /myth/store ext3 auto,users,exec 0 0" >> /etc/fstab And you have a backup copy of the system (before setup on hdb1) Mike |
Author: | Fizzy [ Sun Oct 22, 2006 12:52 pm ] |
Post subject: | OK small problem |
OK this is what I did # mke2fs -j -O sparse_super -m0 -i8000000 -L store -M /myth/store /dev/hdb1 #mkdir /myth/store #chown mythtv:mythtv /myth/store #echo "/etc/fstab /dev/hdb1 /myth/store ext3 auto,users,exec 0 0" >> /etc/fstab #mount /myth/store but I get the following errors mtent line 12 in/etc/fstab is bad mtent line 13 in/etc/fstab is bad mtent line 14 in/etc/fstab is bad mtent line 15 in/etc/fstab is bad mount: can't find /myth/store in /etc/fstab or /etc/mtab any ideas? |
Author: | mjl [ Sun Oct 22, 2006 2:11 pm ] |
Post subject: | |
Hi, That is what some times occurs when I type faster than I think... #echo "/etc/fstab /dev/hdb1 /myth/store ext3 auto,users,exec 0 0" >> /etc/fstab ... the /etc/fstab slipped in pre maturly. as root nano /etc/fstab and simply delete /etc/fstab Then you should be able to mount it. Sorry 'bout that. Mike |
Author: | Fizzy [ Sun Oct 22, 2006 8:09 pm ] |
Post subject: | OK |
Things seem to work OK. when I do dj -h it shows both HD and that the 320 is mounted /myth/store I can copy files over the network via Samba but only to the hda. everytime i try and copy to the new dir /myth/store it says Access denied I can copy items to the /myth/music folder but they appear to be going to the hda. Is this a Samba permission thing or a hard drive config thing? |
Author: | mjl [ Sun Oct 22, 2006 8:23 pm ] |
Post subject: | |
Hi as root # chown mythtv:mythtv /myth/store also # chown mythtv:mythtv /myth/store/* see if that helps Mike |
Author: | Fizzy [ Mon Oct 23, 2006 8:19 pm ] |
Post subject: | |
Woot! Thanks that fixed it |
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |