how to mount the multiple partitions of a pendrive / flashcard?
DebianThis forum is for the discussion of Debian Linux.
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.
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 ?
Distribution: Gentoo (desktop), Arch linux (laptop)
Posts: 728
Rep:
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.
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
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.