LinuxQuestions.org
Review your favorite Linux distribution.
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 07-02-2006, 01:32 PM   #1
vees
Member
 
Registered: Jun 2005
Location: the Imperial Homeland
Distribution: Debian, gNewSense
Posts: 117

Rep: Reputation: 15
need some help partitioning a large (250GB) usb external hard drive


Hi,

I just purchased a 250GB usb external hard drive which I plan to use as a repository or sorts for my various computers. Predictably, it came with from the store with one huge vfat partition. Which is fine for GNU/Linux, but which FreeBSD cannot handle properly yet as FreeBSD has only experimental support of FAT filesystems bigger than 128GB. Since I am trying to learn FreeBSD I will need to have this drive read-writable by FreeBSD. I would also like to have it read-writable by any Windoze box. I therefore need to repartition it into several vfat partitions each smaller than 128GB.


When I do fdisk /dev/sda1 here is the first message I get:

The number of cylinders for this disk is set to 30400.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)

Command (m for help):


while a prinout of this device gives me:

Command (m for help): p

Disk /dev/sda1: 250.0 GB, 250056705024 bytes
255 heads, 63 sectors/track, 30400 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System

Command (m for help):


I first tried to simply create 3 new primary partitions with 'n' then using the first availale cylinder than doing +100GB for the size. All seemed ok until I did 'w' which gave me a message about 'error 22'.

I figured that the mistake was using primary partitions (on a usb device and a computer with two internal hard drives and all these partitions already:

# fdisk -l

Disk /dev/hda: 81.9 GB, 81964302336 bytes
16 heads, 63 sectors/track, 158816 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes

Device Boot Start End Blocks Id System
/dev/hda1 1 60945 30716248+ 83 Linux
/dev/hda2 * 60946 80325 9767520 83 Linux
Partition 2 does not end on cylinder boundary.
/dev/hda3 80326 128760 24410767+ 83 Linux
Partition 3 does not end on cylinder boundary.
/dev/hda4 128760 128775 8032+ 82 Linux swap / Solaris
Partition 4 does not end on cylinder boundary.

Disk /dev/hdb: 40.0 GB, 40027029504 bytes
255 heads, 63 sectors/track, 4866 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdb1 * 1 3039 24410736 7 HPFS/NTFS
/dev/hdb2 3040 4865 14667345 f W95 Ext'd (LBA)
/dev/hdb5 3040 4865 14667313+ 7 HPFS/NTFS

Disk /dev/sda: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 1 30401 244196001 c W95 FAT32 (LBA)
#


I then tried creating one extended partition on /dev/sda1 and three logical partitions inside. All went well until I tried writing this with 'w' which gave me this error 22 again.

What is going on, what am I doing wrong, what is error 22 and how should I proceed to get my 3 partitions on my usb device?

Many thanks,

VS
 
Old 07-04-2006, 04:33 AM   #2
JunctaJuvant
Member
 
Registered: May 2003
Location: Wageningen, the Netherlands
Distribution: OS X & Linux Mint
Posts: 488

Rep: Reputation: Disabled
Just to make sure: did you *delete* the partition /dev/sda1 on /dev/sda prior creating the new /dev/sda{1,2,3} partitions?
 
Old 07-04-2006, 05:14 AM   #3
zeitounator
Member
 
Registered: Aug 2003
Location: Montpellier, France, Europe, World, Solar System
Distribution: Debian Sarge, Fedora core 5 (i386 and x86_64)
Posts: 262

Rep: Reputation: 30
Quote:
Originally Posted by vees
When I do fdisk /dev/sda1
The '1' is your problem. Try fdisk /dev/sda

/dev/sda1 is the first partition on disk /dev/sda. You want to run fdisk/create/delete partitions on the entire disk not on the partition.

Last edited by zeitounator; 07-04-2006 at 05:29 AM.
 
  


Reply

Tags
partitioning, usb, vfat


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
external enclosure for an internal hard drive vs external USB hard drive powah Linux - Hardware 1 03-10-2006 10:03 AM
Installing grub to external USB hard drive for later use as internal hard drive dhave Linux From Scratch 2 12-10-2005 09:48 AM
Red hat 7.3 + 250GB usb external hardrive vicky4u_hyd Linux - Hardware 0 07-11-2004 03:19 AM
USB External Hard Disk problem with large files nick1.41 Linux - Hardware 0 05-26-2004 08:33 PM
Buying a large USB hard drive TomF Linux - Hardware 1 11-23-2003 03:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 01:39 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration