[mythtv-users] Re: How to add an additional disk drive to Myth

John F DeLuca mythtv at johnfdeluca.com
Mon Jan 12 14:16:18 EST 2004


I've realized that LVM is perhaps more than I need to simply add a disk to 
my linux setup for  use exclusively by recordings.  So I used fdisk to 
create the partition, mkfs to format the drive partition, edited my 
/etc/fstab to add the drive partition and mounted the drive.  I then 
copied my recordings from where the were to the new mount and went into 
mythtvsetup to drict future recordings to be located in my new partition. 
I fired up the front end and went to watch recordings and to my delight, 
my existing recordings were there (thanks to the copy).

For a linux newbie, this seemed like a daunting task (what I would not 
sweat in Windows) but if you know what to do, it's a piece of cake.  I 
didn't write down my exact tasks, but from memory, I've recaptured them 
here.  Of course, this will be obvious to most of you, but I wanted to 
note it for the newbie....please add appropriate comments if I've noted 
something wrong or took the wrong course of action.

Assumes ide environment vs. scsi
Note.....you will destroy all the data on the new drive you want to add 
and if you screw up, you could even screw up your Myth/Linux drive too, so 
make a backup first (which of course I didn't)

Create partition:
# fdisk /dev/hdX (where X = my new drive:  hda is primary ide master, hdb 
is primary slave, hdc is secondary master and hdd is secondary slave)
option n to create  a new partition
primary partition (option n)
Y (where Y is my partition selection (I chose option 1 for the 1st 
partition)
option w to write to disk (no turning back here)

# mkfs.ext3 -T largefile4 -m 0 /dev/hdXY   (where X = new drive and Y is 
partition number)
(used the following site for help: 
http://www.mythtv.org/docs/mythtv-HOWTO-22.html#ss22.4

# gedit /etc/fstab
added a line in fstab
(used the following site for help: 
http://www.humbug.org.au/talks/fstab/fstab.html
 /dev/hdX1               /john                   ext3    defaults        0 
0 
note....the /john is the mountpoint I chose

Next mount the drive so Linux sees it (still an odd concept to me)
# mount  /john (where /john is the mountpoint I defined above)

next, copy my recordings from their current location to the new drive
#cp -a /var/lib/mythtv/* /john   (where /var.lib/mythtv is the location of 
my recordings as defined in mythtvsetup  step 1 page 2)

Now go into mythtvsetup and have mythtv store recordings in the new drive
# mythtvsetup
Under General, page to "Where to store recodings"  /john

Finish


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mythtv.org/pipermail/mythtv-users/attachments/20040112/1a572dbc/attachment.htm


More information about the mythtv-users mailing list