LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-02-2002, 01:17 AM   #16
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: 48

run

fdisk /dev/hda

and post the partition table from there.
 
Old 11-02-2002, 09:20 AM   #17
Grim Reaper
Member
 
Registered: Apr 2002
Distribution: Gentoo 2006.0 AMD64
Posts: 399

Original Poster
Rep: Reputation: 30
Code:
disk /dev/hda: 255 heads, 63 sectors, 4865 cylinders
units = cylinders of 16065 * 512 bytes

Device          Boot     Start     End       Blocks             ID       System
/dev/hda1       *          1        470      3775243+        7    HPFS/NTFS
/dev/hda2                  471     4865    35302837+      f     Win95 Ext'd (LBA)
/dev/hda5                  471     918      3598528+        83   Linux
/dev/hda6                  919     4865    31704246        b     Win95 FAT32
 
Old 11-02-2002, 12:15 PM   #18
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: 48
Well, it looks like all of your disk space is being used, and that the
partition table knows that your /dev/hda5 partition has ~3.5GB.
Try:

tune2fs -m 3 /dev/hda5

This reserves 3% of hda5 for superuser stuff (it's usually set to 10%,
changing the reserve may refresh the filesystem)
(man tune2fs)
 
Old 11-02-2002, 01:38 PM   #19
Bert
Senior Member
 
Registered: Jul 2001
Location: 406292E 290755N
Distribution: GNU/Linux Slackware 8.1, Redhat 8.0, LFS 4.0
Posts: 1,004

Rep: Reputation: 46
I expect moses should be an expert on partitioning.


Bert
 
Old 11-02-2002, 03:55 PM   #20
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: 48
Yeah, I've had *years* of practice.
 
Old 11-02-2002, 07:39 PM   #21
Grim Reaper
Member
 
Registered: Apr 2002
Distribution: Gentoo 2006.0 AMD64
Posts: 399

Original Poster
Rep: Reputation: 30
Code:
root@gardiner_desk:~# tune2fs -m 3 /dev/hda5
tune2fs 1.27 (8-Mar-2002)
Setting reserved blocks percentage to 3 (20844 blocks)
root@gardiner_desk:~# df -h
Filesystem    Size    Used   Avail   Use%    Mounted On
/dev/hda5     2.6g    2.6g     0     100%        /
/dev/hda6     30g     30g     937m    97%     /stuff
ok, so fdisk seems to report that it is 3.5gig? but df -h doesn't, plus i can't install anything more because it thinks there isn't enough space, so im pretty much in a hole, i can't even start X via my normal user...

any more idea's? /me prays this doesn't require a format
 
Old 11-02-2002, 09:06 PM   #22
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: 48
No, don't format, don't reinstall.

Try starting up fdisk /dev/hda
and writing the partition table. (don't change anything, just start fdisk, then
use "w" to write and quit fdisk.)
 
Old 11-03-2002, 12:28 AM   #23
Grim Reaper
Member
 
Registered: Apr 2002
Distribution: Gentoo 2006.0 AMD64
Posts: 399

Original Poster
Rep: Reputation: 30
k ill give that a shot...

btw, i was just going through the log files and in the messages log, its full of this, and im pretty sure these aren't meant to be there?:

http://jericho.ath.cx/messages (this file is only the last bit of the messages log, but the rest of the messages file (the 3.8meg left) is pretty much full of
Oct 24 05:40:20 gardiner_desk kernel: 02:00: rw=0, want=6875, limit=1440
Oct 24 05:40:20 gardiner_desk kernel: attempt to access beyond end of device
that sort of thing...))

http://jericho.ath.cx/messages4m (this one is the complete file, which is 4 meg)

so if you want to take a look at the complete messages file which is 4meg big, its the 4m file, the other one is just the last little bit of messages...


Edit: ok i tried that...i tried it while in linux, then rebooted using the cd, and tried that way...but df -h is still reporting that 2.6gig is the size, and that 2.6g is used...

Last edited by Grim Reaper; 11-03-2002 at 12:38 AM.
 
Old 11-03-2002, 02:03 AM   #24
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: 48
That access beyond end of device error is not good, but there is good
news -- at least in the smaller messages file, the last date of that error
was on the 24th of October. It looks like you've gone since then w/o
that error.

You say you can reboot with the CD? What happens if you mount the
disk after booting with the CD, and doing a df?
(so, do something like:)

boot CD

mount /dev/hda5 /mnt
df /mnt

Also, if you use LILO and not GRUB, try editing your /etc/lilo.conf and
adding (near the top, maybe after the "append=" line if you have one)
the line:

lba32

************then run lilo.***************
YOU NEED TO RUN lilo

You might have to remove something to do this, try removing some of
those large log files. . .

Last edited by moses; 11-03-2002 at 04:15 AM.
 
Old 11-03-2002, 03:24 AM   #25
Grim Reaper
Member
 
Registered: Apr 2002
Distribution: Gentoo 2006.0 AMD64
Posts: 399

Original Poster
Rep: Reputation: 30
i booted in with the cd and mount /dev/hda5 on /test and did a df -h and i got the same results...2.6g size, 2.6g used...

i edited /etc/lilo.conf and added 'lba32' just before it has timeout=1000, i then booted in and did a df -h and the same results again...

im getting the feeling we're running out of options
 
Old 11-03-2002, 04:37 AM   #26
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: 48
We're always more in danger of running out of patience than options. . .

=-}

post the output of:

fdisk
x
p

(go into expert mode, print the partition table from there)

Use parted to check to see if you have any errors on your partition, in
the parted prompt, use
check 5

You can get the manual for parted here:
http://www.gnu.org/manual/parted-1.6...no/parted.html
This also has a link for a parted boot disk, which you may need. You
might consider using the bootdisk to try to "rescue" the old partition
and start over with resizing the partitions.
 
Old 11-03-2002, 11:31 PM   #27
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: 48
Also, you might try

hdparm -z /dev/hda

(man hdparm, this forces a reread of the partition table, may work, may not)
 
Old 11-03-2002, 11:33 PM   #28
Grim Reaper
Member
 
Registered: Apr 2002
Distribution: Gentoo 2006.0 AMD64
Posts: 399

Original Poster
Rep: Reputation: 30
here is the output of print in expert:

Code:
Expert command (m for help): p

Disk /dev/hda: 255 heads, 63 sectors, 4865 cylinders

Nr AF  Hd Sec  Cyl  Hd   Sec  Cyl    Start     Size    ID
 1 80   1     1    0     254   63   469     63  7550487  07
 2 00   0     1  470   254   63  1023  7550550 70605675 0f
 3 00   0     0    0      0      0     0         0       0        00
 4 00   0     0    0      0      0     0         0       0        00
 5 00   1     1  470  254    63   917       63 7197057   83
 6 00   1     1  918  254    63  1023      63 63408492    0b
im about to reboot and try that check 5 thing...


Edit:
i just tried to boot off of the disk i made via their instructions, but just before you hit enter to boot off the floppy it says "You'll be told when to insert the second floppy" too bad ive never been TOLD about a second floppy...so i hit enter anyway...it detects hardware, etc then comes to tell me to insert the floppy:
Insert root floppy disk to be loaded into RAM disk and press enter...
second disk? wtf?

Last edited by Grim Reaper; 11-03-2002 at 11:42 PM.
 
Old 11-03-2002, 11:49 PM   #29
Grim Reaper
Member
 
Registered: Apr 2002
Distribution: Gentoo 2006.0 AMD64
Posts: 399

Original Poster
Rep: Reputation: 30
k i attempted the hdparm thing but failed...i booted off the cdrom, and the hdparm command wasn't even recognised, and when i try it while booted up normally i get:
bash-2.05a# hdparm -z /dev/hda

/dev/hda:
BLKRRPART failed: Device or resource busy

which is understandable...heh
 
Old 11-04-2002, 12:51 AM   #30
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: 48
Ok, get a floppy disk, make an ext2 filesystem on it, and put the
following files on that disk:

libdl.so.2
libparted-1.6.so.0
libuuid.so.1
libncurses.so.5
libreadline.so.4
parted

Do:
ldd /path/to/parted
to find the path to the libraries. You'll only need the above -- probably
not even libncurses or libreadline or libdl, but they'll fit on the disk. If
you want, try not putting on libncurses or libreadline and put hdparm on
instead, though I don't think you'll need it.

Once you have those all on a floppy, sync the disks (use the sync
command), and reboot with the CDROM.

mount /dev/fd0 /mnt
cd /mnt
export LD_LIBRARY_PATH=.
parted

Last edited by moses; 11-04-2002 at 12:54 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


All times are GMT -5. The time now is 06:23 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration