LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 07-13-2007, 09:49 AM   #16
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612

In my experience, Windows usually does see all the partitions. I don't know what happens if it runs out of letters.
sfdisk is more oriented to doing what you want, although parted may offer some usability advantage.

The script you are using is writing the partition info twicw to the same partition.
If you want 2 partitions then you need /dev/sda1 and /dev/sda2. /dev/sda is the *whole* device.
The partition table is in the first 512 bytes(one sector or block) of the whole disk. Partition info there will point to the assigned partitions.
Some pendrives come with a bogus partition table which makes them show up as /dev/sda with no partition at all. This will be overwritten by whichever tool you use to create two separate partitions (sda1,sda2)
 
  


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
howto auto-launch a script when usb key inserted? adamrosspayne Linux - Newbie 3 09-22-2006 04:21 AM
Best supported USB WLAN sticks MS3FGX Linux - Wireless Networking 4 04-17-2006 01:40 PM
mp3 usb players/sticks unihiekka Linux - Hardware 1 12-01-2005 12:32 PM
USB memory sticks island_dude Linux - Hardware 1 01-20-2004 11:16 AM
Mounting different usb-sticks robertmarkbram Linux - Hardware 3 10-22-2003 07:16 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:50 AM.

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