19.03.2024, 09:47 UhrDeutsch | English
Hallo Gast [ Registrierung | Anmelden ]

Neues Thema eröffnen   Neue Antwort erstellen
Vorheriges Thema anzeigen Druckerfreundliche Version Einloggen, um private Nachrichten zu lesen Nächstes Thema anzeigen
Autor Nachricht
2radical
Titel: partition info  BeitragVerfasst am: 04.07.2006, 01:00 Uhr



Anmeldung: 07. Dez 2005
Beiträge: 369
Wohnort: Port Angeles, Wa. USA
If somebody could help me understand cfdisk's information display, I would be grateful. I have a 40GB ATA HD (dev/hda). Here is output of cfdisk:

cfdisk 2.12r

Disk Drive: /dev/hda
Size: 40020664320 bytes, 40.0 GB
Heads: 255 Sectors per Track: 63 Cylinders: 4865

Name Flags Part Type FS Type [Label] Size (MB)
----------------------------------------------------------------------------------------------------
hda1 Boot, NC Primary Linux ReiserFS 10000.01 *
Primary Free Space 1.94 *
hda2 Primary Linux swap / Solaris 526.42
hda5 Logical Linux ReiserFS 9829.21
hda6 Logical Linux ReiserFS 9829.21
Pri/Log Free Space 9829.21

I'm kinda ignorant regarding these matters, but I notice that under hda1 primary free space is listed as 1.94 MB, & at the bottom, Pri/Log Free Space lists 9829.21 MB as being free. (I'm assuming that /dev/hda3 is the extended partition.) So a question that comes to my mind is, Does the bottom line mean the 9829.21 MB of HD space (approx 10MB) is shared between the primary & logical partitions? I don't want to run out of room to add stuff to my main system should the need arise. My apologies if this is a dumb question, but I'd feel dumber if I didn't ask Smilie I plan to use hda6 as a backup partition. Thanks--kurt

_________________
illegitimati non carborundum
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
schnorrer
Titel: partition info  BeitragVerfasst am: 04.07.2006, 01:35 Uhr



Anmeldung: 09. Jan 2006
Beiträge: 1720

has old dependecies how to partition a hd.

all part. begin at track X head 0 sect. 0
Very early HD's are having a format head up to 15, sectors up 27, and tracks vary from 1 to 1023.
This old geometrie is used for partitioning, but the real geometry for a hd has chenged.
On most trks there are much more sect. on it, than these 27 sect.

Ex. asume we have 200 tracks each with 255 sectors, and you beginn to partition the hd, this old sheme is used.
track=0 head=0 sector=1 and a translation to 64 sectors per track and say we will have 200 trackes for our part. Guess where the part. ends. Right 4 sectors before the real end of the track.

The diffrence between the biginning of the next part and the previous ist what you see as wasted and free gap in the partitiontable.

This gap couldn't used as a seperate part. But hda1 can be enlagred to the end of this gap.
hope it is clear desrcibed.
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
2radical
Titel: RE: partition info  BeitragVerfasst am: 04.07.2006, 03:29 Uhr



Anmeldung: 07. Dez 2005
Beiträge: 369
Wohnort: Port Angeles, Wa. USA
Hi schnorrer--
"hope it is clear desrcibed." Pretty much (sorta), considering difference in language...I wonder how to enlarge hda1--

logical /dev/hda6
blocks 9598806
start 2476 end 3670
9828MB
16 heads
63 sectors/track
19045 cylinders

_________________
illegitimati non carborundum
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
piper
Titel: RE: partition info  BeitragVerfasst am: 04.07.2006, 04:30 Uhr
Team Member
Team Member


Anmeldung: 03. Mai 2005
Beiträge: 1544
Wohnort: out there somewhere
I think gparted resizes

or you can use

Hiren's BootCD 8.1

Hiren's BootCD 8.1 ISO

_________________
h2's d-u script
h2's rdiff-backup script
 
 Benutzer-Profile anzeigen Private Nachricht senden Website dieses Benutzers besuchen  
Antworten mit Zitat Nach oben
2radical
Titel: RE: partition info  BeitragVerfasst am: 04.07.2006, 05:11 Uhr



Anmeldung: 07. Dez 2005
Beiträge: 369
Wohnort: Port Angeles, Wa. USA
Before I go resizing anything, my question:
Does the bottom line mean the 9829.21 MB of HD space (approx 10MB), is shared between the primary & logical partitions?
I don't think was answered. If it is avaliable as free space I might not need to resize. Am I making sense?

_________________
illegitimati non carborundum
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
devil
Titel: RE: partition info  BeitragVerfasst am: 04.07.2006, 05:52 Uhr
Team Member
Team Member


Anmeldung: 06. Mai 2005
Beiträge: 3087
Wohnort: berlin
kurt,
the almost 10gig at the bottom are free space and can be made into a partition.
the almost 2 mb of free space after hda1 arise from the fact that you tried to create 10 gig partitions.
partitions are made up by sectors, so 10 gig flat is not always possible, so cfdisk made one 10 gig,and 2 with 9829.21 . the diff to 10 gig adds up to those almost 2mb.

greetz
devil

_________________
<<We are Xorg - resistance is futile - you will be axximilated>>

Host/Kernel/OS "devilsbox" running[2.6.19-rc1-git5-kanotix-1KANOTIX-2006-01-RC4 ]
CPU Info AMD Athlon 64 3000+ clocked at [ 803.744 MHz ]
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
2radical
Titel: RE: partition info  BeitragVerfasst am: 04.07.2006, 06:07 Uhr



Anmeldung: 07. Dez 2005
Beiträge: 369
Wohnort: Port Angeles, Wa. USA
devil28:
Oh so you are saying that if I use gparted (I have livecd 0.2.3) I can resize (increase) hda1several gig?

_________________
illegitimati non carborundum
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
h2
Titel: RE: partition info  BeitragVerfasst am: 04.07.2006, 06:09 Uhr



Anmeldung: 12. Mar 2005
Beiträge: 1005

If you resize, make sure you do a backup of all your hda1 data before you start, a physical copy would not be a bad idea, there is a chance of complete failure.

_________________
Read more on dist-upgrades using du-fixes-h2.sh script.
New: rdiff-backup script
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
2radical
Titel: RE: partition info  BeitragVerfasst am: 04.07.2006, 06:23 Uhr



Anmeldung: 07. Dez 2005
Beiträge: 369
Wohnort: Port Angeles, Wa. USA
OK, I was going to backup everything to hda6, but am waiting for a reply to this: http://kanotix.com/PNphpBB2-viewtopic-t ... rt-15.html
before I proceed (hint)
Thanks

_________________
illegitimati non carborundum
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
SaberBlaze
Titel:   BeitragVerfasst am: 04.07.2006, 10:45 Uhr



Anmeldung: 22. Jun 2006
Beiträge: 49

Best partitioner in Hiren's Boot CD is Paragon Partition Manager. I definately recommend it over partition magic.
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
schnorrer
Titel: RE: partition info  BeitragVerfasst am: 04.07.2006, 10:45 Uhr



Anmeldung: 09. Jan 2006
Beiträge: 1720

I'd never do this enlargement. The sector-count for the inodes somtimes does not fit with the blockcount.

A repartitioning with a other fdisk is the better way.
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
piper
Titel:   BeitragVerfasst am: 04.07.2006, 15:10 Uhr
Team Member
Team Member


Anmeldung: 03. Mai 2005
Beiträge: 1544
Wohnort: out there somewhere
SaberBlaze hat folgendes geschrieben::
Best partitioner in Hiren's Boot CD is Paragon Partition Manager. I definately recommend it over partition magic.


I agree 100% with Paragon Partition Manager

_________________
h2's d-u script
h2's rdiff-backup script
 
 Benutzer-Profile anzeigen Private Nachricht senden Website dieses Benutzers besuchen  
Antworten mit Zitat Nach oben
2radical
Titel:   BeitragVerfasst am: 04.07.2006, 16:40 Uhr



Anmeldung: 07. Dez 2005
Beiträge: 369
Wohnort: Port Angeles, Wa. USA
Zitat:
I'd never do this enlargement. The sector-count for the inodes somtimes does not fit with the blockcount.

A repartitioning with a other fdisk is the better way.


Hmmm....Maybe best for me to just start all over & install Easter. The only things I really need to back up (to a CD) are .thunderbird, bookmarks.html, & a couple of directories in /home. That way I could create more HD space for the main install & another partition for backups. Hmmm....

_________________
illegitimati non carborundum
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
piper
Titel:   BeitragVerfasst am: 04.07.2006, 18:07 Uhr
Team Member
Team Member


Anmeldung: 03. Mai 2005
Beiträge: 1544
Wohnort: out there somewhere
2radical

If it were me, that is what I would do, a fresh clean start Winken

_________________
h2's d-u script
h2's rdiff-backup script
 
 Benutzer-Profile anzeigen Private Nachricht senden Website dieses Benutzers besuchen  
Antworten mit Zitat Nach oben
2radical
Titel:   BeitragVerfasst am: 05.07.2006, 06:37 Uhr



Anmeldung: 07. Dez 2005
Beiträge: 369
Wohnort: Port Angeles, Wa. USA
I installed Easter after a bit of struggling with partitioning. My attempt to backup with cp failed, so I lost all my bookmarks, mail settings, addresses, documents & a bunch of .jpeg files. That was pretty disappointing, as the CD turned out to be blank. Easter hasn't recognized the existence of one of my cd drives. It found the dvd/rw, but not the cdrom. I'm not sure at this point what to do about that. I got my printer installed OK. During the installation I specified that hda1= /home, hda2=swap, hda3=root, hda5=unused. /etc/fstab doesn't show that though. It has hda3= /media/hda3. I toggled hda3 to be bootable with cfdisk prior to installation. The installation stalled once at 65% & I had to restart 3 times. Not as easy as I was hoping for.

# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
usbfs /proc/bus/usb usbfs devmode=0666 0 0
/dev/hda1 / reiserfs defaults 0 1
/dev/hda1 /home reiserfs
reiserfs defaults 0 2
/dev/hda2 /swap reiserfs defaults 0 2
/dev/hda3 /media/hda3 reiserfs defaults 0 0
/dev/hda5 /media/hda5 reiserfs defaults 0 0
/dev/cdrom /media/cdrom0 udf,iso9660 user,noauto 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto 0 0
none /sys sysfs defaults 0 0

My partitioning setup makes a little more sense, & I should have enough space in /home now.
/home (hda1) is 20G, hda2 is /swap, hda3 is / (root)10G, hda5 is unused(5G) cfdisk shows:

Name Flags Part Type FS Type [Label] Size (MB)
----------------------------------------------------------------------------------------------------
hda1 Primary Linux ReiserFS 20003.89
hda2 Primary Linux swap / Solaris 509.97
hda3 Boot Primary Linux ReiserFS 10001.95
hda5 Logical Linux ReiserFS 5000.98
Logical Free Space 4499.23

_________________
illegitimati non carborundum
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
devil
Titel:   BeitragVerfasst am: 05.07.2006, 06:52 Uhr
Team Member
Team Member


Anmeldung: 06. Mai 2005
Beiträge: 3087
Wohnort: berlin
kurt,
you might want to remove the bootflag, linux doesnt need it. can be easily done with cfdisk.
fstab should look like:
/dev/hda1 / home reiserfs defaults 0 2
/dev/hda3 / reiserfs defaults 0 1

normally fstab would pick that up correctly after install.
maybe you could run rebuildfstab.

greetz
devil

_________________
<<We are Xorg - resistance is futile - you will be axximilated>>

Host/Kernel/OS "devilsbox" running[2.6.19-rc1-git5-kanotix-1KANOTIX-2006-01-RC4 ]
CPU Info AMD Athlon 64 3000+ clocked at [ 803.744 MHz ]
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
2radical
Titel:   BeitragVerfasst am: 05.07.2006, 08:30 Uhr



Anmeldung: 07. Dez 2005
Beiträge: 369
Wohnort: Port Angeles, Wa. USA
I used cfdisk to toggle bootable to / before installation cause I thought it was necessary.
Rebuildfstab didn't change anything. I manually edited /etc/fstab to your suggestion to read:
I would like to get my other cd drive recognized too.

# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
usbfs /proc/bus/usb usbfs devmode=0666 0 0
/dev/hda1 /home reiserfs defaults 0 2
/dev/hda2 /swap reiserfs defaults 0 2
/dev/hda3 / reiserfs defaults 0 1
/dev/hda5 /media/hda5 reiserfs defaults 0 0
/dev/cdrom /media/cdrom0 udf,iso9660 user,noauto 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto 0 0
none /sys sysfs defaults 0 0

But now I have printing problems AGAIN!! I thought Easter was supposed to be an improvement.
http://localhost:631/printers shows I have a printer installed, and it printed a test page,but Control Center doesn't show one & pops up with the same old tiresome message:

Unable to retrieve the printer list. Error message received from manager:
Connection to CUPS server failed. Check that the CUPS server is correctly installed and running. Error: host not found.

Localhost:631 shows:
EPSON_Stylus_C60_USB_1 (Default Printer)
Description: EPSON Stylus C60
Location: Local Printer
Make and Model: Epson Stylus C60 - CUPS+Gutenprint v5.0.0-rc3
Printer State: idle, accepting jobs, published.
Device URI: usb://EPSON/Stylus%20C60

I went through the same steps (except editing /etc/cupsd.conf) that fixed this situation last time with 2005-04, but it didn't work this time. I didn't even HAVE a /etc/cupsd.conf file to edit or comment out the line:
# Listen /var/run/cups/cups.sock Why I don't have one I don't know.
I'm about ready to pull my hair out, so I think I'll go to bed.

_________________
illegitimati non carborundum
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
devil
Titel:   BeitragVerfasst am: 05.07.2006, 08:35 Uhr
Team Member
Team Member


Anmeldung: 06. Mai 2005
Beiträge: 3087
Wohnort: berlin
kurt,
changing fstab didnt bring up the problem.
when easter was released, cups was working ok.
now cups is b0rked all the way and wont play.
you did the apt-get remove --purge cupsys and apt-get install bit?
you restarted cups with /etc/init.d/cupsys start?
you deleted your printer in localhost and the queu as well?
then created printer in :631 again?
that works for most people.

greetz
devil

_________________
<<We are Xorg - resistance is futile - you will be axximilated>>

Host/Kernel/OS "devilsbox" running[2.6.19-rc1-git5-kanotix-1KANOTIX-2006-01-RC4 ]
CPU Info AMD Athlon 64 3000+ clocked at [ 803.744 MHz ]
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
2radical
Titel:   BeitragVerfasst am: 05.07.2006, 20:14 Uhr



Anmeldung: 07. Dez 2005
Beiträge: 369
Wohnort: Port Angeles, Wa. USA
The printing fixes didn't make a difference. And now I have more errors at booting saying fsck died with exit status 16
file system check failed
A log is being saved in /var/log/fsck/checkfs
Please repair system manually
A maintenance shell will now be started
Ctrl-D to exit
the log doesn't tell me much, or how to fix anything.

root@WorldsEnd:/home/joyboy# cat /var/log/fsck/checkfs
Log of fsck -C -V -R -A -a
Wed Jul 5 10:05:16 2006

fsck 1.39 (29-May-2006)
Checking all file systems.
[/sbin/fsck.reiserfs (1) -- /home] fsck.reiserfs -a /dev/hda1
Partition /dev/hda1 is mounted with write permissions, cannot check it
Reiserfs super block in block 16 on 0x301 of format 3.6 with standard journal
Blocks (total/free): 4883744/4214067 by 4096 bytes
Filesystem is NOT clean
[/sbin/fsck.reiserfs (1) -- /swap] fsck.reiserfs -a /dev/hda2
Replaying journal..
Reiserfs journal '/dev/hda2' in blocks [18..8211]: 0 transactions replayed
Checking internal tree..finished
Reiserfs super block in block 16 on 0x302 of format 3.6 with standard journal
Blocks (total/free): 124496/116281 by 4096 bytes
Filesystem is clean
Reiserfs super block in block 16 on 0x302 of format 3.6 with standard journal
Blocks (total/free): 124496/116281 by 4096 bytes
Filesystem is clean
fsck died with exit status 16

_________________
illegitimati non carborundum
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
schnorrer
Titel:   BeitragVerfasst am: 05.07.2006, 21:20 Uhr



Anmeldung: 09. Jan 2006
Beiträge: 1720

I can understand why you got those errors.

The problem with all ReiserFS is always the same. Before deleteing partitions (ReiserFS) you have to disable all the journaling on the whole hd. Than you can delete patition by partition. Than with dd if=/dev/zero of=/dev/hdX bs=1 count=64 delete the journal info on the hd. Now you are sure, that Journal is realy dissabled and you can go on with that what you want to do.

Why this way: ResierFS stores some parts of his journal in the track 0, right after grub. When you now change somting in the partitiontable, parts of not deleted ReiserFS-Jounaling-Info will take over the bootprocess and try to restore the partitions.

ReiserFS useses parts from raid5 systems, where you can change a defektiv hd by a good one without loss on data.
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
2radical
Titel:   BeitragVerfasst am: 05.07.2006, 22:09 Uhr



Anmeldung: 07. Dez 2005
Beiträge: 369
Wohnort: Port Angeles, Wa. USA
Zitat:
The problem with all ReiserFS is always the same. Before deleteing partitions (ReiserFS) you have to disable all the journaling on the whole hd. Than you can delete patition by partition. Than with dd if=/dev/zero of=/dev/hdX bs=1 count=64 delete the journal info on the hd. Now you are sure, that Journal is realy dissabled and you can go on with that what you want to do.


I wish I had known this beforehand. Now I have to start over from scratch. My second wish is that I could actually USE my system rather than repair it all the time. Weinen

Do this? (live cd)

Code:
dd if=/dev/zero of=/dev/hda bs=1 count=64


then delete partitions? (using cfdisk)
make new ones
mkreiserfs

_________________
illegitimati non carborundum
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
parintachin
Titel:   BeitragVerfasst am: 05.07.2006, 22:40 Uhr



Anmeldung: 08. Aug 2005
Beiträge: 27

in your /etc/fstab your entry for swap is wrong
it should look like this
/dev/hda2 none swap sw 0 0
swap isn't suposed to formated with reiser or ext3 it is suposed to be done with mkswap
after you have done this you can use it with swapon
hope that helps
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
2radical
Titel:   BeitragVerfasst am: 05.07.2006, 23:08 Uhr



Anmeldung: 07. Dez 2005
Beiträge: 369
Wohnort: Port Angeles, Wa. USA
parintachin: Yes that does help, thank you--kurt

root@WorldsEnd:/home/joyboy# mkswap /dev/hda2
Setting up swapspace version 1, size = 509960 kB
no label, UUID=90b1dd12-95b3-4a9c-8027-2c851f2c58fa
root@WorldsEnd:/home/joyboy# swapon

# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
usbfs /proc/bus/usb usbfs devmode=0666 0 0
/dev/hda1 /home reiserfs defaults 0 2
/dev/hda2 none swap sw ` 0 0
/dev/hda3 / reiserfs defaults 0 1
/dev/hda5 /media/hda5 reiserfs defaults 0 0
/dev/cdrom /media/cdrom0 udf,iso9660 user,noauto 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto 0 0
none /sys sysfs defaults 0 0

_________________
illegitimati non carborundum
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
Beiträge vom vorherigen Thema anzeigen:     
Gehe zu:  
Alle Zeiten sind GMT + 1 Stunde
Neues Thema eröffnen   Neue Antwort erstellen
Vorheriges Thema anzeigen Druckerfreundliche Version Einloggen, um private Nachrichten zu lesen Nächstes Thema anzeigen
PNphpBB2 © 2003-2007 
 
Deutsch | English
Logos and trademarks are the property of their respective owners, comments are property of their posters, the rest is © 2004 - 2006 by Jörg Schirottke (Kano).
Consult Impressum and Legal Terms for details. Kanotix is Free Software released under the GNU/GPL license.
This CMS is powered by PostNuke, all themes used at this site are released under the GNU/GPL license. designed and hosted by w3you. Our web server is running on Kanotix64-2006.