Search Results

Search: Posts Made By: shen747
Forum: Linux 01-28-2011
21,445
Posted By Corona688
It's not. I already explained why. But if...
It's not. I already explained why. But if you're willing to deal with the 12-bit strangeness, all right... If you don't want to write the code, you can just mount the filesystem and use it...

I...
Forum: Linux 01-27-2011
21,445
Posted By Corona688
Your virtual floppy disk, like any floppy disk,...
Your virtual floppy disk, like any floppy disk, is FAT12, not FAT16. Look closely at your dump:
00000000 eb 3c 90 6d 6b 64 6f 73 66 73 00 00 02 01 01 00 |.<.mkdosfs......|
00000010 02 e0 00...
Forum: Linux 01-27-2011
21,445
Posted By Corona688
Floppies use the FAT12 filesystem, which is good...
Floppies use the FAT12 filesystem, which is good at not wasting space, but very hard to use. Its FAT entries are, as the name suggests, twelve bits in size. That's one and a half bytes, like this: ...
Forum: Linux 01-27-2011
21,445
Posted By Corona688
The way you're using it, it contains no "files". ...
The way you're using it, it contains no "files". A block device is nothing but a giant pile of undifferentiated blocks, ordered from first to last.

If you want to create a file in it, you have to...
Forum: Linux 01-27-2011
21,445
Posted By dsw
'man 2 creat' creat(2) operates on file...
'man 2 creat'

creat(2) operates on file descriptors as does the rest of the stdio.h calls - give the manpage a view.

-or-

you can OR the O_CREAT flag with O_RDWR in open(2) to create the...
Forum: Linux 01-27-2011
21,445
Posted By Corona688
These commands all have man pages accessible with...
These commands all have man pages accessible with 'man 2 open', 'man 2 read', 'man 2 write'. Also lseek.

#include <sys/types.h>
#include <unistd.h>
#include <sys/fcntl.h>
int main(void)
{
...
Forum: Linux 01-26-2011
21,445
Posted By dsw
Check the perms on /dev/loop0 ls -l...
Check the perms on /dev/loop0


ls -l /dev/loop0
278,292
Posted By Neo
Simple rules of the UNIX.COM forums:
RULES OF THE UNIX AND LINUX FORUMS

For the latest version of the community rules (the official community rules page), please visit here. (https://www.unix.com/misc.php?do=cfrules)


No flames,...
Showing results 1 to 8 of 8

 
All times are GMT -4. The time now is 07:08 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy