Unix Technical Forum

need some help partitioning a large (250GB) usb external hard drive

This is a discussion on need some help partitioning a large (250GB) usb external hard drive within the Linux Operating System forums, part of the Unix Operating Systems category; --> Hi, I just purchased a 250GB usb external hard drive which I plan to use as a repository or ...


Go Back   Unix Technical Forum > Unix Operating Systems > Linux Operating System

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-18-2008, 07:09 PM
vineyardsaker@gmail.com
 
Posts: n/a
Default 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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-18-2008, 07:09 PM
Michael Heiming
 
Posts: n/a
Default Re: need some help partitioning a large (250GB) usb external hard drive

In comp.os.linux.setup vineyardsaker@gmail.com:

> I just purchased a 250GB usb external hard drive which I plan to use as


[ problems using fdisk to partition large USB disk ]

I'd try out cfdisk or sfdisk first and see if this works better,
fdisk is a buggy app.

Good luck

--
Michael Heiming (X-PGP-Sig > GPG-Key ID: EDD27B94)
mail: echo zvpunry@urvzvat.qr | perl -pe 'y/a-z/n-za-m/'
#bofh excuse 311: transient bus protocol violation
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-18-2008, 07:09 PM
chuckcar
 
Posts: n/a
Default Re: need some help partitioning a large (250GB) usb external hard drive


> 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
>


Try creating the partitions as partitions unto themselves, I'm pretty
sure that partitions within partitions is a Microsoft quirk. --
(setq (chuck nil) car(chuck) )
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-18-2008, 07:09 PM
vineyardsaker@gmail.com
 
Posts: n/a
Default Re: need some help partitioning a large (250GB) usb external hard drive

Michael Heiming wrote:
> I'd try out cfdisk or sfdisk first and see if this works better,
> fdisk is a buggy app.


I did the same thing with cfdisk and with exacly the same results: all
is well until I do 'write' and then I get an error message telling me
that the kernel is still using the old partition table and that I need
to reboot. When I do that, all my changes are gone.

It looks like something is preventing me from writing this partition
table...

Any ideas as to what is happening here?

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-18-2008, 07:09 PM
Markku Kolkka
 
Posts: n/a
Default Re: need some help partitioning a large (250GB) usb external hard drive

vineyardsaker@gmail.com wrote:

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


/dev/sda1 is the first partition on disk /dev/sda, you are trying to
paritition a partition. Use "fdisk /dev/sda" instead.

--
Markku Kolkka
markku.kolkka@iki.fi

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 01-18-2008, 07:09 PM
Michael Heiming
 
Posts: n/a
Default Re: need some help partitioning a large (250GB) usb external hard drive

In comp.os.linux.setup Markku Kolkka <markku.kolkka@iki.fi>:
> vineyardsaker@gmail.com wrote:
>
>> When I do fdisk /dev/sda1 here is the first message I get:


> /dev/sda1 is the first partition on disk /dev/sda, you are trying to
> paritition a partition. Use "fdisk /dev/sda" instead.


Indeed! If this isn't a typo it seems the problem...


--
Michael Heiming (X-PGP-Sig > GPG-Key ID: EDD27B94)
mail: echo zvpunry@urvzvat.qr | perl -pe 'y/a-z/n-za-m/'
#bofh excuse 386: The Internet is being scanned for viruses.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 11:39 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com