News:

Rule #1 - Be Patient - Rule #2 - Don't ask when, if you don't contribute - Rule #3 - You have coding skills - LinuxMCE's small brother is available: http://www.agocontrol.com

Main Menu

media harddrive

Started by brittney, May 16, 2008, 12:03:47 PM

Previous topic - Next topic

brittney

Ok. So now ive installed linux mce on a 20gb harddrive, and have two unused 500gbs hdds in the core. Ive made a raid out of them from the admin site. the raid is device 37 and called /dev/md0. Now i want to use this to store all media and do the sharing on the network. How would i do this the best way?

Im thinking of copying /home/* to it and then mounting it to /home. Is this the linuxmce way or is there a better way to fix it?

I dont understnd the pluto structure thingy (PK_Users) but i guess it should be like that?

cheers
-bri

brittney

Do i have to add the drive to a room??

tschak909

Use the web admin to set up and configure the RAID drives... Advanced > Configuration > RAID

If the /dev/md0 already exists, LinuxMCE should pick it up and ask what to do with it.

-Thom

brittney

yeah thats what i did.. created the raid. But it hasnt picked it up yet thou. How can i make it do that?

tschak909

it should have done this automatically.. if not, try rebooting the system.

-Thom

brittney

It didnt do it automaticly or i missed it dunno. Nothing happened when i rebooted. But i mounted it to /home and copied all the files and folders in the old /home. Which seems to work. Another question thou. When i add media to the library do i manually have to update it and put cover on every movie and so on?

cheers
-bri

tschak909

If you notice in the web admin, there is a menu for Media, and under Media, there is a menu item to scan cover art.

-Thom

brittney

ok thnx.

Ive reinstalled now a number of times. Cant get it to work as i want it. Now ive installed on one of the 500gig harddrives and the otherone isnt used. How do i make lmce notice the second harddrive? How do i put it in use??

cheers
-bri

Zaerc

Just partition and format it, then linuxmce should detect it and ask you what to do.  Unless it's already mounted somewhere manually, in wich case it will not be detected automaticly.
"Change is inevitable. Progress is optional."
-- Anonymous

[url=http://petition.stopsoftwarepatents.eu/181001941347/][/url]

brittney

Ok thnx!
i did:
dcerouter_75118:/# mkfs /dev/sdb1
mke2fs 1.40.2 (12-Jul-2007)
/dev/sdb1 is apparently in use by the system; will not make a filesystem here!

so it didnt work. I might have to reboot it thou after i partitioned it. Rebooting atm.

-bri

brittney

hmm its strange. after reboot, /dev/sdb1 disapears but /dev/sdb is there. but in fdisk it says /dev/sdb1 is there.


dcerouter_75118:~# ls /dev/sd*
/dev/sda  /dev/sda1  /dev/sda2  /dev/sda5  /dev/sda6  /dev/sdb

dcerouter_75118:~# fdisk /dev/sdb

The number of cylinders for this disk is set to 60801.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): p

Disk /dev/sdb: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x59ccd228

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1       60801   488384001    5  Extended

Command (m for help): q



tschak909

***Siiiggghhhh*****

your partition table is horribly wrong.

how many disks are in your RAID?

and do you know which /dev entries they are?

-Thom

Zaerc

Looks like you only have an "extended" partition on that drive, that's not going to work as these are intended to contain other partitions and not filesystems. 

Delete it and create a normal (linux is usually the default) partition with fdisk, then format it.  I'd reccomend using mkfs.ext3 (or at least specify the -j option) to get a journalled ext3 filesystem.  Also recommended is running "tune2fs -c0 <partition>" afterwards to prevent the disk from being checked at boot more then necessary.
"Change is inevitable. Progress is optional."
-- Anonymous

[url=http://petition.stopsoftwarepatents.eu/181001941347/][/url]

tschak909

the disks were set to be RAID...

... the partitions need to be deleted....

the Raid device needs to be deleted from Advanced > Devices > Configuration

and it needs to be re-created

-Thom

brittney

no i tried raid before. But i didnt get linux mce to use it. This time i removed the small OS disc and installed LMCE on one of the 500 gigs. On the other 500gig harddrive i partitioned it first to be a primary partition. When i tried mkfs on it it said it was in use as the error msg i posted, and it was called /dev/sdb1. The disk that lmce is installed on is /dev/sda and has lots of partitions. When i rebooted in an attempt to make the system release the partition /dev/sdb1 disapered. But when i looked in fdisk it was there. The message i pasted was from when i tried extended partition because the primary didnt work. But it showed the same error that it was busy. And when i rebooted the /dev/sdb1 wasnt there.

-bri