Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
04-15-2007, 11:23 AM
|
#1
|
|
Member
Registered: Nov 2004
Posts: 65
Rep:
|
Problem resizing FAT32 partition on external drive
My brother-in-law asked me to install Linux on his laptop, but he still needs to keep Windows XP. I chose Kubuntu for him, and ran its installer. I chose to resize his Windows NTFS partition from about 19 to 16.5 GB. It failed with just "An error occured." This happened even after disabling virtual memory and defragmenting twice. So I decided to try Freespire's partitioning tool (GParted) instead. It also failed with a similarly useless error message.
So he said to install it on his external USB hard drive (/dev/sda) which is FAT32, so I chose to resize it from 149 to 145 GB. It didn't fail yet, but it's taking a long, long, long time! And there is no indication of progress!
It completed "check filesystem (/dev/sda) for errors and (if possible) fix them" which runs dosfsck.
But now it's on "resize filesystem using libparted" and there is no indication of progress...
I can't stop it in middle because that will ruin the filesystem, and he needs the files on it...
And he needs to leave this afternoon and needs his laptop!
Is there anything I can do?
Again, I am using the Freespire CD with GParted, it's a external USB Western Digital hard drive of about 150GB, FAT32, appears to be connected with USB1.1...
|
|
|
|
04-15-2007, 11:35 AM
|
#2
|
|
Senior Member
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687
Rep:
|
Probably just have to wait, I've not used these tools with USB-1 which is probably causing the hang up. Something like 40 times slower than USB-2. And it's a large drive, most re-size utilities have to do a file system check before and after the re-size from one end to the other.
|
|
|
|
04-15-2007, 01:34 PM
|
#3
|
|
Member
Registered: Nov 2004
Posts: 65
Original Poster
Rep:
|
Oh man. It finished the resize with a check mark, and then did another filesystem check (dosfsck) which failed with the error: No such file /dev/sda1!!! That is horrible! It looks like it really messed up my partition table!
Then when I clicked OK the screen went black and nothing responds. Ctrl-Alt-Backspace does nothing and neither does Ctrl-Alt-Delete. Or Ctrl-Alt-F1/2/3 etc. to switch virtual consoles.
My brother in law is going to have my head!
I'm rebooting to Windows now to see if files are accessible on the drive.
He had stuff he wanted on the drive... I thought FAT32 resizing is supposed to be pretty simple compared to NTFS...
Oh man.
|
|
|
|
04-15-2007, 01:47 PM
|
#4
|
|
Senior Member
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687
Rep:
|
I have heard many horror stories regarding gparted, if you know much about CVS and versions, you would find gparted is still in an "unstable" state. I used it successfully the other day, but that was with Linux native file systems. For Windows file systems I use bootitng, it is above version 1.0, which means it's stable. As long as you don't install bootitng to the hard drive, all it's superb partitioning tools are free to use off a floppy or CD.
http://www.terabyteunlimited.com/
If the partition info or file system is inaccessible, you can recover most of the data with some Linux forensics tools found on many Live CD's.
|
|
|
|
04-15-2007, 04:00 PM
|
#5
|
|
Member
Registered: Nov 2004
Posts: 65
Original Poster
Rep:
|
Miraculously when I booted back into Windows, the external hard disk was fine, and I backed up everything right away!
Then I went back into Kubuntu install to continue. I found that the installer had indeed resized the partition properly. I did the partitioning and had it install, which was uneventful.
Of course the boot loader had to be installed to /dev/hda not /dev/sda.
Now when I try to boot up the system, it just gives me Grub error 21. I googled and that means can't find disk. Huh? I thought it's supposed to support external hard drives?
So thank G-d my brother in law didn't lose data, but he still needs Windows, and he is leaving soon...
|
|
|
|
04-15-2007, 04:07 PM
|
#6
|
|
Senior Member
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687
Rep:
|
If the bios supports booting from USB devices you should have grub installed in the USB MBR. But it sounds like you're saying Ubuntu did'nt give you the option. Grub is not all that great at booting USB drives when grub is on the internal drive from what I've heard. It can do it, sometimes I guess.
|
|
|
|
04-15-2007, 04:59 PM
|
#7
|
|
Member
Registered: Nov 2004
Posts: 65
Original Poster
Rep:
|
The BIOS didn't provide options...
I threw NTLDR and NTDETECT.COM and BOOT.INI onto a floppy disk, to boot him into his WinXP, then ran MbrFix to fix the boot record, so now he has Windows XP working.
Unfortunately both him and I are still panting from all this so we're going to let him keep Windows now.
Ubuntu devs I hope you are listening :-)
Okay, just do your best.
|
|
|
|
04-15-2007, 05:42 PM
|
#8
|
|
Member
Registered: Nov 2004
Posts: 65
Original Poster
Rep:
|
Just wondering, where in TeraByte's license agreement did you see that it is free to use off a floppy?
|
|
|
|
04-15-2007, 05:51 PM
|
#9
|
|
Senior Member
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687
Rep:
|
It's under the shareware license agreement, 30 day trial period. Your 30 days starts when you install it as a boot loader.
|
|
|
|
04-16-2007, 11:41 AM
|
#10
|
|
Member
Registered: Nov 2004
Posts: 65
Original Poster
Rep:
|
Oh so as long as you don't install it you never enter a trial period? But do you have a license?
|
|
|
|
04-16-2007, 05:08 PM
|
#11
|
|
Senior Member
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687
Rep:
|
Yes, there is a license, you can download the documentation where the different licenses can be viewed.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 12:46 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|