07-08-2008
if you add a disk to a zpool it will get a new layout and new label. therfore ALL data on the disk will be lost.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Dear All
How to read the data on my cd and save these data in a dpecial folder
Regards (0 Replies)
Discussion started by: sak900354
0 Replies
2. Shell Programming and Scripting
I have limited bandwidth in my apartment and no cable TV service. I was wondering if it is possible to write a script that would download the video data from my favorite TV shows (legally... many networks post their videos online for free) while I sleep, so that later I can watch them on my TV... (5 Replies)
Discussion started by: euclid3628800
5 Replies
3. Homework & Coursework Questions
Im trying to come up with a simple shell script to display info about the current user.`pwd`; `date` ; `who am i`
I want to give the option to save all the data thats display by the commands to a log file. With a timestamp as the name of the file
This is where im stuck
echo "Would you like to... (3 Replies)
Discussion started by: eddieq20
3 Replies
4. UNIX Desktop Questions & Answers
Hi
I am new to linux, when I typed "vi FILE1" I was able to open VI editor. I added some data and I want to save the file and I tried :w but it threw me an error.
"file1" E212: Can't open file for writing
Press ENTER or type command to continue
why I am not able to save it?
I read it... (16 Replies)
Discussion started by: chinnanji
16 Replies
5. Shell Programming and Scripting
Hi all;
I have the following code which gives me kind of what I need:
#!/usr/bin/perl
use Fcntl ':mode';
#
if ($ARGV ne "") {
$filename = $ARGV;
} else {
print "Please specify a file!\n";
exit;
}
#
if... (2 Replies)
Discussion started by: gvolpini
2 Replies
6. Emergency UNIX and Linux Support
Hi all,
A customer has a very active ZFS partitionon their production system, I need to get a copy of the data under one directory at a specific point in time.
Is it possible to do this with the ZFS snapshot/clone tools, (and what commands should be used to capture the info I require for... (6 Replies)
Discussion started by: Skrynesaver
6 Replies
7. Shell Programming and Scripting
Hello,
I have the following data format in a log file :
a : x1
b : x2
c : x3
d : x4
--------
a : x5
b : x6
c : x7
d : x8
so the same fields ( a ,b ,c,d) repeated many times in the same log file but with different "x" values (x5,x6,x7,x8).
I need a script to save this data in an... (6 Replies)
Discussion started by: mm00123
6 Replies
8. UNIX for Advanced & Expert Users
My requirement is to read a column data from a file & save it in a variable for each row & process it. I am using the below code-
Leadlines="$TGTFILE/Error.txt">>$log_file
while read line
do
id = ` echo $line | cut -d "," -f1 `
email = ` echo $line | cut -d "," -f2 `
-----------
done
My... (2 Replies)
Discussion started by: saga20
2 Replies
9. Shell Programming and Scripting
Hi All
I would like to get cars DB from this web site link removed , and I am trying to right script to go and parse the web page and save the data for each cars into a file, type of cars, mark, model, but when I look to the source page I found out that the first car type is preselected and the... (3 Replies)
Discussion started by: molwiko
3 Replies
10. UNIX for Dummies Questions & Answers
If I have a A.log
1 Air Flow Monitor : 34.070 Degrees C
2 Air Flow Monitor : 41.730 Degrees C
3 Air Flow Monitor : 35.340 Degrees C
4 Air Flow Monitor : 33.370 Degrees C
5 Air Flow Monitor : 36.770 Degrees C
6 Air Flow Monitor : 45.910 Degrees C
7 Air Flow Monitor ... (1 Reply)
Discussion started by: sabercats
1 Replies
LEARN ABOUT NETBSD
mbrlabel
MBRLABEL(8) BSD System Manager's Manual MBRLABEL(8)
NAME
mbrlabel -- update disk label from MBR label(s)
SYNOPSIS
mbrlabel [-fqrw] [-s sector] device
DESCRIPTION
mbrlabel is used to update a NetBSD disk label from the Master Boot Record (MBR) label(s) found on disks that were previously used on
DOS/Windows systems (or other MBR using systems).
mbrlabel scans the MBR contained in the very first block of the disk (or the block specified through the -s flag), then walks through every
extended partition found and generates additional partition entries for the disk from the MBRs found in those extended partitions.
Each MBR partition which does not have an equivalent partition in the disk label (equivalent in having the same size and offset) is added to
the first free partition slot in the disk label. A free partition slot is defined as one with an fstype of 'unused' and a size of zero
('0'). If there are not enough free slots in the disk label, a warning will be issued.
The raw partition (typically partition c, but d on i386 and some other platforms) is left alone during this process.
By default, the proposed changed disk label will be displayed and no disk label update will occur.
Available options:
-f Force an update, even if there has been no change.
-q Performs operations in a quiet fashion.
-r In conjunction with -w, also update the on-disk label.
-s sector Specifies the logical sector number that has to be read from the disk in order to find the MBR. Useful if the disk has remapping
drivers on it and the MBR is located in a non-standard place. Defaults to 0.
-w Update the in-core label if it has been changed. See also -r.
SEE ALSO
disklabel(8), dkctl(8), fdisk(8), mbr(8)
HISTORY
The mbrlabel command appeared in NetBSD 1.4.
BSD
April 5, 2010 BSD