Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
11-26-2008, 01:03 AM
|
#1
|
Member
Registered: Mar 2008
Posts: 56
Rep:
|
[HOW] mount a whole disk not just a partition
I want to mount a whole disk, for the disk is a virtual machine's disk image, I cannot see its partitions.
Does mount or any others have this feature?
mount /dev/sdb10 mnt -t ntfs
NTFS signature is missing.
Failed to mount '/dev/sdb10': Invalid argument
The device '/dev/sdb10' doesn't have a valid NTFS.
Maybe you selected the wrong device? Or the whole disk instead of a
partition (e.g. /dev/hda, not /dev/hda1)? Or the other way around?
Thanks in advance,
Shawn
|
|
|
11-26-2008, 02:41 AM
|
#2
|
Senior Member
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687
Rep:
|
If you have a bit for bit image such as what dd would make, and you want to see and mount a specific partition where there is more than one. You would make a mount directory, run a fdisk command to see where the starting offset of each partition is at, then mount the partition you want using an offset value. The example below is for mounting the first partition which starts at offset 63:
Code:
STEPS FOR MOUNTING PARTITION OF IMAGE.DD FILE FROM IN SAME DIRECTORY AS ROOT OR SUDO:
1: mkdir /mnt/image
2: sfdisk -l -uS image.dd
3: mount -oloop,offset=32256 image.dd /mnt/image
OFFSET = Sectors offset of beginning sector of partition multiplied by 512, in this case the first partition starts at offset 63.
The example above was on an NTFS partition, no need to specify file system type
|
|
|
11-26-2008, 02:49 AM
|
#3
|
Senior Member
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687
Rep:
|
You can repeat for every partition, make a separate mount directory for each partition.
To mount hfs or hfsplus, modprobe them first before mounting. Have hfsplus,
hfsutils, hfsutils-tcltk installed.
I don't recall ever mounting an entire disk, I can't see it being done either.
|
|
|
11-26-2008, 09:43 PM
|
#4
|
Member
Registered: Mar 2008
Posts: 56
Original Poster
Rep:
|
Thank you very much. Mount works like a charm
A little problem: after I mount there is a warning message
Quote:
WARNING: Deficient Linux kernel detected. Some driver features are
not available (swap file on NTFS, boot from NTFS by LILO), and
unmount is not safe unless it's made sure the ntfs-3g process
naturally terminates after calling 'umount'. If you wish this
message to disappear then you should upgrade to at least kernel
version 2.6.20, or request help from your distribution to fix
the kernel problem. The below web page has more information:
http://ntfs-3g.org/support.html#fuse26
|
Does it mean I should use kernel version no less than 2.6.20? Currently the version is 2.6.18.8.
Last edited by duyuyang; 11-26-2008 at 09:45 PM.
|
|
|
11-26-2008, 10:28 PM
|
#5
|
Senior Member
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687
Rep:
|
Kernels below 2.6.20 produced that error, some little issue with fuse that came with your kernel. It is used in conjunction with ntfs-3g which gives users read/write access to NTFS file systems.
Most images are read only anyway so it can be ignored.
If you have ntfs-3g installed and do write to NTFS file systems you can still ignore the warning as the issue that brought about this warning is relatively rare.
You can eliminate this warning by either updating the kernel to something 2.6.20 and up or by installing fuse from source and removing the fuse module that came with the kernel you presently have.
|
|
|
11-27-2008, 01:30 AM
|
#6
|
Member
Registered: Mar 2008
Posts: 56
Original Poster
Rep:
|
Thank you, Junior Hacker.
I have got the fuse source and re-made it. The warning disappeared.
Best regards,
Shawn
|
|
|
All times are GMT -5. The time now is 03:15 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|