LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 06-15-2005, 01:00 PM   #1
ctkroeker
Senior Member
 
Registered: May 2005
Location: Paraguay
Posts: 1,565
Blog Entries: 1

Rep: Reputation: 50
Question Making multiple partitions on USB memory stick


I have a 256MB memory stick and would like to partition it in maybe 2-4 parts.
1- Is it really hard to do this?
2- Can it be done with knoppix or DSL or any other distro?
3- Will I be able to see all these partitions in windows?
4- Is it stable?
5- Will it stay writeble?
 
Old 06-16-2005, 12:20 AM   #2
WildPossum
Member
 
Registered: Feb 2004
Location: Sydney - Australia
Distribution: OpenSUSE, Ubuntu, Mythbuntu, iMedia, Embedded Linux
Posts: 44

Rep: Reputation: 18
Wink MakingMulti Partions on USB Stick

Yes you can as you see below:

linux:/home/gmkelly # mount
/dev/sda5 on / type reiserfs (rw,acl,user_xattr)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
tmpfs on /dev/shm type tmpfs (rw)
devpts on /dev/pts type devpts (rw,mode=0620,gid=5)
/dev/sda6 on /AVR type reiserfs (rw)
/dev/sda2 on /boot type ext2 (rw,acl,user_xattr)
/dev/sda3 on /home type reiserfs (rw)
usbfs on /proc/bus/usb type usbfs (rw)
/dev/hda on /media/SU930_001 type subfs (ro,nosuid,nodev,fs=cdfss,procuid)
nfsd on /proc/fs/nfsd type nfsd (rw)
/dev/sdb1 on /media/512M type subfs (rw,nosuid,nodev,sync,fs=floppyfss,procuid)

linux:/home/gmkelly # umount /media/512M

linux:/home/gmkelly # fdisk /dev/sdb

Command (m for help): p

Disk /dev/sdb: 524 MB, 524156928 bytes
32 heads, 32 sectors/track, 999 cylinders
Units = cylinders of 1024 * 512 = 524288 bytes

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 999 511471+ b W95 FAT32
Partition 1 has different physical/logical endings:
phys=(997, 31, 32) logical=(998, 31, 31)

Command (m for help): d
Selected partition 1

Command (m for help): p

Disk /dev/sdb: 524 MB, 524156928 bytes
32 heads, 32 sectors/track, 999 cylinders
Units = cylinders of 1024 * 512 = 524288 bytes

Device Boot Start End Blocks Id System

Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-999, default 1):
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-999, default 999): 500

Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 2
First cylinder (501-999, default 501):
Using default value 501
Last cylinder or +size or +sizeM or +sizeK (501-999, default 999):
Using default value 999

Command (m for help): a
Partition number (1-4): 1

Command (m for help): p

Disk /dev/sdb: 524 MB, 524156928 bytes
32 heads, 32 sectors/track, 999 cylinders
Units = cylinders of 1024 * 512 = 524288 bytes

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 500 255984 83 Linux
/dev/sdb2 501 999 255488 83 Linux

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.
Syncing disks.


Command (m for help): p

Disk /dev/sdb: 524 MB, 524156928 bytes
32 heads, 32 sectors/track, 999 cylinders
Units = cylinders of 1024 * 512 = 524288 bytes

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 500 255984 83 Linux
/dev/sdb2 501 999 255488 83 Linux

Command (m for help): t
Partition number (1-4): 1
Hex code (type L to list codes): L

0 Empty 1e Hidden W95 FAT1 80 Old Minix be Solaris boot
1 FAT12 24 NEC DOS 81 Minix / old Lin bf Solaris
2 XENIX root 39 Plan 9 82 Linux swap / So c1 DRDOS/sec (FAT-
3 XENIX usr 3c PartitionMagic 83 Linux c4 DRDOS/sec (FAT-
4 FAT16 <32M 40 Venix 80286 84 OS/2 hidden C: c6 DRDOS/sec (FAT-
5 Extended 41 PPC PReP Boot 85 Linux extended c7 Syrinx
6 FAT16 42 SFS 86 NTFS volume set da Non-FS data
7 HPFS/NTFS 4d QNX4.x 87 NTFS volume set db CP/M / CTOS / .
8 AIX 4e QNX4.x 2nd part 88 Linux plaintext de Dell Utility
9 AIX bootable 4f QNX4.x 3rd part 8e Linux LVM df BootIt
a OS/2 Boot Manag 50 OnTrack DM 93 Amoeba e1 DOS access
b W95 FAT32 51 OnTrack DM6 Aux 94 Amoeba BBT e3 DOS R/O
c W95 FAT32 (LBA) 52 CP/M 9f BSD/OS e4 SpeedStor
e W95 FAT16 (LBA) 53 OnTrack DM6 Aux a0 IBM Thinkpad hi eb BeOS fs
f W95 Ext'd (LBA) 54 OnTrackDM6 a5 FreeBSD ee EFI GPT
10 OPUS 55 EZ-Drive a6 OpenBSD ef EFI (FAT-12/16/
11 Hidden FAT12 56 Golden Bow a7 NeXTSTEP f0 Linux/PA-RISC b
12 Compaq diagnost 5c Priam Edisk a8 Darwin UFS f1 SpeedStor
14 Hidden FAT16 <3 61 SpeedStor a9 NetBSD f4 SpeedStor
16 Hidden FAT16 63 GNU HURD or Sys ab Darwin boot f2 DOS secondary
17 Hidden HPFS/NTF 64 Novell Netware b7 BSDI fs fd Linux raid auto
18 AST SmartSleep 65 Novell Netware b8 BSDI swap fe LANstep
1b Hidden W95 FAT3 70 DiskSecure Mult bb Boot Wizard hid ff BBT
1c Hidden W95 FAT3 75 PC/IX
Hex code (type L to list codes): 0b
Changed system type of partition 1 to b (W95 FAT32)

Command (m for help): p

Disk /dev/sdb: 524 MB, 524156928 bytes
32 heads, 32 sectors/track, 999 cylinders
Units = cylinders of 1024 * 512 = 524288 bytes

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 500 255984 b W95 FAT32
/dev/sdb2 501 999 255488 83 Linux

Command (m for help): t
Partition number (1-4): 2
Hex code (type L to list codes): 0b
Changed system type of partition 2 to b (W95 FAT32)

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.

WARNING: If you have created or modified any DOS 6.x
partitions, please see the fdisk manual page for additional
information.
Syncing disks.


SO NOW you have a USB Memory stick split into two partitions as you required. Now all you have to do is to format each partition with FAT32 formatter. Usually this is done on a Win95/98/2K MsDoze system.

So to answer your qestions:

1- Is it really hard to do this? No, I have just shown you HOWTO line by line ;-)

2- Can it be done with knoppix or DSL or any other distro? Yes, same basic Linux Tool.

3- Will I be able to see all these partitions in windows? Yes, they are MSwin standard.

4- Is it stable? Yes. As stable as anytime running under the migthy Windoze.

5- Will it stay writeble? Yes, it is fully r/w both partitions unless to modify the windoze parameters to be otherwise when you win95/98/2K format each partition.


Cheers. Grahame
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Missing memory in USB stick, flash memory, removable hd etc bamboo_spider Linux - Newbie 3 06-14-2006 05:39 PM
USB memory stick Alan Lakin Linux - Hardware 21 11-10-2005 05:53 AM
making a mounted memory stick rw newusermike Linux - Newbie 1 08-14-2005 03:04 AM
USB Memory Stick Link_420 Linux - Hardware 2 11-19-2004 01:09 AM
What partitions on USB memory stick? pingu Linux - Hardware 0 08-17-2004 06:16 AM


All times are GMT -5. The time now is 06:07 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration