mersenneforum.org

mersenneforum.org (https://www.mersenneforum.org/index.php)
-   Linux (https://www.mersenneforum.org/forumdisplay.php?f=39)
-   -   Linux/SUSE noob trouble - Resize partition (https://www.mersenneforum.org/showthread.php?t=4988)

OmbooHankvald 2005-11-13 15:53

Linux/SUSE noob trouble - Resize partition
 
Hi

I have recently installed SUSE 10.0, but unfortunately it has caused me some trouble..

1) It killed Winblows :furious: . At the boot screen I can choose Windows or SUSE, but if I choose Windows it just gives me a black screen and it seems to be crunching away for hours. I have tried starting Windows and let it work on starting Windows a couple of hours and when I came back it was in... SUSE? WTF? :mellow:

2) At the installation on SUSE I didn't give it much room on my HD (only around 2 GB I think) and therefore I have not even got enough room to install OpenOffice (which I badly need!). I figured that since the Windows partition (in SUSE apparently called /dev/hda1) has a lot of free room, I would resize it and 'transfer' some of the free space to SUSE. But as a Linux n00b I just can't figure out how the heck to do it?!
I have heard of 'parted' but don't believe I can use it because Windows is sitting on a NTFS-partition...

3) Do any of you know of a good place on the Internet to find straightforward guides to Linux and/or SUSE? I have never been good at the Console-stuff, but I am willing to learn as long at it is kept as simple as possible.

I hope I'm not too confusing... I am not a Linux guru.

OH

Peter Nelson 2005-11-13 16:12

I know somethings about linux and have now installed Suse 10 on ALL my machines (yay)

Some of these are Suse only and others I have made the windows XP (FAT or NTFS) share the drive with Suse.

I have discovered by trial and error that graphical install of Suse 10 uses more disk space than claimed, and 2GB is not really quite enough with the default packages (include some games etc). You will be lucky if suse boots unless you login command prompt and use text based yast2 to de-install things you don't need. For log files etc size will grow.

Therefore for a GUI install of Suse I recommend an absolute minimum of 3GB of the drive given to Suse.

Well windows is your problem so what can I say....

Well we DO know that on my machine, windows and Suse 10 coexist hapily.

Perhaps you could tell me was your windows drive formatted as NTFS or FAT.

Did you defrag the windows drive in windows before installing suse. Did you also check the drive for errors?

Were any error messages reported by suse installer while trying to resize the windows partition.

Now that you appear to be able to boot into Linux but not into windows, tell me this...

Does the linux mount your windows C drive into its filesystem ie can you see your windows documents from exploring around in Suse?

I assume you already know that windows likes to be put on before suse, and assume you did not do Suse then windows (which won't work).

Hope you can get it working again, post back and I will try to help.

Peter Nelson 2005-11-13 16:22

Re your other question, assuming you get windows working....

It is not a big problem at all to shrink the windows partition further and give progressively more space to the suse.

You can do it using YAST, in GUI if you think carefully I have done this successfully as I migrated more work off windows to linux.

The only thing to consider is YAST won't resize a partition which is currently mounted but there are ways around that.

Assuming windows works, the first step is go into windows and defrag and work out what new size you could afford to shrink it to and still have enough for windows.

Then login to suse and use yast to change the windows/suse ratio so that more disk is free for linux use.

Then either make a new eg data partition in the cleared space and mount it OR change the existing linux partitions to cover the space. If all else fails and this is too complex for you, you did the windows resize so you could just re-install suse from the installation media and accept its partition suggestions (if you back up any important user documents).

I think right now your issue is booting into windows.

So I think you are saying there is a windows entry in the GRUB bootloader but when you choose it screen goes black?

So do you get any "starting windows" type messages?

Can you hit F8 at that point and ask windows to startup in safe mode?

Peter Nelson 2005-11-13 16:30

(As root or Yast will prompt for root superuser password)

YAST
SYSTEM
PARTITIONER

shows the existing partitions.

Highlight and the EDIT and RESIZE buttons are your friends.

As I said though you will have problems resizing a live partition in case something uses it, therefore you have to UNMOUNT the partition, resize it then MOUNT it again. (you can not the mount point, remove it and then put it back to what it was after the resize).

Not difficult just you need to think what you are doing and be careful.

Also did you know Openoffice is also available for windows!
Or you can run many windows programs using WINE in suse10?

OmbooHankvald 2005-11-13 18:23

[QUOTE=Peter Nelson]You will be lucky if suse boots unless you login command prompt and use text based yast2 to de-install things you don't need.[/quote]
Unfortunately I:
1) Don't know what I don't need
2) Have no idea how to de-install things from text-based (I think I have figured out how to do it on GUI)

[QUOTE=Peter Nelson]Perhaps you could tell me was your windows drive formatted as NTFS or FAT.[/quote]
NTFS

[QUOTE=Peter Nelson]
Did you defrag the windows drive in windows before installing suse. Did you also check the drive for errors?[/quote]
Defrag: I used Norton DiskOptimizer. Not sure if it does the same but it looked that way...
Check drive: This may be the problem - The last time I saw Windows (yes, I managed to get into Windows once) I asked it to do a 'chkdsk /r' (scan for errors) but it said it was locked and that it would scan at the next boot. After that it won't go into Windows anymore.

[QUOTE=Peter Nelson]
Were any error messages reported by suse installer while trying to resize the windows partition.[/quote]
When I installed SUSE I used some free space on another partition I already had so I didn't resize the partition. I'm going to use the YaST Partitioner in just a second...

[QUOTE=Peter Nelson]
Does the linux mount your windows C drive into its filesystem ie can you see your windows documents from exploring around in Suse?[/quote]
Yes, it resides in /windows/C

[QUOTE=Peter Nelson]
I think right now your issue is booting into windows.[/quote]
Yes, I think so too...

[QUOTE=Peter Nelson]
So I think you are saying there is a windows entry in the GRUB bootloader but when you choose it screen goes black?[/quote]
Exactly

[QUOTE=Peter Nelson]
So do you get any "starting windows" type messages?[/quote]
No, just a black screen with a little 'flashing white line' in the top left corner (the classic DOS 'line' - I don't know what to call it...)

[QUOTE=Peter Nelson]
Can you hit F8 at that point and ask windows to startup in safe mode?[/QUOTE]
No. My guess is that it is chkdsk'ing..

Thank you for your assistance so far!
:smile:

Peter Nelson 2005-11-13 20:01

The flashing underscore is called the "cursor".

If as you suspect windows is trying to do chkdsk on startup, is your hard drive LED flashing activity during the black screen or does it go out and disk access stops?

Its good that at least your windows files are still there and visible from linux mountpoint.

You may be able to view the (hidden, system) file BOOT.INI or others of windows, by examing the windows partition using linux text editor etc. That may tell you how far it gets through startup processing.

Personally I would try to sort one problem at a time so recover the windows before resizing partitions might be sensible.

Also thinking of the "do something on next windows startup" way it wants to launch chkdsk, if you reboot into windows a few times does this persist or does it give up and try to boot normally? (in which case F8 Safe and go from there).

moo 2005-11-13 20:20

I wonder if resizeing the partition lost some files if anyones ever done a defrag on windows xp you will see in some versions that unmoveable system data is at the 80 to 90 precent area on the disk how big is this disk anyways.

Peter Nelson 2005-11-13 21:02

[QUOTE=moo]I wonder if resizeing the partition lost some files if anyones ever done a defrag on windows xp you will see in some versions that unmoveable system data is at the 80 to 90 precent area on the disk how big is this disk anyways.[/QUOTE]

Yes MS degrag does not move pagefile from there.

I suspect third party one might (as diskkeeper professional can for example).

The way to fix that is tell windows it can't use a swapfile (maybe even small one). Then defrag. Then create a swapfile again. Look in defrag and you should then see the nice free space where you want it all together at the end of the drive.

OmbooHankvald 2005-11-14 07:14

[QUOTE=Peter Nelson]If as you suspect windows is trying to do chkdsk on startup, is your hard drive LED flashing activity during the black screen or does it go out and disk access stops?[/quote]
The LED is flashing and makes some activity noise, so I guess it is working on something... But when I left it a couple of hours chkdsk'ing (or whatever it was doing) on its own, when I came back it had entered SUSE? My guess is that it had rebooted for some reason and then the GRUB boot-screen timer had run out and chosen SUSE instead of Windows to start up

[QUOTE=Peter Nelson]
Its good that at least your windows files are still there and visible from linux mountpoint.[/quote]
Yes. I'm thinking of just getting the most important files to safety and then deleting the whole crap, but if we can sort it out the peaceful way then that would be better indeed.

[QUOTE=Peter Nelson]
You may be able to view the (hidden, system) file BOOT.INI or others of windows, by examing the windows partition using linux text editor etc. That may tell you how far it gets through startup processing.[/quote]

Yes. I have it here. The contents of BOOT.INI are:
[code][boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /fastdetect /NoExecute=OptIn /noguiboot[/code]


[QUOTE=Peter Nelson]
Personally I would try to sort one problem at a time so recover the windows before resizing partitions might be sensible.[/quote]
Yes. Let's forget about resizing for now. It was just that I need a text editor badly and I figured that if the Windows-trouble was going to take a long time, I might as well just make myself comfortable with Linux (i.e. get OpenOffice - I need the .doc feature)

OmbooHankvald 2005-11-14 10:06

Okay... I am extremely confused right now..

I started Windows and let the 'crunching' begin this morning. When I came back it was in SUSE. However, when I rebooted and chose Windows again Windows came forth!

Right now I'm in Windows and I don't understand anything of what happened. I just hope it'll continue like this.

Now, providing this keeps working, how do I resize? I'm going to defrag my Windows partition now.

OH

ColdFury 2005-11-14 17:52

Use the ntfsprogs package to resize your NTFS partition in Linux.

[url]http://mlf.linux.rulez.org/mlf/ezaz/ntfsresize.html[/url]

OmbooHankvald 2005-11-14 21:12

[QUOTE=ColdFury]Use the ntfsprogs package to resize your NTFS partition in Linux.

[url]http://mlf.linux.rulez.org/mlf/ezaz/ntfsresize.html[/url][/QUOTE]

Thanks ColdFury. I'll see if I can operate it...
BTW: IF I manage to succeed in resizing the NTFS how do I make the SUSE partition bigger? Maybe I should then just installed SUSE all over again (and thus use the extra free space?)

ColdFury 2005-11-15 02:06

[QUOTE]how do I make the SUSE partition bigger[/QUOTE]

You can use fdisk (the linux one) to resize the partition and then use whatever appropriate tool for the filesystem to recompute the filesystem data-structures.

I did a similar thing to install linux on my laptop without removing the existing windows installation.

Peter Nelson 2005-11-15 04:50

Glad your windose is booting again, probably it will be fine now the checkdisk completed. This was probably your mistake of not doing the windows reboot and load BEFORE putting the suse disk in. All's well that ends well.

You can do the resize using 3rd party tools as suggested above OR

Suse 10 fresh installation is pretty good at resizing and probably simpler to use.

When it suggests settings for partitioning click on that and modify it as you wish.

If you did want to add/remove packages from the command prompt interface, type yast2 in console, and the interface looks very like the yast gui version.

You can always re-load anything you remove but want to use later.

Also you probably won't accidentally remove something necessary as yast checks dependancies to know what relies on what and will ask for confirmation or tell what it also needs for selected apps to run.

Have fun!

OmbooHankvald 2005-11-16 13:13

Okay, after I accidentally installed SUSE on top of another SUSE ( :redface: ) I have been formatting back and forth, however now I've currently got:

1 x 25.2 GB Windows partition ( ~ 5 GB free space)
1 x 4.1 GB unknown partition (called 'IBM_SERVICE') which came with the computer. Apparently it's a 'Vendor diag' partition... What is that?
1 x 5.3 GB extended Linux partition whereof 792.2 MB is swap.

I know Windows still has the upper hand, but I'll first have to get to know Linux before I choose what to do next.

Thank you all for your help in sorting out this mess! :bow:

A last question: Do any of you know of a site/book/something where I can get some basic easy-to-understand knowledge of what Linux/SUSE is and how to operate it? I'm 100% Windowsian but I am interested in getting to know more about Linux.

garo 2005-11-16 14:45

Ah you did not tell us that you have an IBM laptop. That complicates things considerably as IBM uses its own hidden partition for all sorts of stuff. This makes multi-boot a bit more complicated and explains why you got a blank screen first time round. Do a search for "dual boot IBM laptop" on google for good pointers.

OmbooHankvald 2005-11-16 17:42

[QUOTE=garo]Ah you did not tell us that you have an IBM laptop. That complicates things considerably as IBM uses its own hidden partition for all sorts of stuff. This makes multi-boot a bit more complicated and explains why you got a blank screen first time round. Do a search for "dual boot IBM laptop" on google for good pointers.[/QUOTE]

Oops... I forgot n00b rule §3: "Always give ALL information. Even if you believe it's useless". In my case >I simply forgot all about what laptop I was using :redface:

garo 2005-11-16 18:33

Did you do the search and get all the answers then?

Peter Nelson 2005-11-16 19:06

[QUOTE=OmbooHankvald]Oops... I forgot n00b rule §3: "Always give ALL information. Even if you believe it's useless". In my case >I simply forgot all about what laptop I was using :redface:[/QUOTE]

ALSO a *WARNING* as you have an IBM laptop.

There is an optional feature in linux called sensors.

On most machines this can be set to talk to motherboard chips and report temperature and fan speeds.

HOWEVER ON IBM LAPTOPS , sensors has been known to totally lock up the IBM laptop (for good , or at least a factory return). Not good.

There is a little code in sensors to try to prevent it being run on Ibm laptop, but don't rely on this.

*NEVER TRY TO SET UP SENSORS/FAN/TEMP MONITORING ON AN IBM LAPTOP*

You have been warned ;-)

OmbooHankvald 2005-11-18 10:39

[QUOTE=garo]Did you do the search and get all the answers then?[/QUOTE]

Yes, and I found out some info about IBM_SERVICE. I'm actually thinking about maybe deleting it using [URL=http://66.249.93.104/search?q=cache:o84e7Rmq5H4J:pmw.org/~gardnerj/Thinkpad/Install.html+bartpe+ibm_service&hl=da]this[/URL] as my reference.
If I'll backup all the stuff listed there I should be able to get rid of it. :rolleyes:

However, I'll be careful not to destroy something unnecessarily


All times are UTC. The time now is 14:37.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.