LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-04-2002, 01:58 AM   #31
Grim Reaper
Member
 
Registered: Apr 2002
Distribution: Gentoo 2006.0 AMD64
Posts: 399

Original Poster
Rep: Reputation: 30

k, ill give that a shot, but first i have a couple of questions (im not that advanced in linux btw..)

how can i make the floppy a ext2 filesystem?
does hdparm need any libraries too or will it just run by chucking the script/executable (which is the correct termanology?) onto the floppy and going ./hdparm -z /dev/hda

and very last, how do i sync the disks? does this _have_ to be done, and just out of interest, why would this need to be done?
 
Old 11-04-2002, 02:30 AM   #32
moses
Senior Member
 
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152

Rep: Reputation: 50
To make an ext2 filesystem on the floppy:
mke2fs /dev/fd0
(man mkfs)

hdparm only needs two libraries, and those should be on your system
already. Use the same command as before, ldd /path/to/hdparm to find
out which libraries it needs. (man ldd)
hdparm is a program, executable, whatever, but not a script. A script
is not compiled. If you aren't sure, you could always use another floppy
and put hdparm and its libs on the second floppy. . .

syncing the disks (man sync) just makes sure everything is written to
the floppy disk before you remove it. It's always a good idea to sync
the disks after copying something to a floppy since Linux waits until
the system isn't busy to actually write from memory to disk (unless you
specifically tell it to by using sync).
 
Old 11-05-2002, 12:40 AM   #33
Grim Reaper
Member
 
Registered: Apr 2002
Distribution: Gentoo 2006.0 AMD64
Posts: 399

Original Poster
Rep: Reputation: 30
OMG! you legend!
i booted up off the CDrom, mounted the floppy, did export LD_LIBRARY+PATH=. (im assuming this tells any programs to be run that their library files are located at . (the current dir)?) and then parted ran find...so then i did check 5 and got this message:
(parted) check 5
Warning: Partition 5 is 3514.188 Mb, but the file system is 2714.074 Mb.
Ignore/Cancel? C

I made it cancel it because hitting ignore was the thing that caused this no doubt, lol...at least it seems we're getting somewhere!
got any more idea's now how to fix this as it seems a bit more info has been discovered

BTW, i couldn't get hdparm to run the same way, i got some "bus error" when i tried to run it, dunno if there's any point trying to continue down this road?
 
Old 11-05-2002, 08:07 AM   #34
moses
Senior Member
 
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152

Rep: Reputation: 50
Cool.
Yeah, LD_LIBRARY_PATH says to look in the "normal" places for
libraries (/lib) AND in whatever you set the variable to, in this case the
current directory (.).

Well, I'm not actually an expert at parted, in fact I've never even used it.

Post the parted partition table information.

I'm not sure which to try first:

1) Rescueing the old partition (used to be 6), creating an ext2 filesystem
on it, then deleting it and resizing your other partition (5) to use all of
the space.

2) Resizing the partition to be just a block (or whatever unit parted
uses) or so smaller than what you originally wanted it, save that, quit
out of parted, mount the partition, check it's size. If it's what you
expect it to be, you can recover that MB or so by resizing it again, this
time to what you really wanted.

I guess you should start with 1) because if you can't rescue the
partition (6), we can just move on to 2), but if you resize (5), you
probably won't be able to rescue the old partition.

Last edited by moses; 11-05-2002 at 08:12 AM.
 
Old 11-05-2002, 11:28 PM   #35
Grim Reaper
Member
 
Registered: Apr 2002
Distribution: Gentoo 2006.0 AMD64
Posts: 399

Original Poster
Rep: Reputation: 30
FUCKIN W00000000000000000000T!!!!! i now have 700 more meg onto my linux partition and its all back and working now (apart from NVidia driver problems, for some reason they load for root, but not for my normal user account...ill start another thread for this tho )

Thank you soooo much!

In the end what fixed it was resizing partition 5 down a couple of hundred meg, rebooted and it had 400meg freee!!! so i rebooted onto the cd again and added those 200meg back on and she worked like a dream thats the way it shoulda worked in the first place
ah well, i've learnt a bit from this experience, thanks again!
 
Old 11-05-2002, 11:44 PM   #36
moses
Senior Member
 
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152

Rep: Reputation: 50
Cool.
 
  


Reply



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
Help using parted gauntalus Linux - Software 5 12-26-2004 03:40 PM
general partitioning scheme Godsmacker777 Linux - Newbie 4 12-14-2004 09:07 AM
Using Parted Mathiasdm Linux - Software 7 08-23-2004 03:10 AM
Partitioning: GNU Parted Gerardoj Linux - General 1 06-01-2003 01:50 AM
fdisk/partitioning in general question weedwacker Linux - Newbie 2 08-13-2002 01:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:26 AM.

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
Open Source Consulting | Domain Registration