2009-11-19, 16:16
  #1
Medlem
Hejsan!
Har lite problem med mitt xp då jag råkade radera en fil som höll borta Windows Genuine. Nu kan jag inte boota datorn med Windows. Så jag tänkte att jag skulle starta datorn med Ubuntu och lägga tillbaka filen där. Problemet är att jag inte hittar C: alls i Ubuntu. Förstår inte hur jag ska komma åt den.

Googlade fram en sida där det stod att jag måste skriva massa kommandon som jag testade men det fungerade inte.
Finns det något annat sätt att komma åt c: i ubuntu?

Kör ubuntu Live CD 9.10
Citera
2009-11-19, 16:43
  #2
Medlem
adequates avatar
Citat:
Ursprungligen postat av Oldwhoodenship
Hejsan!
Har lite problem med mitt xp då jag råkade radera en fil som höll borta Windows Genuine. Nu kan jag inte boota datorn med Windows. Så jag tänkte att jag skulle starta datorn med Ubuntu och lägga tillbaka filen där. Problemet är att jag inte hittar C: alls i Ubuntu. Förstår inte hur jag ska komma åt den.

Googlade fram en sida där det stod att jag måste skriva massa kommandon som jag testade men det fungerade inte.
Finns det något annat sätt att komma åt c: i ubuntu?

Kör ubuntu Live CD 9.10
Skriv gärna vilka kommandon det var.
Citera
2009-11-19, 16:44
  #3
Medlem
# Install gparted (System → Administration → Synaptics Package Manager → search for gparted, mark it for installation and, when it installs, run it from System → Partition Editor). Look for an NTFS partition – it is likely to be the one windows is on.
# Having located the partition, write down the name – it will look something like /dev/hda2. Do this carefully – this is no time for dyslexia. Now check to see if this is the partition by manually mounting it and looking at the files.
# Open a terminal (Application → Accessories → Terminal) and make yourself root by typing sudo -s and pressing enter. You will be prompted for the root password and will then become root. Being root assumes that you know what you are doing – you could easily cause disaster if you make a mistake, so concentrate. Carefully type this line at the prompt and press enter
# mkdir /mnt/windows
# You may replace /mnt/windows with /mnt/windrv or any other name you prefer. Now, having created the directory that is going to hold your windows files, type the following command carefully at the prompt and press enter
# mount -t ntfs /dev/sda2 /mnt/windows -o "umask=022"
# Make sure you replace /dev/sda2 with the name of the windows partition you wrote down. Now access the mounted drive and ensure that you can read the files by going to Places → Computer and navigating to /mnt/windows. If you can see your files, you are all set. If not, you've mounted the wrong drive, unmount it using umount /dev/sda2, making sure that you use the correct name for your
Citera
2009-11-19, 16:46
  #4
Medlem
penol700s avatar
Citat:
Ursprungligen postat av Oldwhoodenship
# Install gparted (System → Administration → Synaptics Package Manager → search for gparted, mark it for installation and, when it installs, run it from System → Partition Editor). Look for an NTFS partition – it is likely to be the one windows is on.
# Having located the partition, write down the name – it will look something like /dev/hda2. Do this carefully – this is no time for dyslexia. Now check to see if this is the partition by manually mounting it and looking at the files.
# Open a terminal (Application → Accessories → Terminal) and make yourself root by typing sudo -s and pressing enter. You will be prompted for the root password and will then become root. Being root assumes that you know what you are doing – you could easily cause disaster if you make a mistake, so concentrate. Carefully type this line at the prompt and press enter
# mkdir /mnt/windows
# You may replace /mnt/windows with /mnt/windrv or any other name you prefer. Now, having created the directory that is going to hold your windows files, type the following command carefully at the prompt and press enter
# mount -t ntfs /dev/sda2 /mnt/windows -o "umask=022"
# Make sure you replace /dev/sda2 with the name of the windows partition you wrote down. Now access the mounted drive and ensure that you can read the files by going to Places → Computer and navigating to /mnt/windows. If you can see your files, you are all set. If not, you've mounted the wrong drive, unmount it using umount /dev/sda2, making sure that you use the correct name for your

Det där är instruktioner, inte kommandon, men det måste du väl ha förstått själv?
Citera
2009-11-19, 17:03
  #5
Medlem
Jag har testat några olika.
Exakt så här skrev jag i min terminal:

cd/ mnt
sudo mkdirv windrive
sudo mount -t ntfs /dev/sda1 /mnt/windrive -o "unmask=22"
ls windrive


Partitionen som windowsfilerna ligger på heter på min dator sda1 vilket jag fick reda på genom att köra gparted.

Efter att jag skriver: sudo mount -t ntfs /dev/sda1 /mnt/windrive -o "unmask=22" kommer massa text upp men ls windrive ger mig nada.


Finns det inget program som man kan installera så man slipper det här?
Citera
2009-11-19, 17:48
  #6
Medlem
adequates avatar
Citat:
Ursprungligen postat av Oldwhoodenship
# mkdir /mnt/windows
# mount -t ntfs /dev/sda2 /mnt/windows -o "umask=022"

Citat:
Ursprungligen postat av Oldwhoodenship
Jag har testat några olika.
Exakt så här skrev jag i min terminal:

cd/ mnt
sudo mkdirv windrive
sudo mount -t ntfs /dev/sda1 /mnt/windrive -o "unmask=22"
ls windrive
"There's your problem." Mig veterligen är "mkdirv" inget kommando, och "unmask" ingen option för mount. Dessutom är 22 inte detsamma som 022.

Dessutom är "cd/ mnt" ganska fel också, men jag antar att du skrev "cd /mnt" i terminalen. Eller?
__________________
Senast redigerad av adequate 2009-11-19 kl. 17:56.
Citera
2009-11-19, 18:50
  #7
Medlem
Använd Knoppix eller någon annan som det är mycket enklare att montera hårddisken med, det finns ju flera Liunx versioner som bara är gjorda för att rädda filer med.
Citera
2009-11-19, 20:03
  #8
Medlem
Citat:
Ursprungligen postat av adequate
"There's your problem." Mig veterligen är "mkdirv" inget kommando, och "unmask" ingen option för mount. Dessutom är 22 inte detsamma som 022.

Dessutom är "cd/ mnt" ganska fel också, men jag antar att du skrev "cd /mnt" i terminalen. Eller?


Var uberstressad så jag skrev fel där



Har i alla fall löst mitt problem nu så moderator kan låsa tråden.
Citera
2009-11-20, 08:36
  #9
Medlem
terroristas avatar
Det vore intressant om du skriver hur problemet löstes också så att nästa person i din situation inte behöver skapa en nya tråd.
Citera

Skapa ett konto eller logga in för att kommentera

Du måste vara medlem för att kunna kommentera

Skapa ett konto

Det är enkelt att registrera ett nytt konto

Bli medlem

Logga in

Har du redan ett konto? Logga in här

Logga in