View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 13 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
 Post subject: Mount a hard drive
PostPosted: Sat Oct 21, 2006 9:17 pm 
Offline
Joined: Thu Oct 19, 2006 4:38 pm
Posts: 20
Location: CT
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?


Top
 Profile  
 
 Post subject:
PostPosted: Sat Oct 21, 2006 9:44 pm 
Offline
Joined: Sun Jun 12, 2005 10:55 pm
Posts: 3161
Location: Warwick, RI
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


Top
 Profile  
 
 Post subject:
PostPosted: Sat Oct 21, 2006 10:21 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
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".


Top
 Profile  
 
 Post subject:
PostPosted: Sat Oct 21, 2006 11:05 pm 
Offline
Joined: Sun Jun 12, 2005 10:55 pm
Posts: 3161
Location: Warwick, RI
Hi,
Go with the "force" follow the wiki ... http://knoppmythwiki.org/index.php?id=K ... ualinstall
Mike


Top
 Profile  
 
 Post subject: Solved?
PostPosted: Sat Oct 21, 2006 11:28 pm 
Offline
Joined: Thu Oct 19, 2006 4:38 pm
Posts: 20
Location: CT
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?


Top
 Profile  
 
 Post subject:
PostPosted: Sat Oct 21, 2006 11:35 pm 
Offline
Joined: Thu Oct 19, 2006 4:38 pm
Posts: 20
Location: CT
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


Top
 Profile  
 
 Post subject:
PostPosted: Sun Oct 22, 2006 1:20 am 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
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.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Oct 22, 2006 11:16 am 
Offline
Joined: Sun Jun 12, 2005 10:55 pm
Posts: 3161
Location: Warwick, RI
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

(I highly recommend a journalling fs for /dev/hda4)
note:previously was /myth partition, versions BCD, it is xd3
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


Top
 Profile  
 
 Post subject: OK small problem
PostPosted: Sun Oct 22, 2006 12:52 pm 
Offline
Joined: Thu Oct 19, 2006 4:38 pm
Posts: 20
Location: CT
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?


Top
 Profile  
 
 Post subject:
PostPosted: Sun Oct 22, 2006 2:11 pm 
Offline
Joined: Sun Jun 12, 2005 10:55 pm
Posts: 3161
Location: Warwick, RI
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


Top
 Profile  
 
 Post subject: OK
PostPosted: Sun Oct 22, 2006 8:09 pm 
Offline
Joined: Thu Oct 19, 2006 4:38 pm
Posts: 20
Location: CT
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?


Top
 Profile  
 
 Post subject:
PostPosted: Sun Oct 22, 2006 8:23 pm 
Offline
Joined: Sun Jun 12, 2005 10:55 pm
Posts: 3161
Location: Warwick, RI
Hi
as root
# chown mythtv:mythtv /myth/store
also
# chown mythtv:mythtv /myth/store/*

see if that helps
Mike


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 23, 2006 8:19 pm 
Offline
Joined: Thu Oct 19, 2006 4:38 pm
Posts: 20
Location: CT
Woot! Thanks that fixed it


Top
 Profile  
 

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


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 37 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:  
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu