[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debian-users:33308] Re: physical (lowlovel) format via USB FDD



ã‚€ã¤ã¿ã§ã™ã€‚

>>>>> In [debian-users : No.33301] 
>>>>>	Taketoshi Sano <kgh12351@xxxxxxxxxxx> wrote:
>> ä½é‡Žï¼ æµœæ¾ã§ã™ã€‚

>> USB FDD 経由ã§ãƒ•ãƒ­ãƒƒãƒ”ーを物ç†ãƒ•ã‚©ãƒ¼ãƒžãƒƒãƒˆã™ã‚‹ã«ã¯ã€
>> 何を使ãˆã°è‰¯ã„ã®ã§ã—ょㆠ?

 んー 解決法ã˜ã‚ƒãªã„ã§ã™ãŒã€

>> 通常㮠/dev/fd0 (2,0) ã‚„ /dev/fd0u1440 (2,28) ãªã©ã§
>> ã‚ã‚Œã°ã€superformat を使ãˆã°ã„ã„ã®ã§ã™ãŒã€USB FDD ã®
>> å ´åˆ /dev/sda ã«ãªã£ã¦ã—ã¾ã†ã®ã§ã€
>>
>>  $ superformat -B A /dev/sda
>> open: ãã®ã‚ˆã†ãªãƒ•ã‚¡ã‚¤ãƒ«ã‚„ディレクトリã¯ã‚ã‚Šã¾ã›ã‚“
>>
>> ã¨è¨€ã‚ã‚Œã¦ã—ã¾ã„ã¾ã™ã€‚

 ã“ã® -B オプションã®ã‚ã¨ã® A ã£ã¦ã®ã¯ ãªã‚“ã§ã—ょã†ã‹?

>> open: ãã®ã‚ˆã†ãªãƒ•ã‚¡ã‚¤ãƒ«ã‚„ディレクトリã¯ã‚ã‚Šã¾ã›ã‚“

 ã™ããªãã¨ã‚‚ ã“ã®ã‚¨ãƒ©ãƒ¼ã¯ã€ã“ã® A ã®ã›ã„出ã¦ã„るよã†ã§ã™ãŒã€‚
(A ã‚’ デãƒã‚¤ã‚¹ã ã¨æ€ã£ã¦ open() ã—ã«ã„ã£ã¡ã‚ƒã†ã¨æ€ã†ã™ãŒ)
 
$ superformat -B /dev/sda hd

ã ã¨(USB floppy ã§ã¯ãªã Memory stick ã§ç¢ºèªã—ã¾ã—ãŸãŒ)ã€

Not a floppy drive

ã¨å‡ºã¾ã™ã­ã€‚ã†ã‚“㧠ソース見ã¦ã¿ã‚‹ã¨ã€

 src/driveprm.c ã® getdrivenum() ã§

        if (!S_ISBLK(buf->st_mode) || 
            major(buf->st_rdev) != FLOPPY_MAJOR) {
                fprintf(stderr,"Not a floppy drive\n");
                exit(1);
        }

ã¨ã‹ã‚„ã£ã¡ã‚ƒã£ã¦ã‚‹ã®ã§ã€ãŠãらã /dev/sd* ã«å¯¾ã—ã¦ã¯
superformat ã¯å‹•ã„ã¦ãã‚Œãªã„ã‚‚ã®ã¨æ€ã„ã¾ã™ã€‚

-- 
ã„ã—ã‹ã‚ ã‚€ã¤ã¿
 <ishikawa@xxxxxxxxxxx>, <ishikawa@debian.org>, <ishikawa@xxxxxxxxxxxxxxxx>