LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   how to mount the multiple partitions of a pendrive / flashcard? (https://www.linuxquestions.org/questions/debian-26/how-to-mount-the-multiple-partitions-of-a-pendrive-flashcard-778294/)

frenchn00b 12-27-2009 07:16 AM

how to mount the multiple partitions of a pendrive / flashcard?
 
Hello,

I did this with :
Code:

cfdisk /dev/sdd1
I made two partitions as below

Code:

3. Partition Compact Flash

Make two partitions on CF (use linux fdisk or anything else that is able to make linux filesystem)

  1. at least 8MB FAT
  2. rest ext2 (recommended) or ext3 - at least 50MB

Copy vmlinuz, initrd, linexec and params.txt to FAT partition.
Uncompress rootfs.tar.bz2 to ext2 partition.
(command details at ref. [1])

but :

fdisk -l
says only one /dev/sdd1

not sdd1a
not sdd1a


How can I mount those 2 created partitions, since they are hidden under /dev/sdd1 ?

Is it a bug of the kernel?

TruongAn 12-27-2009 07:21 AM

That's strange ??? I believe that your pendrive should be /dev/sdd (not with digit '1' following). And the partitions on it should be /dev/sdd1 , /dev/sdd2 , /dev/sdd3 and so on.

frenchn00b 12-27-2009 10:57 AM

Quote:

Originally Posted by TruongAn (Post 3805812)
That's strange ??? I believe that your pendrive should be /dev/sdd (not with digit '1' following). And the partitions on it should be /dev/sdd1 , /dev/sdd2 , /dev/sdd3 and so on.

Code:

l# fdisk -l

Disk /dev/hda: 60.0 GB, 60011642880 bytes
255 heads, 63 sectors/track, 7296 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x13d813d8

  Device Boot      Start        End      Blocks  Id  System
/dev/hda1              1        5995    48154806    7  HPFS/NTFS
/dev/hda2  *        5996        7235    9960300  83  Linux
/dev/hda3            7236        7296      489982+  5  Extended
/dev/hda5            7236        7296      489951  82  Linux swap / Solaris

Disk /dev/sdb: 8069 MB, 8069677056 bytes
256 heads, 63 sectors/track, 977 cylinders
Units = cylinders of 16128 * 512 = 8257536 bytes
Disk identifier: 0x00000000

  Device Boot      Start        End      Blocks  Id  System
/dev/sdb1  *          1        978    7876512    b  W95 FAT32
Partition 1 has different physical/logical endings:
    phys=(976, 255, 63) logical=(977, 63, 63)
hpmini:~/wifi/install#



Code:



  cfdisk (util-linux-ng 2.16.1)

                                                                        Disk Drive: /dev/sdb1
                                                                    Size: 8065548288 bytes, 8065 MB
                                                          Heads: 249  Sectors per Track: 62  Cylinders: 1020

        Name                    Flags                  Part Type            FS Type                            [Label]                      Size (MB)
 ----------------------------------------------------------------------------------------------------------------------------------------------------------------------
        sdb1p1                  Boot                    Primary              FAT16                                                                47.43
        sdb1p2                                            Primary              Linux                                                              8014.92


michaelk 12-27-2009 11:27 AM

Your mistake was specifying a partition and not the drive i.e. cfdisk /dev/sdb1 and not cfdisk /dev/sdb. I assume your CF drive is actually sdb from the output of the fdisk command but use the actual device ID. Once you specify the correct device i.e. /dev/sdb you should be able to create sdb1 and sdb2. I would delete the existing partitions and start over.


All times are GMT -5. The time now is 12:19 AM.