Linux - NewbieThis 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
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.
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.
Hey for my Linux homework I have to extract image data from various partitions on a disk.drive. I have extracted the partitions fine but I cannot read any of the data. When I used "file" it only read it as data. The partition type ID for my first partition is a FAT12 file. I am unsure how to open this or view the data. The instructor has given us access to 'mtools' to help us. Within the mtools I have tried using 'mshowfat 'partition1' but it returns with file does not reside on DOS file system. This may be a complicated question but any help would be appreciated.
Upon further investigation it seems that I am suppose to use 'mdir' to access DOS formatted floppy disks. But when I run it it says "Can't open udr1.part1.img: No such file or directory
Cannot initialize 'C:' "
Might just be me, but if we could back up for a sec ... what does "I have to extract image data from various partitions on a disk.drive" exactly mean, ie. what commands have you run to make this happen?
Might just be me, but if we could back up for a sec ... what does "I have to extract image data from various partitions on a disk.drive" exactly mean, ie. what commands have you run to make this happen?
Sure, though that part doesn't worry me much. There are parts of an image file on each part of various partitions. I need to grab each part and combine them. To do that I used dd to grab the specific partition sections that contain such data. Now that I have the four partitions as data files I need to be able to open them and read the data. Does that answer your question?
EDIT: I have not run any commands to get the image data as I can not access the data from the partitions yet. That is why I am trying to use mdir so i can access the data in the partitions.
FAT12 is the common format for floppy disks although when mounting we use vfat for everything i.e. 12,16 or 32.
I admit I am somewhat confused... It would be nice if you posted the actual homework assignment.
I also admit that I have not played with mtools very much. mtools uses the devices (a: b: c: etc)as defined in the /etc/mtools.conf system-wide configuration file and ~/.mtoolsrc, the users configuration file. What do you mean by "grab the specific partition section"? If the file command does not recognize the image file as a filesystem then I do not know how you could use mtools.
Well I figured it out. I was using dd to extract the partitions from the disk.drive file. My bit length and start point were correct however I did not realize that the sector size is 512 bytes where as when i was using dd I was using bs=1.
Well I figured it out. I was using dd to extract the partitions from the disk.drive file. My bit length and start point were correct however I did not realize that the sector size is 512 bytes where as when i was using dd I was using bs=1.
good job, here get yourself a coffee and take the rest of the day off. but not before marking post as solved. cheers!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.