CentOS 5 :: How To Change USB Labels
Jul 18, 2010When I get a new USB flash drive, I change the labels with the format command:
mkdosfs -v -c -n MyCDs /dev/sdc1
v = verbose
c = check for bad spots
[code]....
When I get a new USB flash drive, I change the labels with the format command:
mkdosfs -v -c -n MyCDs /dev/sdc1
v = verbose
c = check for bad spots
[code]....
Is it possible to change the label name /sdb/usr to /sdb/test?
which means..need to change the partition name /usr to /test?
how can I change the language of the action labels shown in the Keyboard Shortcuts window? System language is set to English (United States), but the mentioned descriptions are displayed in Italian language.
View 2 Replies View RelatedI want to generate a grub.conf that will search for my /dev/sda1 based on the filesystem label, not the UUID.
I did change /etc/default/grub to so that GRUB_DISABLE_LINUX_UUID="true" and I regenerated grub.cfg.
But I want to go one step further and change the search statements. I notice they still reference the old UUID. I also know grub2 can search by label.
I could use understanding this page: [url]
Quote:
I'd like my grub.cfg to contain statements similar to this:
Code:
Assuming that's the right syntax, how do I make grub2 generate label-based menu entries like that?
I used to be able to see the labels above the icons in the dock when I hover over them. For some reason I can't see them now. I think I may have turned something off in the Cairo Dock settings and can't remember where to implement this functionality again.
View 2 Replies View RelatedI just upgraded to Ubutntu 11.04 64 bit, using the default Unity setup. Everything seems to work fine apart from labels on the dashboard, about half of them appear scrambled. When I press the Ubutnu icon on the top left some of the text is also scrambled. I have an integrated Intel graphics card.
View 2 Replies View RelatedI recently ordered some custom CDs from a local shop. I sent them the ISOs for Debian and a large colorful PNG graphic for the label. They used an inkjet printer to print the label onto some special CDs. A few hours later, I noticed that the red ink transfered to my fingers when I picked up the CD. Previously, I printed some disks with blue, purple, and yellow, but found no such problem.
I wonder if could be damaging to the computer, ie. lots of little paint flakes coming off inside the computer while the CD drive is spinning and heating up?
I have a debian 6 system in my basement acting as a media server. Debian is on a separate HDD from the raid drives and there is one external drive. Under normal conditions the Debian HDD shows up as /dev/sdk and the external shows up as /dev/sdl, no problems here because I use UUID for mounting. The problem is sometimes this drive isn't picked up on restarts (its old and I think the issue is the power supply in the base of it, to be solved later) . This wouldn't be a problem but it some how shuffles the drive addresses and the Debian HDD becomes /dev/sde, this in turn messes up a script that does a weekly dd of that hard drive. I am only really worried about this for when I go on vacation and I wont be at home if the power goes out.
So, is there a way to address the entire hard drive (not just a partition) other than the dev file? Why did this change from Debian 5 to 6? I never had this problem before with 5.
In case you are wondering, I find it easier recover from an image rather than do a reinstall, then get all the updates and software, then put in all the backed up files.
I like having a very minimal, simple desktop. As odd as it sounds, I would love to change "Applications" to "Apps" on the Main Menu. How would I go about doing that?
View 2 Replies View RelatedI am trying to manually set up a number of static IPv6 addresses to one of the physical network interfaces on my 8.04server box.
I tried to use the "ip" utility like that:/ip addr add [myIPv6addr] dev eth0 label eth0:0
which was accepted by ip (no errors) and the IP address was correctly assigned to eth0. But using "ip addr show" I do not see any reference to the label I defined and "ip addr show dev eth0 label eth0:0" does not come back with anything (empty output).
This seems to contradict the information I found on the ip manpage and I wonder if this is a bug or a misconfiguration on my side. Did anyone successfully used the label functionality with ip?
I'm using Gnome on Fedora 14 and I'm getting picky on how things gets displayed.
I have a couple of drives and the following entry on my fstab:
they mount to the correct directory but in my desktop. I see 2 icons with the volume labels same with the "places" menu up top. Is there a way to replace the volume lables with the mount points?
I have two HDs (let's say sda and sdb). Both are the same size and have the same partitions already (sda1/sda2/sda3 and sdb1/sdb2/sdb3). Basically they are ready to make a RAID1 array.
Writing with new udev rules, I could create and give fix HD labels with /sbin/scsi_id.
Example: For sdb1 I have a fix device name created under /dev as hd2_boot1, for sdb2 I have /dev/hd2_boot2 and finally for sdb3 I have created the device /dev/hd2_boot3.
With using the command "mdadm --create /dev/md0 --level=1 ....", I could create a RAID array.
But, when I check the status one of the RAID devices, like with the command "mdadm --detail /dev/md2", it still shows me as part of the RAID array the sdb* devices, not the hd2_boot* devices. Something like this:
I would like to see basically as member or the RAID array always the /dev/hd2_boot3 not the /dev/sdb3 (like above), is this possible?
Bottom line, I would like to keep the order of the RAID arrays depending their scsi ids, not depending their scsi numberings which is given by the kernel, since the scsi numberings (sda, sdb, sdc and etc.) can change depending the physical connection.
Here's the idea -- be able to boot slackware 13.1 DVD from a USB stick, but without using anything like an initrd or loading the contents of the slackware install all into memory first. So the USB stick is behaving like a hard drive (but with one disadvantage, just don't take the usb stick out while you're using it!). It has the advantage of saving on memory though .
In the above thread I had this idea working ok but only with slackware 13 and earlier. In fact I still have the CF card with it on, and it works fine. Only snag is it won't work with the newer 13.1.
Right now, I'm trying to use qemu for the following (not what I wrote above!). The idea is to use qemu to install a minimum slackware 13.1 to the USB stick, set it up and then boot from the USB stick itself (so I'm using the USB stick as the storage medium as opposed to say a hard drive image file).
So let's say (this is what I'm doing) I boot slackware 13.1 (32 bit) and make two partitions;
Code:
I then do a minimal installation of slackware (just "A" and jed from "AP"). Lilo is not installed as later I'll be using GRUB2 to try to boot.
I'm using a slackware package, grub-1.97-beta4-i486-1.tgz for slackware 13.1/GRUB2.
I then boot off the slackware 13.1 DVD but at the boot screen I choose to boot from /dev/sda2 which is the linux install I created earlier. Success, it boots ok and I can get into the slackware 13.1 install on the USB disk (which is /dev/sda2).
I then label the ext3 partition by using e2label;
Code:
And also change /etc/fstab;
Code:
Now I need some sort of bootloader to put onto the USB stick so I don't need the DVD any more. To do this, I'm trying to use GRUB2.
But here's the problem!
When I install slackware onto the USB stick using qemu, that partition is /dev/sda2. It's the first usb/storage medium that slackware detects so it gets the name sdaX. (X=1, fat partition, X=2 EXT3 linux).
But here's the problem. Suppose I take the USB stick over to another PC with a hard drive already inside it. Slackware would see the hard drive installed in that PC as (say) /dev/sda1 and the USB stick would then become the second drive, so /dev/sdbX (X=1, fat partition, X=2 EXT3 linux).
If I specify a specific device (lets say /dev/sda2) then it won't work in another system because if I take the example above, another PC with a hard drive installed in it the USB stick becomes /dev/sdb2 and the GRUB2 boot program would be expecting /dev/sda2 which won't work. What I need to do is to somehow find the install, the root on the USB stick automatically without having to specify it manually.
So here's what I've tried with grub (First thing I did was to install grub with grub-install /dev/sda).
Code:
Snag is it dosen't work :-( I get this booting from the USB stick:
Code:
If I try this:
Code:
I get a very similar result ....
Code:
So what I'm wondering is .... if the "search" line in grub is doing the searching for the root GRUB2 needs to use to boot from - how can I tell the next line, "linux /boot/vmlinuz-huge-smp-2.6.33.4-smp root=...." where to boot from? I can't use /dev/sda2 or /dev/sdb2 because if I try the usb stick in a different PC the stick will be a different device name. Trying to use LABEL= or /dev/disk/by-label/USB/ also dosen't work .
I tried upgrading from Fedora 8 to Fedora 10 using the DVD, but I ran into a few problems.After verifying the install media, it was no longer able to detect the DVD. Annoying, but I got around this by simply rebooting and then skipping the media check.The second problem happened after I tried to "upgrade an existing installation". It gives me the error "Multiple devices with label /boot detected. Devices must have unique labels in order for you system to work. Please correct this problem before upgrading".My system's working just fine, so I'm not sure why I'm getting this error. I have a RAID-1 setup, so would that be causing the error? How do I correct this problem without wiping out my system?
View 1 Replies View RelatedPrerequisites :
The GIMP.
Make sure you have the "Gutenprint Printer Drivers Package" and "GIMP plugin for gutenprint" installed (add/remove software, search for gutenprint). A printer that uses a tray loading mechanism for printing disc media.
Procedure :
Open/create the image with the GIMP. I find that an image size of 1394 x 1394 is ideal for normal size discs. To create a working area in the image, first create a white circle. To do this, use the circle selection tool and position the cursor at position 0,0 (top left). Then, while holding the shift key down, hold left click and drag the cursor to the bottom right position, which should be 1394,1394. Fill the selection with white colour. Depending on the hub size of your disc you need to also cut out an area in the centre of the white circle approximately 22 mm in diameter. Position the circle selection cursor 11mm above the centre of the image, and 11mm to the left of the centre of the image. Then hold Shift down, hold left click and drag the cursor until the selected area is 22mm x 22mm. Then cut the selection. Now create a new layer above the white circle and create your image, keeping inside the white circle and outside the centre "hole".
If you are using non full face discs, make the centre "hole" bigger accordingly. Create 2 new background layers, one black and one white. The black is so you can preview the image with the correct shape, and the white one is for use when exporting the final finished image for printing. Remember to make the white layer above the black layer, or make the black layer invisible when exporting the image. I have attached a template for your immediate use. Once your image is finished, you should have a white square image, with your graphics arranged within a circle. White is not printed, so you don't need transparency around the edges. Don't put graphics too close to the edges of the circle or you will get ink on the plastic which never dries. (at least not until you have smeared it on your fabulous artwork ! ) Save the file as the default GIMP xcf format to preserve the layers then export it to png.
To print the image onto the disc. With the image open in the GIMP, In File > Page Setup set the paper size to CD - 5 inch and apply. Then go to File > Print with Gutenprint. Use the option to set up printer and find your make and model. Once you have the correct printer selected, lots of extra options become available.
My Printer settings are:
Print Quality - Best
Media Type - Photo paper
Media Source - Print to CD
CD hub size - Normal
Ink Set - Epson Standard inks
Resolution - 720 dpi
Ink Type - 6 color photo
Page Size - CD - 5 inch
(All the other settings are left as default)
On the Output tab there are more options for adjusting the print quality. Just click "Adjust Output". If you have adjusted the output, close that window then click "Print and Save Settings", otherwise just click "Print and Save Settings". It should fire up straight away. These settings are based on my Epson R200, so you may have to tweak them for your printer model.
Is there a command that tells you what the partitions are fdisk -l shows partitions I want to know which is root swap home etc, Labels the partitions?
View 6 Replies View RelatedThis problem has been bothering me for quite a while. Here is how my nautilus toolbar looks like:As you can see, only Back and Forward buttons are labeled. I hope I can remove these labels to save my screen estate, but I can't find any possible option in Edit -> Preferences after careful review.
View 3 Replies View RelatedMy original config:
**Partition/Drive info**
/dev/sda Boot----------> 298.09 GB Hitachi HDT72503
20GB /
16GB /swap
50GB /var
[code]....
1. For some odd reason I tried connecting to a samba share as I had it setup and I could not.
2. Looked at webmin and it said my whole /dev/md0 RAID5 was being used..about 7.8TBs. decided to check my RAID5 setup and drives and noticed
**NEW Partition/Drive info**
/dev/sda Raid Array 1 1.82 TB SAMSUNG HD204UI
/dev/sdb Raid Array 1 1.82 TB SAMSUNG HD204UI
/dev/sdc1 /
[code]....
I didn't connect any new drives or anything. I had checked my "mdadm.conf" and "fstab" and everything looked the same?
when a new email arrives on my gmail account, i want to be labelled (=tagged), letting an external bash script read the message and choose the right label.
i.e.:
from: ebay
to: me
dear matteo, congratulations! BILL_GATES has just bought one of your items! regards, mr. ebay i can easily write a script to calculate the right label (BILL_GATES) but how can i create it (if not already existing) and apply it to the processed message?
it took me 2 minutes to find a guide on how to configure mutt to view my gmail account, but i can't go any further... mutt has a kind of patch or extension to manage labels (view, edit, apply, etc), but i can't figure out how i could make it an automatic procedure... fetchmail + procmail seems to be the best solution, but (before spending a night with any effort)
Anyone know how device-mapper works, or can someone point me to any docco (other than the man page)?
Couple years ago I wrote a TrueCrypt wrapper script for use on Puppy Linux, and am reworking it for Ubuntu. Puppy sometimes didn't have the 'dmsetup' device-mapper utility available, but TrueCrypt still works without this when the '-m nokernelcrypto' option is used.
My script notices when dmsetup is available and skips this option. When the TC volume gets mounted (somehow using dmsetup), the Desktop icon is labled with the leaf name of the /media/mount_point -- so far, so good.
However, if I force the script to add the no-kernel-crypto option, and the TC volume is mounted without using dmsetup, the Desktop icon ls labled with the size of the volume. Say what?
Running df shows the difference between the two mounts is whether /dev/mapper is used. So *how is* dmsetup making this happen? The manpage isn't much help. Is it just the 'rename' sub-command? I am unable to find any details about this mechanism.
Code:
I want to change only the date of my Centos server but keep the time as it is. Which command to use?
Example:
Sat Jan 2 22:04:39 ICT 2010
I want to change with a command to:
Sun Dec 12 22:04:00 ICT 2010
but the command need only works on the date, the time need no to be modified. How can I do it?
i want to change boot install message "wel-come to CentOS" .How can i change it.
View 1 Replies View Relatedduring installation I uncheck Gnome and check Kde for desktop environment.
my regret is that i'm never like Kde coz it's too complicated.
so when I try to reinstall Centos again, it prompt an error saying the packages already installed.
Is there a way to change to Gnome desktop environment?
I use Package Manager and check Gnome and uncheck Kde but to date I'm still not able to change to Gnome.
I have changed my hostname to - ns1.searchdns.net by
1) editing the files /etc/sysconfig/network
2) then run the command - echo "ns1.searchdns.net" > /proc/sys/kernel/hostname
3) then restarted the service /etc/init.d/network restart
I run the command hostname and it returns ns1.searchdns.net. But I am also supposed to modify the /etc/hosts file. I am not sure about this. The content looks like this at the moment
127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
192.168.0.20 abc.com
What should my host file look like now? I am not sure if I should also modify the second line or delete it etc.
I go in using nano /etc/ssh/sshd_config I change the port number.. I then restart ssh service restart.. I then run netstat -tupln and it still shows ssh as port 22!i am not sure what I am doing that is incorrect.Do I have to remove the # < ? I go to redit it and its still showing 2222 nano /etc/ssh/sshd_config ?
View 18 Replies View Relatedhow do I change my 192.168.1.3 to a static ip?
I went into nano /etc/sysconfig/network-script/ifcfg-eth0
I add in IPADDR=192.168.3.55
I do service network restart and it doesn't change to the correct.... ip ??
how to change ip address on centos 5.3 ?i could not search the file such as "interface" ,
View 3 Replies View RelatedWhen I installed Centos 5, it asked me password twice. One is to root, another is a user acount.
Right now, I want to do "cd /root" under my user acount. It responds me:
permission denied.
Can I change permission of root?
I've noticed that on one of our servers apache is running on nice 19.Any idea where can I change it back to the default 15?I know I can change it on the apache startup script, but I thought it's probably better to change the default value that was probably changed somewhere.It is running as a service on startup.
View 1 Replies View RelatedI have installed CentOS on two machines. On both these machines the language won't change in gnome, but it changes on the login screen. In gnome, the langugare is always swedish. I want Swedish keyboard (this works), but everything else English. locale gives:
LANG=en_GB.UTF-8
LC_CTYPE="sv_SE"
LC_NUMERIC="sv_SE"
LC_TIME="sv_SE"
LC_COLLATE="sv_SE"
[Code]..