Pagina 1 di 1

sapere in quale delle due partizioni mi trovo...?

Inviato: martedì 8 giugno 2010, 9:33
da luchicè
ciao ragazzi questo è il mio fdisk -l

Codice: Seleziona tutto

deepcosco@deepcoscopc:~$ sudo fdisk -l
[sudo] password for deepcosco: 

Disco /dev/sda: 160.0 GB, 160041885696 byte
255 testine, 63 settori/tracce, 19457 cilindri
Unità = cilindri di 16065 * 512 = 8225280 byte
Identificativo disco: 0x3dff3dfe

Dispositivo Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        9662    77606672+  83  Linux
/dev/sda2            9662       19457    78681441+   5  Esteso
/dev/sda5           18716       19457     5960083+  82  Linux swap / Solaris
/dev/sda6            9662       18341    69711872   83  Linux
/dev/sda7           18341       18715     3007488   82  Linux swap / Solaris

Le voci nella tabella delle partizioni non sono nello stesso ordine del disco
deepcosco@deepcoscopc:~$ 

come si vede ho due partizioni in una ho ubuntu 9.04 da cui vi sto scrivendo l'altra era anche è la 10.04, ma dopo un aggiornamento non mi è più partita e quindi non la sto utilizzando, ora vorrei mettere al posto di quella che non mi parte (10.04) un altro sistema operativo ad esempio kubuntu, ma come faccio a sapere all'installazione su quale partizione devo scrivere kubuntu? in parole povere vorrei scrivere la nuova kubuntu sulla 10.04 inutilizzabile e mantenermi la attuale 9.04
non so se sono riuscito a spiegarmi..
grazie ;D

Re: sapere in quale delle due partizioni mi trovo...?

Inviato: martedì 8 giugno 2010, 9:51
da ethyl
leggi il file di grub, che se è grub2 dovresti leggere così:

Codice: Seleziona tutto

cat /boot/grub/grub.cfg
e scopri dove sei.

Un consiglio:non ti servono 2 partizioni di swap ( è spazio sprecato ). Anche se installi 10 distro linux diverse, puoi usare lo swap che hai installato la prima volta.

Re: sapere in quale delle due partizioni mi trovo...?

Inviato: martedì 8 giugno 2010, 9:54
da luchicè
deepcosco@deepcoscopc:~$ cat /boot/grub/grub.cfg
cat: /boot/grub/grub.cfg: Nessun file o directory
deepcosco@deepcoscopc:~$


ma le swap me le aveva create all'installazione della successiva distro immagino...il problema è che non so usaregparted per metterle assieme..

Re: sapere in quale delle due partizioni mi trovo...?

Inviato: martedì 8 giugno 2010, 9:55
da luchicè
intendevi questo?

Codice: Seleziona tutto

deepcosco@deepcoscopc:~$ cat /boot/grub/menu.lst
# menu.lst - See: grub(8), info grub, update-grub(8)
#            grub-install(8), grub-floppy(8),
#            grub-md5-crypt, /usr/share/doc/grub
#            and /usr/share/doc/grub-doc/.

## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not use 'savedefault' or your
# array will desync and will not let you boot your system.
default		0

## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout		2

## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
hiddenmenu

# Pretty colours
#color cyan/blue white/blue

## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line)  and entries protected by the
# command 'lock'
# e.g. password topsecret
## password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret

#
# examples
#
# title		Windows 95/98/NT/2000
# root		(hd0,0)
# makeactive
# chainloader	+1
#
# title		Linux
# root		(hd0,1)
# kernel	/vmlinuz root=/dev/hda2 ro
#

#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST

### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below

## DO NOT UNCOMMENT THEM, Just edit them to your needs

## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
##      kopt_2_6_8=root=/dev/hdc1 ro
##      kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=UUID=5c311091-0dc7-4d0a-b3a0-b74db4eea99e ro

## default grub root device
## e.g. groot=(hd0,0)
# groot=5c311091-0dc7-4d0a-b3a0-b74db4eea99e

## should update-grub create alternative automagic boot options
## e.g. alternative=true
##      alternative=false
# alternative=true

## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
##      lockalternative=false
# lockalternative=false

## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet

## should update-grub lock old automagic boot options
## e.g. lockold=false
##      lockold=true
# lockold=false

## Xen hypervisor options to use with the default Xen boot option
# xenhopt=

## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0

## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
##      altoptions=(recovery) single
# altoptions=(recovery mode) single

## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
##      howmany=7
# howmany=all

## specify if running in Xen domU or have grub detect automatically
## update-grub will ignore non-xen kernels when running in domU and vice versa
## e.g. indomU=detect
##      indomU=true
##      indomU=false
# indomU=detect

## should update-grub create memtest86 boot option
## e.g. memtest86=true
##      memtest86=false
# memtest86=true

## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false

## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false

## ## End Default Options ##

title		Ubuntu 9.04, kernel 2.6.28-19-generic
uuid		5c311091-0dc7-4d0a-b3a0-b74db4eea99e
kernel		/boot/vmlinuz-2.6.28-19-generic root=UUID=5c311091-0dc7-4d0a-b3a0-b74db4eea99e ro quiet 
initrd		/boot/initrd.img-2.6.28-19-generic
quiet

title		Ubuntu 9.04, kernel 2.6.28-19-generic (recovery mode)
uuid		5c311091-0dc7-4d0a-b3a0-b74db4eea99e
kernel		/boot/vmlinuz-2.6.28-19-generic root=UUID=5c311091-0dc7-4d0a-b3a0-b74db4eea99e ro  single
initrd		/boot/initrd.img-2.6.28-19-generic

title		Ubuntu 9.04, kernel 2.6.28-18-generic
uuid		5c311091-0dc7-4d0a-b3a0-b74db4eea99e
kernel		/boot/vmlinuz-2.6.28-18-generic root=UUID=5c311091-0dc7-4d0a-b3a0-b74db4eea99e ro quiet 
initrd		/boot/initrd.img-2.6.28-18-generic
quiet

title		Ubuntu 9.04, kernel 2.6.28-18-generic (recovery mode)
uuid		5c311091-0dc7-4d0a-b3a0-b74db4eea99e
kernel		/boot/vmlinuz-2.6.28-18-generic root=UUID=5c311091-0dc7-4d0a-b3a0-b74db4eea99e ro  single
initrd		/boot/initrd.img-2.6.28-18-generic

title		Ubuntu 9.04, kernel 2.6.28-11-generic
uuid		5c311091-0dc7-4d0a-b3a0-b74db4eea99e
kernel		/boot/vmlinuz-2.6.28-11-generic root=UUID=5c311091-0dc7-4d0a-b3a0-b74db4eea99e ro quiet 
initrd		/boot/initrd.img-2.6.28-11-generic
quiet

title		Ubuntu 9.04, kernel 2.6.28-11-generic (recovery mode)
uuid		5c311091-0dc7-4d0a-b3a0-b74db4eea99e
kernel		/boot/vmlinuz-2.6.28-11-generic root=UUID=5c311091-0dc7-4d0a-b3a0-b74db4eea99e ro  single
initrd		/boot/initrd.img-2.6.28-11-generic

title		Ubuntu 9.04, memtest86+
uuid		5c311091-0dc7-4d0a-b3a0-b74db4eea99e
kernel		/boot/memtest86+.bin
quiet

### END DEBIAN AUTOMAGIC KERNELS LIST
deepcosco@deepcoscopc:~$ 
metto anche gparted

Re: sapere in quale delle due partizioni mi trovo...?

Inviato: martedì 8 giugno 2010, 10:05
da ethyl
stai usando il grub-legacy quindi. Ad ogni modo la 10.04 non ti parte semplicemente perchè non c'è nel grub.
Sei in sda1

Re: sapere in quale delle due partizioni mi trovo...?

Inviato: martedì 8 giugno 2010, 10:12
da luchicè
dal grub l'avevo tolta io dalla lista poichè era al vertice e dato che poi non mi partiva ho preferito mettere come unica scelta la 9.04..
grazie aallora sono in sda1 da cosa lo si capisce? dal grub o dal gparted? mi dici come?

Re: sapere in quale delle due partizioni mi trovo...?

Inviato: martedì 8 giugno 2010, 10:19
da ethyl

Codice: Seleziona tutto

blkid /dev/sda1

controlla che il valore sia uguale a
5c311091-0dc7-4d0a-b3a0-b74db4eea99e

Re: sapere in quale delle due partizioni mi trovo...?

Inviato: martedì 8 giugno 2010, 14:38
da patel
molto più semplice dare il comando mount e vedere dove è /

Re: sapere in quale delle due partizioni mi trovo...?

Inviato: giovedì 10 giugno 2010, 8:19
da luchicè
ovvero?? mi fa un esempio?? basta digitare mount nel terminale?

Re: sapere in quale delle due partizioni mi trovo...?

Inviato: giovedì 10 giugno 2010, 9:48
da patel
non ci hai nemmeno provato  (nono) :(

Re: sapere in quale delle due partizioni mi trovo...?

Inviato: venerdì 11 giugno 2010, 7:20
da luchicè
deepcosco@deepcosco:~$ mount
/dev/sda1 on / type ext4 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
none on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
none on /dev type devtmpfs (rw,mode=0755)
none on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
none on /dev/shm type tmpfs (rw,nosuid,nodev)
none on /var/run type tmpfs (rw,nosuid,mode=0755)
none on /var/lock type tmpfs (rw,noexec,nosuid,nodev)
none on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
deepcosco@deepcosco:~$

Re: sapere in quale delle due partizioni mi trovo...?

Inviato: venerdì 11 giugno 2010, 8:03
da steff
Apri gparted o il gestore dischi e assegni etichette alle partizioni, per il futuro. Poi devi usare sempre il procedimento manuale per assegnare la partizione, altrimenti l'installatore ti fa solo casino e un altra swap  8)

Re: sapere in quale delle due partizioni mi trovo...?

Inviato: venerdì 11 giugno 2010, 9:01
da patel
luchicè ha scritto: deepcosco@deepcosco:~$ mount
/dev/sda1 on / type ext4 (rw,errors=remount-ro)
da qui puoi vedere che stai utilizzando il sistema in sda1 (on / ) e lo potevi vedere anche dalla schermata di Gparted