Mounting is an easy process to do, provided the filesystem type you are using is supported. What happen when you have an LVM formatted disk, and you need to mount it because the disk cannot be booted and a hell lot of valuable data kept inside?? Do not worry, because the solution is here.......
1. Get a live cd, for example, Ubuntu. For this article, I use Ubuntu 6.06 (I cannot find any latest version of ubuntu at my place)
2. Boot using the live cd. Search for these tools: lvm2. If the cd do not have it, install it.
# apt-get install lvm2
3. To make sure the harddisk is recognised, you can use fdisk
# fdisk -lu
4. Once installed, run pvscan to scan all disks for physical volume. this to make sure your LVM harddisk is detected by Ubuntu
# pvscan
PV /dev/sda2 VG VolGroup00 lvm2 [74.41 GB / 32.00 MB free]
Total: 1 [74.41 GB] / in use: 1 [74.41 GB] / in no VG: 0 [0 ]
5. After that run vgscan to scan disks for volume groups.
# vgscan
Reading all physical volumes. This may take a while...
Found volume group "VolGroup00" using metadata type lvm2
6. Activate all volume groups available.
# vgchange -a y
2 logical volume(s) in volume group "VolGroup00" now active
7. Run lvscan to scan all disks for logical volume. You can see partitions inside the hard disk now active.
# lvscan
ACTIVE '/dev/VolGroup00/LogVol00' [72.44 GB] inherit
ACTIVE '/dev/VolGroup00/LogVol01' [1.94 GB] inherit
8. Mount the partition to any directory you want, usually to /mnt
# mount /dev/VolGroup00/LogVol00 /mnt
9. You can access the partition in the /mnt directory and can backup your data
(Taken from http://linuxwave.blogspot.com/2007/11/mounting-lvm-disk-using-ubuntu-livecd.html)
Thursday, June 16, 2011
Brief Notes on Enabling Samba in OpenSolaris
I've been experimenting with OpenSolaris again. I figured out how to enable my broken samba package: I discovered that, after installing the package with
pfexec pkg install SUNWsmbs SUNWsmba
I had to execute:
svccfg import /var/svc/manifest/network/samba.xml
I then copied /etc/sfw/smb.conf-example and modified appropriate values, and created a configuration file that was saved to:
/etc/sfw/smb.conf
Finally, I could enable the SAMBA server:
svcadm enable samba
(taken from: http://baitisj.blogspot.com/2008/07/quick-notes-on-enabling-samba-in.html)
pfexec pkg install SUNWsmbs SUNWsmba
I had to execute:
svccfg import /var/svc/manifest/network/samba.xml
I then copied /etc/sfw/smb.conf-example and modified appropriate values, and created a configuration file that was saved to:
/etc/sfw/smb.conf
Finally, I could enable the SAMBA server:
svcadm enable samba
(taken from: http://baitisj.blogspot.com/2008/07/quick-notes-on-enabling-samba-in.html)
Wednesday, June 1, 2011
Ubuntu nasty bug
pam update causes cron to stop working with "Module is unknown" error
https://bugs.launchpad.net/ubuntu/+source/pam/+bug/790538
https://bugs.launchpad.net/ubuntu/+source/pam/+bug/790538
Tuesday, May 31, 2011
Thursday, May 19, 2011
C# Intrinsic data types
The intrinsic types
C# type Size (in bytes) .NET type Description
byte 1 Byte Unsigned (values 0-255).
char 2 Char Unicode characters.
bool 1 Boolean True or false.
sbyte 1 SByte Signed (values -128 to 127).
short 2 Int16 Signed (short) (values -32,768 to 32,767).
ushort 2 UInt16 Unsigned (short) (values 0 to 65,535).
int 4 Int32 Signed integer values between -2,147,483,648 and 2,147,483,647.
uint 4 UInt32 Unsigned integer values between 0 and 4,294,967,295.
float 4 Single Floating point number. Holds the values from approximately +/-1.5 * 10-45 to approximately +/-3.4 * 1038 with 7 significant figures.
double 8 Double Double-precision floating point; holds the values from approximately +/-5.0 * 10-324 to approximately +/-1.8 * 10308 with 15–16 significant figures.
decimal 12 Decimal Fixed-precision up to 28 digits and the position of the decimal point. This is typically used in financial calculations. Requires the suffix "m" or "M."
long 8 Int64 Signed integers ranging from -9,223,372,036,854,775,808 to 9,223,372,036,854,775,807.
ulong 8 UInt64 Unsigned integers ranging from 0 to approximately 1.85 * 1019.
C# type Size (in bytes) .NET type Description
byte 1 Byte Unsigned (values 0-255).
char 2 Char Unicode characters.
bool 1 Boolean True or false.
sbyte 1 SByte Signed (values -128 to 127).
short 2 Int16 Signed (short) (values -32,768 to 32,767).
ushort 2 UInt16 Unsigned (short) (values 0 to 65,535).
int 4 Int32 Signed integer values between -2,147,483,648 and 2,147,483,647.
uint 4 UInt32 Unsigned integer values between 0 and 4,294,967,295.
float 4 Single Floating point number. Holds the values from approximately +/-1.5 * 10-45 to approximately +/-3.4 * 1038 with 7 significant figures.
double 8 Double Double-precision floating point; holds the values from approximately +/-5.0 * 10-324 to approximately +/-1.8 * 10308 with 15–16 significant figures.
decimal 12 Decimal Fixed-precision up to 28 digits and the position of the decimal point. This is typically used in financial calculations. Requires the suffix "m" or "M."
long 8 Int64 Signed integers ranging from -9,223,372,036,854,775,808 to 9,223,372,036,854,775,807.
ulong 8 UInt64 Unsigned integers ranging from 0 to approximately 1.85 * 1019.
Tuesday, April 26, 2011
Adriana Zarri, epitafio
«No me vistan de negro: es triste y fúnebre. Ni de blanco, porque es
soberbio y retórico. Vístanme de flores amarillas y rojas, y con alas
de pajarillos. Y Tú, Señor, mira mis manos. Tal vez me han puesto un
rosario, o una cruz. Pero se equivocaron. En las manos tengo hojas
verdes y sobre la cruz, tu resurrección. No coloquen sobre mi tumba un
mármol frío, con las mentiras acostumbradas para consolar a los vivos.
Dejen que la tierra escriba, en primavera, un epitafio de yerbas. Allí
se dirá que viví y que espero. Entonces, Señor, tú escribirás tu
nombre y el mío, unidos como dos pétalos de amapolas».
Non mi vestite di nero:
è triste e funebre.
Non mi vestite di bianco:
è superbo e retorico.
Vestitemi a fiori gialli e rossi
e con ali di uccelli.
E tu, Signore, guarda le mie mani.
Forse c’è una corona.
Forse
ci hanno messo una croce.
Hanno sbagliato.
In mano ho foglie verdi
e sulla croce,
la tua resurrezione.
E, sulla tomba,
non mi mettete marmo freddo
con sopra le solite bugie
che consolano i vivi.
Lasciate solo la terra
che scriva, a primavera,
un’epigrafe d’erba.
E dirà
che ho vissuto,
che attendo.
E scriverà il mio nome e il tuo,
uniti come due bocche di papaveri.
Adriana Zarri
soberbio y retórico. Vístanme de flores amarillas y rojas, y con alas
de pajarillos. Y Tú, Señor, mira mis manos. Tal vez me han puesto un
rosario, o una cruz. Pero se equivocaron. En las manos tengo hojas
verdes y sobre la cruz, tu resurrección. No coloquen sobre mi tumba un
mármol frío, con las mentiras acostumbradas para consolar a los vivos.
Dejen que la tierra escriba, en primavera, un epitafio de yerbas. Allí
se dirá que viví y que espero. Entonces, Señor, tú escribirás tu
nombre y el mío, unidos como dos pétalos de amapolas».
Non mi vestite di nero:
è triste e funebre.
Non mi vestite di bianco:
è superbo e retorico.
Vestitemi a fiori gialli e rossi
e con ali di uccelli.
E tu, Signore, guarda le mie mani.
Forse c’è una corona.
Forse
ci hanno messo una croce.
Hanno sbagliato.
In mano ho foglie verdi
e sulla croce,
la tua resurrezione.
E, sulla tomba,
non mi mettete marmo freddo
con sopra le solite bugie
che consolano i vivi.
Lasciate solo la terra
che scriva, a primavera,
un’epigrafe d’erba.
E dirà
che ho vissuto,
che attendo.
E scriverà il mio nome e il tuo,
uniti come due bocche di papaveri.
Adriana Zarri
(1919-2010)
Monday, April 18, 2011
50 years old
Bonhoeffer: “Who Am I?”
Who am I? They often tell me
I stepped from my cell’s confinement
Calmly, cheerfully, firmly,
Like a squire from his country-house.
Who am I? They often tell me
I used to speak to my warders
Freely and friendly and clearly,
As though it were mine to command.
Who am I? They also tell me
I bore the days of misfortune
Equally, smilingly, proudly,
Like one accustomed to win.
Am I then really all that which other men tell of?
Or am I only what I myself know of myself?
Restless and longing and sick, like a bird in a cage,
Struggling for breath, as though hands were
compressing my throat,
Yearning for colors, for flowers, for the voices of birds,
Thirsting for words of kindness, for neighborliness,
Tossing in expectation of great events,
Powerlessly trembling for friends at an infinite distance,
Weary and empty at praying, at thinking, at making,
Faint, and ready to say farewell to it all?
Who am I? This or the other?
Am I one person today and tomorrow another?
Am I both at once? A hypocrite before others,
And before myself a contemptibly woebegone weakling?
Or is something within me still like a beaten army,
Fleeing in disorder from victory already achieved?
Who am I? They mock me, these lonely questions of mine.
Whoever I am, Thou knowest, O God, I am Thine!
D. Bonhoeffer
March 4,1946
Who am I? They often tell me
I stepped from my cell’s confinement
Calmly, cheerfully, firmly,
Like a squire from his country-house.
Who am I? They often tell me
I used to speak to my warders
Freely and friendly and clearly,
As though it were mine to command.
Who am I? They also tell me
I bore the days of misfortune
Equally, smilingly, proudly,
Like one accustomed to win.
Am I then really all that which other men tell of?
Or am I only what I myself know of myself?
Restless and longing and sick, like a bird in a cage,
Struggling for breath, as though hands were
compressing my throat,
Yearning for colors, for flowers, for the voices of birds,
Thirsting for words of kindness, for neighborliness,
Tossing in expectation of great events,
Powerlessly trembling for friends at an infinite distance,
Weary and empty at praying, at thinking, at making,
Faint, and ready to say farewell to it all?
Who am I? This or the other?
Am I one person today and tomorrow another?
Am I both at once? A hypocrite before others,
And before myself a contemptibly woebegone weakling?
Or is something within me still like a beaten army,
Fleeing in disorder from victory already achieved?
Who am I? They mock me, these lonely questions of mine.
Whoever I am, Thou knowest, O God, I am Thine!
D. Bonhoeffer
March 4,1946
Subscribe to:
Posts (Atom)