LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-30-2009, 06:13 AM   #1
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
How long can a partitioned virtual harddrive holds it's data without corruption?


OK, partitioned or not, is a vhd as viable as a real hd?
Is there a certain point at which it becomes corrupted or
malfunctions 'cause it's like not real?
So, basically life expectancy of vhd after making 3-4 partitions and
whether any important data can be safely put there?
Thanks
 
Old 05-30-2009, 06:19 AM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
From wikipedia:

Quote:
VHDs are implemented as files that reside on the native host file system. The following types of VHD formats are supported by Microsoft Virtual PC and Virtual Server:

* Fixed hard disk image - a file that is allocated to the size of the virtual disk.
* Dynamic hard disk image - a file that at any given time is as large as the actual data written to it, plus the size of the header and footer.
So it is just a file.
 
Old 05-30-2009, 06:27 AM   #3
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Original Poster
Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
Hey repo, meaning it's safe to store info there-like if I put a folder in there with
my Credit card number or something(just an example), it'll be there next month when
I reopen the vhd?

Also, I can't seem to create a extended partition with cfdisk- I tried using
type 05 and 85, but neither lets me create more partitions afterwards-what am I doing wrong?

Also, does partitioning the vhd hurt it's ability to save info,etc?
 
Old 05-30-2009, 06:42 AM   #4
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Quote:
it's safe to store info there-like if I put a folder in there with
my Credit card number or something(just an example), it'll be there next month when
I reopen the vhd?
Why not, it's just a file, so if you don't delete it, it will still be there.

Quote:
Also, does partitioning the vhd hurt it's ability to save info,etc?
It's just a file
 
Old 05-30-2009, 06:52 AM   #5
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Original Poster
Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
OK, so how would I mount it?
Is that possible?
A qemu-img that is...
Thanks
 
Old 05-30-2009, 07:05 AM   #6
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Quote:
OK, so how would I mount it?
Why do you want to mount it ?
 
Old 05-30-2009, 07:07 AM   #7
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Original Poster
Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
Because I do...so how to mount qemu-img?
 
Old 05-30-2009, 07:22 AM   #8
jamescondron
Member
 
Registered: Jul 2007
Location: Scunthorpe, UK
Distribution: Ubuntu 8.10; Gentoo; Debian Lenny
Posts: 961

Rep: Reputation: 70
Try it, see what it does, you cant hurt it by trying
 
Old 05-30-2009, 07:27 AM   #9
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Code:
mount /tmp/diskC.img /mnt/loop -o loop,offset=32256 -t vfat
However, the QEMU img file must be RAW, not qcow or any other format. If you did accidentally use qcow or something, qemu-img can convert it into RAW.
 
Old 05-30-2009, 07:34 AM   #10
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Original Poster
Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
OK, problem now is FS type ...the vhd has 4 partitions, 2 are ext3 and one ext2 with swap on 4th.
So, when mounting what fs type do I tell it? ext2 I tried....
 
Old 05-30-2009, 07:40 AM   #11
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Never tried with a partitioned image.
Perhaps you can find some pointers at
http://equivocation.org/node/107
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
what kind of data holds WM5/WM6 devices in RAM? m4rtin Linux - Laptop and Netbook 0 09-08-2008 03:01 AM
xfs partitioned disk unmountable (superblock errors) - any hope of rescuing data? mattp52 Linux - Hardware 9 03-17-2008 03:25 PM
How to find out which tables are partitioned and info about data files in Postgres nautilus Linux - Server 0 01-14-2008 06:57 AM
Need to know the command which shows all non-partitioned & partitioned hard drive saidul Linux - Newbie 2 12-04-2007 04:02 PM
CDROM data corruption? PFudd Linux - Hardware 9 05-22-2005 02:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration