NationStates Jolt Archive


Linux nerds, I need your help.

Johnny B Goode
24-08-2007, 20:50
I installed a minimal version of Gentoo on a CD, and I booted it. I tried to get a new Linux filesystem beside my NTFS system. My Windows was hogging the whole cylinder :mad: so I tried to use ntfsresize. That did jack shit, and now from having used fdisk so many times, it can't seek /dev/hda or write to /dev/hdc. Please help.
Librazia
24-08-2007, 21:50
You can't resize things within a cylinder. Partitions have to be on a cylinder boundary. But I doubt that is your problem. What are hda and hdc? Your hard drive and cd drive? Two hard drives? Anyways, to resize an NTFS partition I've heard good things about parted. Use a livecd with one of its graphical frontends (gParted or qtParted), and resize the partition. Then install Gentoo as normal.

EDIT: reading your post again, I'm thinking maybe you used ntfsresize and shrunk the NTFS filesystem. That is step one. Then you have to use fdisk to change the end cylinder of the partition. Delete the Windows partition, making note of the start cylinder. Then make a new partition, and specify as the start cylinder the same one as it was before. Then put the end cylinder to whatever one the resized filesystem ends at.
Johnny B Goode
24-08-2007, 21:56
You can't resize things within a cylinder. Partitions have to be on a cylinder boundary. But I doubt that is your problem. What are hda and hdc? Your hard drive and cd drive? Two hard drives? Anyways, to resize an NTFS partition I've heard good things about parted. Use a livecd with one of its graphical frontends (gParted or qtParted), and resize the partition. Then install Gentoo as normal.

Yeah, parted uses ntfsresize. hda and hdc are my hard drive and CD drive. I tried to increase the number of cylinders, which worked like a charm at first. It didn't write, and when I tried again, it said it couldn't seek /dev/hda. I tried changing the number of heads to 256, which also seemed to work. But it didn't, and now my computer's fucked up. Was it because there was gray space on the cylinder?
Librazia
24-08-2007, 22:01
Yeah, parted uses ntfsresize. hda and hdc are my hard drive and CD drive. I tried to increase the number of cylinders, which worked like a charm at first. It didn't write, and when I tried again, it said it couldn't seek /dev/hda. I tried changing the number of heads to 256, which also seemed to work. But it didn't, and now my computer's fucked up. Was it because there was gray space on the cylinder?

I don't think you can just add more cylinders. You would be going beyond the memory available on the hard drive. See my edit above, I think it may be what you are looking for.
Johnny B Goode
24-08-2007, 22:29
reading your post again, I'm thinking maybe you used ntfsresize and shrunk the NTFS filesystem. That is step one. Then you have to use fdisk to change the end cylinder of the partition. Delete the Windows partition, making note of the start cylinder. Then make a new partition, and specify as the start cylinder the same one as it was before. Then put the end cylinder to whatever one the resized filesystem ends at.

How do you use fdisk to change the end cylinder? I couldn't find that.
Posi
24-08-2007, 23:25
How do you use fdisk to change the end cylinder? I couldn't find that.Use fdisk to lookup the start cylinder of the NTFS partition, then delete the partition, then create a new partition.
Johnny B Goode
25-08-2007, 00:07
Use fdisk to lookup the start cylinder of the NTFS partition, then delete the partition, then create a new partition.

That'll make me lose data, won't it?
Rejistania
25-08-2007, 00:08
That'll make me lose data, won't it?
Yes. but if you can not access it now, it seems to be pretty lost already.
Posi
25-08-2007, 00:12
That'll make me lose data, won't it?Nope. fdisk only cares about the partition boundaries that are stored in the disks MBR. So you can use fdisk and keep your data. It is mkfs.xfs, mkext2, etc that destroys data.
Johnny B Goode
25-08-2007, 00:13
Yes. but if you can not access it now, it seems to be pretty lost already.

Heh heh. Good point. I'm trying to use ERD Commander to restore my system, then I'll back up the files. Sounds like a plan.
Posi
25-08-2007, 00:15
Yes. but if you can not access it now, it seems to be pretty lost already.But at least it is still somewhere, and the pointers should all still be there. He hasn't said anything that would make you think that was lost.
Johnny B Goode
25-08-2007, 00:23
Nope. fdisk only cares about the partition boundaries that are stored in the disks MBR. So you can use fdisk and keep your data. It is mkfs.xfs, mkext2, etc that destroys data.

Sweet. Thanks.
Kryozerkia
25-08-2007, 01:30
Try this: rm -r. It'll solve all your Linux problems instantly! ;)
Posi
25-08-2007, 01:37
Try this: rm -r. It'll solve all your Linux problems instantly! ;)I believe you are missing something.
Johnny B Goode
25-08-2007, 01:48
Try this: rm -r. It'll solve all your Linux problems instantly! ;)

rm -r only works when everything's in place. ;) But nice joke.
Neo Undelia
25-08-2007, 03:05
This is why I use Windows.
Kryozerkia
25-08-2007, 03:15
rm -r only works when everything's in place. ;) But nice joke.

I know that. I just wanted to be an unhelpful jackass.
UpwardThrust
25-08-2007, 03:24
This is why I use Windows.

If windows did everything I wanted it to do correctly I would use it 100 percent of the time.

But atlass despite many peoples belief that it is the solution for everything it be not for me
Neo Undelia
25-08-2007, 04:22
If windows did everything I wanted it to do correctly I would use it 100 percent of the time.

But atlass despite many peoples belief that it is the solution for everything it be not for me

What are you doing that doesn't work on windows? Have you tried Mac?
Posi
25-08-2007, 04:53
This is why I use Windows.Considering he is installing the most technical distro with any popularity, he probably likes Linux.
Posi
25-08-2007, 04:54
What are you doing that doesn't work on windows? Have you tried Mac?Run a server without a gui, for starters.
UpwardThrust
25-08-2007, 07:17
What are you doing that doesn't work on windows? Have you tried Mac?

A variatey of stuff web servers (Mysql PHP primarily) Windows IIS does not do it well
AODV ad hoc network performance testing

Also run a honeynet combined with 3 snort IDS's

Internal and external file servers

NS2

All of them done better easier and faster on*nix while being more secure (and stuff like AODV which is almost impossible on any other platform)

As for MAC they are closer but their performance and expense do not meet my requirements. That and coming from a FreeBSD background it is again simpler and easier along with better performing for me to simply use the tools I know without different hardware


Edit: My point is that some things are done better on other platforms and I virtualize or run them on a variety of machines. Now windows does some things good so for a standard desktop and my gaming machine I use Windows as well as my primary workstation at work as well, with us being a windows shop it would not make sense to do otherwise.

For me at least there is no one size fits all so I tailor to the situation and what it calls for, virtualization makes this easy to do and combine that with having a good solid amount of hardware (at home) and good budget(at work) you can avoid trying to shoehorn a one size fits all solution.

(and if I was forced to that "one size fits all solution would not be windows)
UpwardThrust
25-08-2007, 07:19
Run a server without a gui, for starters.

Point set match lol exactly ... I do not have a single machine with a gui on and only on virtual (which I just have to run Apps over remoteX sessions)
Jeruselem
25-08-2007, 12:35
I've tried installing two Linux distros on a Microsoft Virtual PC 2007 - except getting the GUI to work was impossible because Linux assumes you have 24-bit video card and VPC 2007 emulates a horrible S3 16-bit card.

I'm not installing Linux as my live OS on my ASUS A8JP laptop because I need XP for work on it. And Ubuntu 7.04 apparently has driver bug which keeps the webcam running really hot even if you're not using the built-in webcam.
Librazia
25-08-2007, 15:09
I've tried installing two Linux distros on a Microsoft Virtual PC 2007 - except getting the GUI to work was impossible because Linux assumes you have 24-bit video card and VPC 2007 emulates a horrible S3 16-bit card.

I'm not installing Linux as my live OS on my ASUS A8JP laptop because I need XP for work on it. And Ubuntu 7.04 apparently has driver bug which keeps the webcam running really hot even if you're not using the built-in webcam.

Linux doesn't assume anything above a VGA is your card. I think you are talking about X11. And if you edit xorg.conf or XF86.conf, you can set the colour depth to 16-bit.
Jeruselem
25-08-2007, 15:12
Linux doesn't assume anything above a VGA is your card. I think you are talking about X11. And if you edit xorg.conf or XF86.conf, you can set the colour depth to 16-bit.

I could but I was using Live distros that come on those CDs.

For stupidity, I tried Redhat 6.2 but found out later you can't install that version of Redhat on VPC 2007 if you have a Pentium 4 based CPU (I have a Core 2 Duo Merom).
Johnny B Goode
25-08-2007, 15:14
I know that. I just wanted to be an unhelpful jackass.

Everybody's gotta have a hobby.
UpwardThrust
25-08-2007, 16:29
I've tried installing two Linux distros on a Microsoft Virtual PC 2007 - except getting the GUI to work was impossible because Linux assumes you have 24-bit video card and VPC 2007 emulates a horrible S3 16-bit card.

I'm not installing Linux as my live OS on my ASUS A8JP laptop because I need XP for work on it. And Ubuntu 7.04 apparently has driver bug which keeps the webcam running really hot even if you're not using the built-in webcam.

Sorry cant be a help with the first part I do almost exclusively VMWARE server and never had a single problem virtualizing

As far as it goes I normal y keep my distro's away from laptops (except for the AODV stuff)

There are problems with my broadcom on my VX2000 laptop as well ... though I got thoes working with NDISWrapper
Johnny B Goode
25-08-2007, 17:12
Considering he is installing the most technical distro with any popularity, he probably likes Linux.

I did? Kewl.
UpwardThrust
26-08-2007, 05:05
I did? Kewl.

Yeah compared to some of the others it is a challenge, and if you choose a non vanilla install it is even more difficult.
Jeruselem
26-08-2007, 12:27
Sorry cant be a help with the first part I do almost exclusively VMWARE server and never had a single problem virtualizing

As far as it goes I normal y keep my distro's away from laptops (except for the AODV stuff)

There are problems with my broadcom on my VX2000 laptop as well ... though I got thoes working with NDISWrapper

I'd use VMWare but it's not free like VPC 2007 is. I don't think Linux and laptops really mix unless you plan hack around with drivers that don't work. Laptops always tend to use exotic hardware which even Windows has trouble with.
Johnny B Goode
26-08-2007, 15:34
Yeah compared to some of the others it is a challenge, and if you choose a non vanilla install it is even more difficult.

Non-vanilla meaning without a GUI?
Librazia
26-08-2007, 16:38
Non-vanilla meaning without a GUI?

I think he meant if you didn't follow the Gentoo handbook exactly. You may have had to deviate from it to use LVM, RAID, or other more advanced things. And really, a vanilla Gentoo install has no GUI, you have to set that up yourself.

@Jerusalem: Look into VMWare Server. It is free, and allows you to create your own VMs and everything. I think it lacks some of VMWare workstation's features, but is still very featureful.
Johnny B Goode
26-08-2007, 17:56
I think he meant if you didn't follow the Gentoo handbook exactly. You may have had to deviate from it to use LVM, RAID, or other more advanced things. And really, a vanilla Gentoo install has no GUI, you have to set that up yourself.

@Jerusalem: Look into VMWare Server. It is free, and allows you to create your own VMs and everything. I think it lacks some of VMWare workstation's features, but is still very featureful.

Oh. I know you have to set X up yourself. I understand now.
Johnny B Goode
26-08-2007, 20:53
I have another problem now, I can't find usr/src/linux (symlink) or the regular src folder.
UpwardThrust
27-08-2007, 00:07
I'd use VMWare but it's not free like VPC 2007 is. I don't think Linux and laptops really mix unless you plan hack around with drivers that don't work. Laptops always tend to use exotic hardware which even Windows has trouble with.

VMware server has been free for like a year now
UpwardThrust
27-08-2007, 00:09
I think he meant if you didn't follow the Gentoo handbook exactly. You may have had to deviate from it to use LVM, RAID, or other more advanced things. And really, a vanilla Gentoo install has no GUI, you have to set that up yourself.

@Jerusalem: Look into VMWare Server. It is free, and allows you to create your own VMs and everything. I think it lacks some of VMWare workstation's features, but is still very featureful.

True when you trim it for performance and odd hardware THATS when it gets intresting

IT is a powerful distro performance and customizability wise but its greatest benifits make it sometimes harder then the average.
Posi
27-08-2007, 00:23
I have another problem now, I can't find usr/src/linux (symlink) or the regular src folder.emerge gentoo-sources
Johnny B Goode
27-08-2007, 00:26
emerge gentoo-sources

Thanks. The install failed, so I'm stuck recovering my system (don't lose any data, though) AGAIN. Oy...
Posi
27-08-2007, 00:36
Thanks. The install failed, so I'm stuck recovering my system (don't lose any data, though) AGAIN. Oy...Yes, Gentoo is fun to install. It is considered a feat to do it in less than 3 days. However, after that you should never have to reinstall as you will have the skills to fix anything.
Johnny B Goode
27-08-2007, 00:46
Yes, Gentoo is fun to install. It is considered a feat to do it in less than 3 days. However, after that you should never have to reinstall as you will have the skills to fix anything.

It is? Wow...maybe I should have stuck with Caldera.
Posi
27-08-2007, 00:52
It is? Wow...maybe I should have stuck with Caldera.I would have. It had a great installer.
Posi
27-08-2007, 01:05
I know. And I had a version that was a few years out of date. (It had Perl 5.6 and a sneak preview of KDE 2)KDE 2 is pimp. It makes Motif looks like a pile of shit.
Johnny B Goode
27-08-2007, 01:05
I would have. It had a great installer.

I know. And I had a version that was a few years out of date. (It had Perl 5.6 and a sneak preview of KDE 2)
Rejistania
27-08-2007, 01:32
Yes, Gentoo is fun to install. It is considered a feat to do it in less than 3 days. However, after that you should never have to reinstall as you will have the skills to fix anything.
meh, except mayor filesystem screwups. That was the reason why I reinstalled her (in just 2 days).
Jeruselem
27-08-2007, 01:42
VMware server has been free for like a year now

I'll try it. :)
Posi
27-08-2007, 01:45
meh, except mayor filesystem screwups. That was the reason why I reinstalled her (in just 2 days).Yeah, I guess that, and a couple other things are impossible to recover from.

BTW, what happened? Lost power?
UpwardThrust
27-08-2007, 01:49
I'll try it. :)

I like it ... :)

Word of warning though it has some cool features but the remote console thing in server needs a revamp

Working on the local machine easy
Working on a remote machine fine if you are on a lan (SOME lag)

But dont even ATTEMPT over the internet and be wary if remoting into a machine which then remotes into vmware keystroke duplication can be a pain

(the remote console uses like 1-2 megs per sec SERIOUSLY)

Other then that its beens table and works good for even small scale deployment with the free version

Edit: and the free version also has linux support for the HOST OS I am running a debian box to lower overhead of the host OS on mine (which is the reason I learned debian in the first place)
Johnny B Goode
27-08-2007, 14:33
KDE 2 is pimp. It makes Motif looks like a pile of shit.

Feh. It just seemed too Windows-like for me when I used it. Besides, I couldn't connect to the net on my Caldera.
Johnny B Goode
27-08-2007, 16:39
KDE 2 is pimp. It makes Motif looks like a pile of shit.

Too Windows-like for me.
Posi
27-08-2007, 17:10
Feh. It just seemed too Windows-like for me when I used it. Besides, I couldn't connect to the net on my Caldera.Try the following commands:
windows --off
internet --on --fast
Johnny B Goode
27-08-2007, 21:32
Try the following commands:
windows --off
internet --on --fast

Posi, do you actually think I'm noobish enough with Linux to think that'll work?