I was wondering if there is anyone who has some kind of a small script/code (preferably in C/C++) which reads a partition and just displays the type. For example, the script/code would be called partype and should be something like this: partype /dev/sda1, will read sda1 and display for example ext4, because sda1 was formated as ext4.
Note: I'm not a developer so I have no idea how this should be done, plus I would like the script/code to do it by itself the checking, without using fdisk/sfdisk/cfdisk/parted/gparted, because none of this apps work quite well when it comes to the partition type or file system type.
I had installed ubuntu 11.04 on my system along with windows vista. After a few days, i decided to remove ubuntu so i just logged into windows and formatted the ubuntu partition using the windows partitioner, then extended my main c: drive to span the whole disk so that i was left with a single partition with only windows vista on it.Later when trying to restart my system couldn't log back into windows.I kept getting a prompt sayinggrub rescue>After googling around a bit i shrinked and created another partition the disk again and installed ubuntu on it again.still. =/GRUB doesn't show any windows entry.I noticed something strange though that when i tried viewing my partitions using parted i didnt see any filesystem type listed besides my windows partition (/dev/sda3). I doubt that is why GRUB does not show any windows entry.Also i manually tried to boot into windows from the grub prompt using commands...root(hd0,3)chainloader +1bootbut it says 'invalid signature'Did i somehow corrupted my windows partition during resizing and installing/un-installing? Plus i also booted with the windows installation dvd and when i typed bootmgr /fixbootit said something like no valid filesystem found.
I know i get the error code because i dont have my windows partition. But i seriously need my vista back. I tried using VMware player but it didn't work. Is there anyway i can restore my windows partition without the installation disc? The restore disc does not work as it needs a windows partition.
I was going to freshly format my laptop with Windows 7 x86_64 and Lucid Lynx x86_x64... I have a HUGE amount of media (music, videos, pictures, documents) and I don't keep all of it on my external harddrive.
The plan is to have the basic 2 partitions for Windows 7 and Ubuntu but I would like to have a 3rd partition that is just for media that I could share between the two OSes. I guess I would create symbolic links in the Ubuntu Home folder to point to the partition with media and in Windows I could probably just add those folders to libraries (unless someone knows how to move the User folder to another parition?)
What should I format this new partition as? NTFS? It needs to support files larger than 4GB and Windows can't read/write to basically anything.
I am currently running a dual boot machine with Ubuntu 11.04 and Windows Vista.Is there any way I can delete the Linux partition and Grub boot loader without affecting the Windows partition at all?I would also like to be able to repartition all of the space that was previously occupied by Linux.
As per these instructions, I got up to the end of the "Acquiring an Ubuntu filesystem" step (where it asks you to mount the newly created Ubuntu partition) and ran into a problem: The partition won't mount, as the file system type cannot be determined because I cannot remember the file system used during installation. Is there any command that prints the file system type of GPT partitions?
I decided to clone my OS partition to another hard drive using dd (without any special options). I created the target partition before cloning (25GB) but it shows up as 21GB (source/original partition's size) in df, as well as ext2 instead of ext4.
I'm a C / assembler programmer so am not use to C++, which I need to use. Basically I'm using my own versions of memcpy, but for long and int rather than char. It's for fast graphics. So I have a char array which I copy to another array. But I copy as either longs or ints, much faster. for example
I am using ubuntu remix 10.04 on Dell mini 12 notebook. Everything is perfect expect coding in Eclipse. If any code tips window pops up, then I can't type in any letter until I click right mouse button or [Alt + Tab] to other window and switch back
i used to have ubuntu 9.i decided to move to sabayon so i used the live cd to install it ,resize the ubuntu partition and use the remaining space for sabayon.while the resizing procedure i got an error(i dont have a copy of the error log file but i know it has something to do with an anaconda process).i aborted the installation and the result was an filesystem that couldnt be mounted.when i try to mount the hdd i get this:
Code: Error mounting: mount: wrong fs type, bad option, bad superblock on /dev/sdb1, missing codepage or helper program, or other error In some cases useful info is found in syslog - try dmesg | tail or so and this is what i get from fsck: Code: $ sudo fsck -f /dev/sdb1 code....
I work as a linux sysadmin, and are now and then developing scripts that might be of use for others. I'd like to be able to share these, and for less trivial projects maybe create a central repository or something that others may upload updates/patches to etc.
I'm triple booting Windows 7 32-bit (that's the only version I had), Ubuntu 10.10 64-bit, and Backtrack 4 R1.
Windows 7 installed and runs fine. Ubuntu installed and runs fine. I try to install Backtrack 4 R1, create a / partition, create a /boot partition (do I need to create a /boot for Backtrack?), and I don't create a swap file because the Ubuntu swap file is already in there.
I click "forward", the install starts up, then I get "The attempt to mount a file system with type swap...yadda yadda yadda...has failed." I google this, I get some results talking about an mkswap command, but in my noobness, I don't understand.
Can Ubuntu 64 bit and Backtrack not share a swap file? I don't want to create 2 swap files because I've googled around and that looks like a bad thing to do.
By default, when applications run, they are limited in the amount of RAM they are allowed to access right? Technically my VLC could not access memory addresses used by Chrome. But how is it possible for the operating system/compiler to mistakingly allow access to an address a code is not allowed. I know alot of 'exploits' and 'payloads' take advantage of this fact and create variables that take up too much space and 'overflow' into other addresses, but how does this actually happen?
Are some programs more prone to this than others? Does it matter in which language they are coded in? For example, I know C is allowed to play around with memory, while Java is not. Also, what are the advantages of this? What if someone wrote malicious code to access someplace in memory, what could they do? The only thing I can think of is passwords/keys stored in RAM.
PS I thought about putting this in Stack Overflow, but my question is much broader than just specifically related to a programming perspective. If I've placed it in the wrong place, I'm sorry.
It seems that by default a Windows share mounted at /mnt/Windows/ will be owned by root and have 755 permissions set on all files. I usually do a chown or chmod to allow my user to have write access to these files. Does that affect the Windows files in any way? It takes quite some time to complete the chown/chmod when there's a lot of data. Where is the Linux permission data kept for the Windows share? On the Linux computer where I set the permissions? I just want to get a better understanding how this works.
I've figured out about half of the problem this time. I've duplicated the directory structure of the Windows machine on the Linux server.
I then proceed with mounting the Windows share on the Linux server. I type the mount command while I'm in Folder1 on the Linux server:
So far so good. Now I need to rsync and the command for this is
But what do I fill in here? I'm guessing path/to/dst is just plain Folder1 on the Linux box. Path/to/src refers to the share on the Windows machine but since I've mounted that share, is path to source = path to destination?
Until now I always used a non-journaled filesystem for my /boot-partitions.But as it would make system restoring much easier after crashes I would prefer to use ext3 for my /boot-partition as well.Is this possible, and before all, recommendable?
Now however its not letting me resize the Windows partition, mounted or unmounted. It currently occupies the whole disk. I would rather not reinstall the whole thing over again, but I will if I have to. Isnt there an easy way to shrink a Windows partition? I swear Ive done this before and it wasnt this hard. Could it be a problem with the Mint installer that now asks me if I want to unmount my disks before it goes into install mode? On this PC I would like to have
Windows XP Mint Ubuntu-Studio Edubuntu One of the E17 OSs Puppy Linux (to create a remix)
I am probably going to put most of the linux partitions on the second laptop drive but I want to install files on a non WIndows NTFS partition.
I got tired of dual booting on my old computer so on the new computer I am planning to run XP on VMware Player. The problem is that on the new computer neither Ubuntu or XP can "see" the FAT32 partition. I intend to use the FAT32 partition for photo images and old Windows files and need access from both Ubintu and XP.
It's easy to have multiple user accounts on one computer and even switch between accounts without logging off. It is also possible to have more than one display connected to a single computer. Is it possible to have one multi-core computer be used simultaneously by two users in their own accounts? Is there specific hardware required (to allow keyboard and mouse distinction for each user) and software configuration?
I know you can setup remote connections on windows that allow you to open and use a second user account without bothering the first user, but how about working locally on the same machine, essentially removing the network delay of remote desktops? What OS supports this? Linux Ubuntu? Windows 7?
I have a desktop with ubuntu 10.04 with my whole music collection in it. I want to access it using my laptop and my brother's laptop, both running windows (vista and 7 respectively). All are connected to the same network.
I am setting up samba on my CentOS server for the first time. I am using webmin to configure samba. Here is the smb.conf
[global] netbios name = KISKA cups options = raw load printers = yes server string =
I can see the domain name "KISKA" in the "network" tab of windows explorer, however when I click on it I get this error: Windows cannot access \KISKA check the spelling of the name. otherwise there might be a problem with your network. Under the details of this error I get this: "The network path was not found" Also I have stopped iptables so it cant be firewalled