Author |
Message |
TVBox
|
Posted: Mon May 20, 2013 3:13 am |
|
Joined: Mon Apr 23, 2007 1:45 pm
Posts: 405
Location:
Fargo, ND, USA
|
How do you remove all traces of a hard drive so "add_storage.py --no_destruction" will run again? Is there a script? Storage is already in use or previously skipped:
Drive is partitioned GPT and formatted EXT3 with data on it. (Edit)>>> I do not want to destroy this data. 1.5TB Home movies and DVD.iso No partitions are mounted no trace of it in fstab
TVBox
_________________ TVBox LinHES R8.6.1
Last edited by TVBox on Mon May 20, 2013 12:39 pm, edited 2 times in total.
|
|
Top |
|
|
RacerX
|
Posted: Mon May 20, 2013 10:20 am |
|
Joined: Sun Sep 05, 2004 7:06 pm
Posts: 690
|
I suppose the problem is that the master boot record is still out there. To investigate try using gdisk Code: gdisk /dev/sd** GPT fdisk (gdisk) version 0.7.2 Partition table scan: MBR: MBR only BSD: not present APM: not present GPT: present Found valid MBR and GPT. Which do you want to use? 1 - MBR 2 - GPT 3 - Create blank GPT Code: Create a partition then use use Expert Menu Code: Command (? for help): x Expert command (? for help): z About to wipe out GPT on /dev/sd**. Proceed? (Y/N): y GPT data structures destroyed! You may now partition the disk using fdisk or other utilities. Blank out MBR? (Y/N): y you'll be left with a completely unpartitioned disk Code:
|
|
Top |
|
|
TVBox
|
Posted: Mon May 20, 2013 12:30 pm |
|
Joined: Mon Apr 23, 2007 1:45 pm
Posts: 405
Location:
Fargo, ND, USA
|
I did not provide enough information. The data on the disk I do not want to destroy. 1.5TB Home movies and DVD.iso TVBox
_________________ TVBox LinHES R8.6.1
|
|
Top |
|
|
jams
|
Posted: Mon May 20, 2013 1:25 pm |
|
|
Site Admin |
Joined: Fri Jun 11, 2004 7:58 am
Posts: 507
|
The list of drives already scanned is stored in /etc/storage.d/storage.pkl. Remove that file and then run add_storage.py --no_destruction (make sure the text says ** Preserving existing data ** will not format or partition)
Drives that are already mounted or in fstab will be skipped and readded to the pkl file
|
|
Top |
|
|
TVBox
|
Posted: Mon May 20, 2013 9:27 pm |
|
Joined: Mon Apr 23, 2007 1:45 pm
Posts: 405
Location:
Fargo, ND, USA
|
I deleted /etc/storage.d/storage.pkl and add_storage.py --no_destruction will now run. Thanks Jams
One problem solved another one poked its head up.
I originally set this drive up to be the system drive with 4 partitions (system, swap, Myth,and My movies) due to the changes in R8 and other hardware changes I deleted Partition 1 and 2 and made it a data drive.
When I run "add_storage.py --no_destruction" it reply's Drive: WDCWD20EARS could not find UUID for device: /dev/sdc1
and it stops there, which is correct there is no partition 1 only 3 & 4. I can understand that, how many hard drives have only partitions 3 & 4. If I added partition 1 & 2 back in, would the "no_destruction" script be able to handle multiple partitions (sdc1, sdc2, sdc3, sdc4)
TVBox
_________________ TVBox LinHES R8.6.1
|
|
Top |
|
|
jams
|
Posted: Mon May 20, 2013 10:27 pm |
|
|
Site Admin |
Joined: Fri Jun 11, 2004 7:58 am
Posts: 507
|
Sadly I think your out of luck for using add_storage.py. The add_storage script assumes it's working with the first partition and ignores everything else.
I suggest adding the disk without using the add_storage.py script. Then if you want the extra things that add_storage gives like auto file sharing create the conf files in /etc/storage.d. The name of the files doesn't matter, just that it ends in .conf. Take a look at the other files in the dir it should be easy to follow along.
|
|
Top |
|
|
TVBox
|
Posted: Thu May 30, 2013 2:32 am |
|
Joined: Mon Apr 23, 2007 1:45 pm
Posts: 405
Location:
Fargo, ND, USA
|
Another hard drive related problem. My machine has R8 installed on a 16GB Solid State drive. I have installed a 3TB Hard Drive using the script add_storage.py which wiped the drive and added it into the storage groups of Mythtv. So what I have is recordings and videos are being stored on the system solid state 2 GB partition and on the 3 TB Hard drive. This seems to work fine for mythtv because it ignores the 2GB and puts every thing on the larger 3TB Hard drive.
Here is the problem. I tried to "Backup DVD >> ISO of DVD (or any other selection on that screen)" and it writes to the 2GB system drive. Everything goes fine until it runs out of space on that drive. The "Backup DVD" program dos not seem to know that the larger hard drive is setting there almost empty.
Is there some place that I can change the location that the "Backup DVD" program saves the files it is creating.
TVBox
_________________ TVBox LinHES R8.6.1
|
|
Top |
|
|
jams
|
Posted: Thu May 30, 2013 7:19 am |
|
|
Site Admin |
Joined: Fri Jun 11, 2004 7:58 am
Posts: 507
|
edit /usr/LH/bin/ripD_eject.sh and change the value of Ddir
OR change the symlink of /myth
|
|
Top |
|
|
mattbatt
|
Posted: Sun Jan 19, 2014 1:29 pm |
|
Joined: Tue Aug 15, 2006 11:14 am
Posts: 1343
Location:
Orlando FL
|
jams wrote: Sadly I think your out of luck for using add_storage.py. The add_storage script assumes it's working with the first partition and ignores everything else.
I suggest adding the disk without using the add_storage.py script. Then if you want the extra things that add_storage gives like auto file sharing create the conf files in /etc/storage.d. The name of the files doesn't matter, just that it ends in .conf. Take a look at the other files in the dir it should be easy to follow along. Thanks Jams you answered my question about why my old R7 drive was only showing up as the root partition and not the data partition. Since the standard R7 install was 3 partitions it seems odd that add_storage is being recommended in every upgrade manual without the caveat that it won't add the standard "/myth" partition, maybe you could have a word with the big guy and suggest that it's mentioned in the upgrade guide. Also since the new partition layout is so different with R8 is there anywhere specific I should or shouldn't mount my partitions to?
_________________ My System
|
|
Top |
|
|