Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to access the partition of windows under linux

2025-04-09 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly explains "how to access the partition of windows under linux". The content of the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "how to access the partition of windows under linux".

Beginner A how to access the partition of windows under linux.

# mkdir / mnt/win

Create a load point directory win. Load point directories such as cdrom and floppy are all under / mnt.

# mount-t vfat / dev/hda? / mnt/win

/ dev/hda? Use # fdisk-l to view the corresponding windows

Partition, mount.

-t

The option is to give the partition format.

-o

If you want to display Chinese file names correctly, you can use the-o iocharset=cp936 option.

The / etc/fstab file is some of the file systems that linux loads at startup, and you can write it in:

E.g.

/ dev/hda? / mnt/win vfat defaults,iocharset=cp936 0 0

B has a line id:5:initdefault in the / etc/inittab file

5: log in graphically.

3: log in by text.

You can read this document for a more detailed explanation.

C can configure X window, change resolution and so on with the Xconfigurator command. There are also many system configuration options for the setup command. (there are also shortcut keys: ctrl+alt+ "+" and ctrl+alt+ "-")

D switch WM (window managers) window manager can use the switchdesktop command.

# switchdesk gnome OR # switchdesk kde, the virtual terminal in X can be selected in the graphical interface with # switchdesk.

Another way is to create a .xinitrc file in your $HOME (# echo $HOME) directory.

# cd

# vi .xinitrc

Exec gnome-session

: x

Press the ESC key and type ": X" to save the exit.

The E filename.tar.bz2 file is unlocked using the tar xjvf filename.tar.bz2 command.

General installation methods for tar.gz packagers:

# cd / tmp

# tar xvzf... / file.tar.gz

# cd file

#. / configure

# make

# make install

Please take a look at its Readme or INSTALL.

Install the program packaged with rpm with rpm-ivh file.rpm. -e uninstall.

Upgrade with the-Uvh option. -Fvh update. The installation will be upgraded only if an old version of rpm exists in the system. The-Uvh option is installed regardless of whether there is an older version on the system or not.

The query uses the-Q option, and-V is the validation option, which can be combined with the following options:

-l lists the installation files.

-I package information.

-p software package.

-f file.

-d lists the document files.

Such as:

Rpm-Q mozilla;rpm-ql mozilla;rpm-qi mozilla

Rpm-qpl mozilla...rpm;rpm-qpi mozilla..rpm

The above command should ensure that the current directory has mozilla...rpm.

Rpm-qf / usr/bin/mozilla

See which package this file belongs to.

Rpm-Va verifies all software packages; rpm-Vf / bin/vi;rpm-Vp mozilla...rpm;rpm-V mozilla.

.

G you can get help with a command in three ways.

# command-help

This is simply.

# info command

# man command

H may encounter dependency issues when installing a rpm package.

For example:

# cd / mnt/cdrom/RedHat/RPMS

# rpm-ivh kdemultimedia-2.2-4

Error: faild dependencies

Timidity++ is needed by kdemultimedia-2.2-4

Libzrtskde.so....

LibDCOP.so.1...

.

I do not recommend using the-- nodeps option to ignore dependency issues for installation, which may not work.

To install these files first, which rpm package does it belong to?

You can go to rpmfind.net search to determine the rpm package, download and install.

Or search for installation in CDROM. Here's a shell program to help you search for rpm packages that contain dependent files.

For pkg in * .rpm

Do

Rpm-pql $pkg | grep $1 > / dev/null & & echo $pkg

Done

Write it to ffrpm

# chmod uplix ffrpm

# cp ffrpm / bin

# cd / mnt/cdrom/Redhat/RPMS

# ffrpm findfile

For more information, please see this link:

Http://www.linuxforum.net/forum/showflat.php?Cat=&Board=newbie&Number=141576&page=&view=&sb=&o=&vc=1

G way to upgrade the kernel, thanks to ccie!

Before make menuconfig, go to / usr/include

# rm-fr scsi asm linux

# ln-s / usr/src/linux/include/linux linux

# ln-s / usr/src/linux/include/asm-i386 asm

# ln-s / usr/src/linux/include/scsi scsi

There are three ways to configure kernels # make config, # make menuconfig, and # make xconfig-- to run under X.

And then, make dep,make clean,make bzImage,make modules,make modules_install

Then copy / usr/src/linux/System.map to / boot and bzImage to / boot. Modify / etc/lilo.conf (if you use lilo) and run / sbin/lilo-v.

H configure the mouse to use the mouseconfig command, and use the wheel to modify either of the following two files:

/ etc/sysconfig/mouse

Change it to:

FULLNAME= "Microsoft-IntelliMouse (PS/2)"

MOUSETYPE= "imps2"

XEMU3= "no"

XMOUSETYPE= "IMPS/2"

Thank you, gywx.

Or modify / etc/X11/XF86Config-4

Section "InputDevice"

Identifier "Mouse0"

Driver "mouse"

Option "Protocol"IMPS/2"

Option "Device"/ dev/psaux"

Option "ZAxisMapping"4 5"

Option "Emulate3Buttons"no"

EndSection

You can also select the mouse model in mouseconfig and choose microsoft's smart mouse or logitech's mouseman.

J each time you modify the / etc/lilo.conf file, run the lilo command and write it to mbr.

For example, you want to start win by default:

Prompt

Timeout=50

Default=winme

Boot=/dev/hda

Map=/boot/map

Install=/boot/boot.b

Message=/boot/message

Linear

Image=/boot/vmlinuz-2.4.7-10

Label=linux

Initrd=/boot/initrd-2.4.7-10.img

Read-only

Root=/dev/hda7

Other=/dev/hda1

Optional

Label=winme

K enters X, and if the screen is skewed, you can adjust the monitor directly, but it may conflict with win, or you can adjust it with # xvidtune. Write down some of the following parameters after adjustment:

HDisplay:1024 HSyncStart:1098 HSyncEnd:1188 HTotal:1376

VDisplay:768 VSyncStart:769 VSyncEnd:772 VTotal:808

Pixel Clock (MHz): 94.50

Horizontal Sync (KHz): 68.68

Vertical Sync (Hz): 85.00

Modify the / etc/X11/XF86Config-4 file as follows:

Section "Monitor"

Identifier "_ _ A770"

VendorName "Unknown"

ModelName "Unknown"

HorizSync 68.68

VertRefresh 85.00

Option "dpms"

# 1024x768 @ 85 Hz, 68.68 kHz hsync / * this sentence is a comment and can be left without * /

Modeline "1024x768" 94.50 1024 1092 1188 1376 768 769 772 808 + HSync + VSync

EndSection

L reinstalling win will invalidate lilo and grub, and cannot boot linux from MBR. It is important to have a boot disk. You can enter linux. For lilo, enter # lilo-v-v, and for grub, enter # grub-install / dev/hda.'

Thank you for your reading, the above is the content of "how to access the partition of windows under linux". After the study of this article, I believe you have a deeper understanding of how to access the partition of windows under linux, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report