LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 12-27-2009, 07:16 AM   #1
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,561

Rep: Reputation: 57
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?
 
Old 12-27-2009, 07:21 AM   #2
TruongAn
Member
 
Registered: Dec 2004
Location: Vietnam (Việt Nam)
Distribution: Gentoo (desktop), Arch linux (laptop)
Posts: 728

Rep: Reputation: 33
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.
 
Old 12-27-2009, 10:57 AM   #3
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,561

Original Poster
Rep: Reputation: 57
Quote:
Originally Posted by TruongAn View Post
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
 
Old 12-27-2009, 11:27 AM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,748

Rep: Reputation: 5927Reputation: 5927Reputation: 5927Reputation: 5927Reputation: 5927Reputation: 5927Reputation: 5927Reputation: 5927Reputation: 5927Reputation: 5927Reputation: 5927
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.

Last edited by michaelk; 12-27-2009 at 11:29 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to : mount flashcard via CLI, get slackware 12.2 load faster on thinkpad X31 SiRoel Slackware 2 07-17-2009 06:06 AM
Can't mount partitions from HDA, But will mount partitions from HDB Colonel-1990 Linux - Hardware 13 08-09-2008 09:59 AM
Where to mount multiple root partitions? dacotre Linux - Newbie 20 08-01-2007 12:27 PM
what partitions(mount points) can you reuse in a multiple boot linux system? scottk88 Linux - General 5 08-01-2005 11:49 AM
Flashcard mount problem Johng Linux - Hardware 15 09-02-2003 05:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 05:23 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration